/* Design System & Core Styles */
:root {
    --primary: #0A2647; /* Navy Blue from Logo */
    --accent: #A4907C;  /* Tan/Gold from Logo */
    --accent-glow: rgba(164, 144, 124, 0.3);
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8F7F2; /* Creamier background to match logo vibe */
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.9);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo img {
    height: 80px; /* Increased height for better visibility of the 'A' icon */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.logo-tagline {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.btn-hero-clear {
    background: #3B82F6; /* Clear blue */
    border-color: #3B82F6;
}

.btn-hero-clear:hover {
    color: #3B82F6;
    border-color: #3B82F6;
    background: transparent;
}

.btn-secondary {
    color: var(--primary);
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--primary); /* Thicker border */
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 38, 71, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-visual {
    flex: 1.2;
    position: relative;
    height: 80%;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 1.5s ease-out;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-light) 0%, transparent 40%);
    pointer-events: none;
}

.badge {
    animation: fadeInUp 0.8s ease-out;
}

.hero-floating-card {
    background: var(--primary); /* Change to Navy for contrast */
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(10, 38, 71, 0.3);
    border: 1px solid var(--accent);
    transition: var(--transition);
    z-index: 10;
}

.hero-floating-card div:first-child {
    color: var(--accent) !important;
}

.hero-floating-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.6;
    background: rgba(248, 247, 242, 0.6);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 12px;
}

.hero-img {
    width: 110%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.1);
}

/* Features/Advisory Section */
.services {
    padding: 8rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    padding: 3rem 2rem;
    border-radius: 12px;
    background: var(--bg-light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Before/After Slider */
.comparison {
    padding: 8rem 0;
    background: var(--primary);
    color: var(--white);
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-after {
    clip-path: inset(0 0 0 50%);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--accent);
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
}

/* About & Team Sections */
.about {
    padding: 8rem 0;
    background: var(--white);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-img-container {
    flex: 1;
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
}

.about-content {
    flex: 1;
}

.team {
    padding: 8rem 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.team-img-wrapper {
    height: 350px;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.05);
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.team-info p {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 0.8rem 0;
    flex: 1;
    border: none;
    background: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.modal-content {
    display: none;
}

.modal-content.active {
    display: block;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
}

.modal-content form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.modal-content form .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Registration Page Styles */
.register-card {
    background: var(--white);
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.05);
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.register-type-btn {
    padding: 1rem 3rem;
    border: 2px solid #eee;
    background: var(--white);
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.register-type-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Checkbox Styles */
.check-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #eee;
    border-radius: 6px;
    transition: var(--transition);
}

.check-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.check-container input:checked ~ .checkmark {
    background-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.check-container input:checked ~ .checkmark:after {
    display: block;
}

.check-container .checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.upload-zone:hover {
    background: var(--bg-light);
    border-style: solid;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
        position: static; /* Remove fixed on small mobile to avoid layout issues */
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 0;
    }

    .auth-btns {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .hero {
        height: auto;
        padding: 80px 0 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin: 0 auto 2rem;
        padding: 1.5rem;
    }

    .hero-btns {
        flex-direction: column !important;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-btns .btn-primary, 
    .hero-btns .btn-secondary {
        width: 100% !important;
        margin-bottom: 0.5rem;
        padding: 1rem !important;
    }

    .hero-visual {
        display: none; 
    }

    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .comp-card {
        padding: 2rem 1.5rem !important;
    }

    .logo img {
        height: 60px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        display: block;
        margin-bottom: 1rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}
