* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    min-height: 100dvh; /* For modern mobile browsers */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container reset */
.container {
   padding-top: 0; /* Remove top padding */
}

/* Logo styles */
.logo {
   width: min(50%, 400px);
   height: auto;
   min-width: 200px;
   margin: 1rem auto 2rem; /* Reduced top margin, kept bottom margin */
   opacity: 0;
   animation: fadeIn 1s ease-out forwards;
   aspect-ratio: 1/1;
   -webkit-tap-highlight-color: transparent;
   display: block;
}

/* Other media queries remain the same */
 
 @media (max-width: 768px) {
	.logo {
		width: 70%;
		min-width: 180px;
	}
 }
 
 /* Ultra-narrow foldables */
 @media (max-width: 280px) {
	.logo {
		width: 80%;
		min-width: 150px;
	}
 }
 
 /* Logo animation */
 @keyframes fadeIn {
	from { opacity: 0; scale: 0.95; }
	to { opacity: 1; scale: 1; }
 }

h1 {
    color: #2c3e50;
    font-size: clamp(1.5rem, 4vw, 2.5em);
    margin-bottom: clamp(15px, 3vw, 20px);
    opacity: 0;
    animation: slideDown 0.8s ease-out 0.5s forwards;
    line-height: 1.2;
}

.tagline {
    color: #34495e;
    font-size: clamp(1rem, 2.5vw, 1.2em);
    margin-bottom: clamp(25px, 5vw, 40px);
    opacity: 0;
    animation: slideDown 0.8s ease-out 0.8s forwards;
    padding: 0 10px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 3vw, 40px);
    margin-top: clamp(25px, 5vw, 40px);
    flex-wrap: wrap;
}

.contact-item {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
    flex: 1 1 250px;
    min-width: 200px;
    max-width: 300px;
}

.contact-item:nth-child(1) { animation-delay: 1.1s; }
.contact-item:nth-child(2) { animation-delay: 1.3s; }
.contact-item:nth-child(3) { animation-delay: 1.5s; }

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.contact-item p {
    color: #7f8c8d;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Social Footer Styles */
.social-footer {
    margin-top: clamp(30px, 6vw, 60px);
    padding-top: clamp(20px, 4vw, 40px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: slideUp 0.8s ease-out 1.7s forwards;
}

.social-footer h2 {
    color: #2c3e50;
    font-size: clamp(1.3rem, 3.5vw, 1.8em);
    margin-bottom: clamp(8px, 2vw, 10px);
}

.social-footer p {
    color: #7f8c8d;
    margin-bottom: clamp(15px, 4vw, 25px);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 2.5vw, 25px);
    flex-wrap: wrap;
    padding: 0 10px;
}

.social-icon {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.2em, 2.5vw, 1.5em);
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.social-icon:hover {
    transform: translateY(-5px);
}

/* Social icon colors */
.tiktok { background: #000000; }
.instagram { background: #E4405F; }
.facebook { background: #1877F2; }
.youtube { background: #FF0000; }

/* Social icon hover effects */
.social-icon:hover.tiktok { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
.social-icon:hover.instagram { box-shadow: 0 5px 15px rgba(228, 64, 95, 0.4); }
.social-icon:hover.facebook { box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4); }
.social-icon:hover.youtube { box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4); }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */

/* Ultra-narrow foldables (Galaxy Fold folded) */
@media (max-width: 280px) {
    .container {
        padding: 15px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }

    .contact-item {
        min-width: 100%;
    }
}

/* Small foldables and narrow phones */
@media (min-width: 281px) and (max-width: 320px) {
    .container {
        padding: 15px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .contact-item {
        min-width: 100%;
    }
}

/* Unfolded foldables - inner display */
@media (min-width: 512px) and (max-width: 640px) {
    .contact-info {
        flex-direction: row;
    }
    
    .contact-item {
        flex: 1 1 auto;
        min-width: 150px;
    }
}

/* General mobile devices */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    .contact-info {
        margin-top: 20px;
    }
}

/* Support for devices with different aspect ratios when folded */
@media (max-height: 700px) and (max-width: 380px) {
    .container {
        padding: 15px 10px;
    }
    
    .social-footer {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .social-icon:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

/* ColorDrip Background */
@keyframes colorDrip {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background: linear-gradient(
        -45deg, 
        #4A6572, 
        #344861, 
        #2C3E50, 
        #1A2980
    );
    background-size: 400% 400%;
    animation: colorDrip 15s ease infinite;
    color: #f0f4f8;
}

/* Adjust other text colors for contrast */
h1, .tagline, .contact-item h3 {
    color: #f0f4f8;
}
/* CTA Button Styles */
.cta-button {
    display: block;
    width: clamp(200px, 50%, 300px);
    margin: 2rem auto;
    padding: 15px 25px;
    background-color: #FF5E62;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.2rem);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.cta-button:hover {
    background-color: #FF9966;
}

.cta-button.attention-grab {
    animation: pulse 1.5s infinite, bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Popup Form Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #FF5E62;
}

.popup-stage {
    display: none;
}

.popup-stage.active {
    display: block;
}

.popup-button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #FF5E62;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-button:hover {
    background-color: #FF9966;
}

.popup-content h2 {
    color: #344861;  /* Navy blue color */
}

.popup-content label {
    color: #344861;  /* Navy blue color for radio button labels */
}

/* Division Leaders Section */
.division-leaders {
    text-align: center;
    padding: 2rem 0;
}

.division-leaders h2 {
    color: #344861;
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.division-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.1);
}

.division-logo {
    max-height: 100px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(20%) brightness(0.9);
    transition: filter 0.3s ease;
}

.division-logo:hover {
    filter: grayscale(0%) brightness(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .division-logos {
        flex-direction: column;
        gap: 1.5rem;
    }

    .division-logo {
        max-height: 80px;
        max-width: 150px;
    }
}