/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #0f172a;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-image {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.logo-badge {
    display: inline-block;
    padding: 2px 8px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
}

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

/* Top-right brand block */
.nav-right-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand-img {
    height: 34px;
    width: auto;
    filter: brightness(1);
    opacity: 0.95;
}

/* Prevent inversion for hero logo reused in navbar */
.nav-brand-img.no-invert {
    filter: none;
}

.nav-brand-text {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 4px;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #60a5fa;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 0;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero::after {
    content: none;
}

.hero-logo-top-left {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
}

.hero-logo-top-left img {
    height: 60px;
    width: auto;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: #ffffff;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.hero-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-center-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
    mix-blend-mode: screen;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.75rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 1.5rem 0;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #ffffff;
    font-family: serif;
    letter-spacing: 0.5px;
}

.brand-sigil {
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.separator {
    display: inline-block;
    width: 2px;
    height: 0.9em;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    margin: 0 6px;
}

.brand-name {
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.85rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: serif;
}

.cta-button {
    display: inline-block;
    background: rgba(96, 165, 250, 0.28);
    color: #e2e8f0;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(96, 165, 250, 0.55);
}

.cta-button:hover {
    background: rgba(96, 165, 250, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.25);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #0f172a;
}

.team .section-title {
    color: #ffffff;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #334155;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card {
    background: #f1f5f9;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border-left: 4px solid #0f172a;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 1.25rem;
    margin: 0 0.75rem 0 0;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #0f172a;
}

.feature-card p {
    color: #475569;
    line-height: 1.4;
    margin: 0;
}

.feature-card {
    display: flex;
    align-items: center;
}

.feature-card .feature-content {
    display: flex;
    flex-direction: column;
}

/* Team Section */
.team {
    padding: 80px 0;
    background: #0f172a;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.member-photo {
    /* Enforce consistent square avatar without distortion */
    width: 140px;
    height: 140px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    margin: 0 auto 1rem;
    border: 4px solid #e2e8f0;
    display: block;
    background-color: #f1f5f9;
}

.member-photo:not([src]), 
.member-photo[src=""], 
.member-photo[src*="data:image/svg+xml"] {
    background-color: #e2e8f0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><circle cx="60" cy="60" r="60" fill="%23e2e8f0"/><text x="60" y="70" text-anchor="middle" font-family="Arial" font-size="40" fill="%236b7280">?</text></svg>');
}

.member-name {
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin-bottom: 0.5rem !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-style: normal !important;
    text-decoration: none !important;
}

.member-role {
    color: #475569;
    font-weight: 500;
    margin-bottom: 1rem;
}

.linkedin-link {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.team-cta {
    text-align: center;
    margin-top: 3rem;
}

.team-button {
    display: inline-block;
    background: #0f172a;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #0f172a;
}

.team-button:hover {
    background: transparent;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0f172a;
}

.contact-info p {
    margin-bottom: 1.5rem;
    color: #334155;
    line-height: 1.6;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: #475569;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0f172a;
}

.submit-button {
    background: #0f172a;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-legal {
    display: none;
    color: #94a3b8;
}

.footer-disclaimer {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

/* Footer right brand logo */
.footer-right-brand {
    display: none;
}

/* Footer left brand logo (matches navbar size) */
.footer-left-brand-img {
    height: 34px;
    width: auto;
}

.footer-disclaimer p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #0f172a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-center-image {
        max-width: 450px;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        text-align: center;
    }
    

}

@media (max-width: 480px) {
    .hero-center-image {
        max-width: 350px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 15px;
    }
}

/* Success Popup Styles */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.success-popup-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    max-width: 400px;
    margin: 0 1rem;
    animation: slideIn 0.3s ease-out;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.success-message {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

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

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.success-popup.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}
