/* CSS Variables for consistent theming */
:root {
    --primary-color: #0f172a; /* Deep Slate Blue */
    --accent-color: #d4af37; /* Elegant Gold */
    --accent-hover: #b5952f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px; /* Accounts for fixed navbar + logo height */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 140px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-cta {
    background: var(--accent-color);
    color: #fff !important;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Button */
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px -10px var(--accent-color);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-text {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.mt-4 {
    margin-top: 2rem;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Deep Slate Blue dark overlay */
    z-index: -1;
}

/* Removed hero glass-card constraints */

/* About Section */
.about {
    padding-bottom: 2rem !important; /* Reduced bottom padding */
}

.team-section {
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

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

.team-member {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-img-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.5);
    background: #1e293b;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Ensures the face stays in view */
}

.team-member:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.team-member h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    min-height: 3rem; /* Forces same height for 1 or 2 line names */
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member .role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.team-member > p:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    padding-top: 0;
    text-align: center;
}

.ceo-tag {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f5d97e);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

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

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-primary);
}

.about-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    flex: 1;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video Section */
.video-section {
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrapper video, .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.hero-services {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.square-card {
    aspect-ratio: 1 / 1;
    padding: 0;
}

.square-card h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    font-size: 1.2rem;
}

.square-card .service-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 20px;
    z-index: 1;
    opacity: 0.6;
    transition: var(--transition);
}

.square-card:hover .service-img {
    opacity: 0.9;
    transform: scale(1.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}



.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding-top: 2rem !important; /* Reduced top padding */
    padding-bottom: 2rem !important; /* Reduced bottom padding */
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 5rem; /* Increased margin below contact info */
}

.contact-info p {
    margin: 0;
    color: var(--text-primary);
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.contact-info strong {
    display: block;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Info Block (Centered below form) */
.contact-info {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
}

.contact-info strong {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.contact-info a {
    color: var(--text-primary); /* Email and Phone in white/light gray */
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-color); /* Turns gold on hover */
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 1.5rem 0; /* Reduced footer padding */
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.2rem;
}

.footer-logo img {
    height: 45px; /* Premium compact size */
}

.footer-links {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.footer-links a {
    color: var(--text-secondary);
    margin: 0 0.5rem;
    transition: var(--transition);
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

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

/* Responsive */
@media (max-width: 992px) {
    .hero-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navbar modifications */
    .navbar {
        padding: 0.8rem 0;
    }
    .logo img {
        height: 70px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.98);
        border-bottom: 1px solid var(--glass-border);
        padding: 2rem 0;
        align-items: center;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        margin: 0;
        padding: 0.5rem;
        width: 100%;
        text-align: center;
    }
    .nav-cta {
        width: 80%;
        border-radius: 30px;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hero section modifications */
    .hero {
        padding-top: 7rem;
        min-height: auto;
    }
    .hero-text h1 {
        font-size: 2.3rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .hero-services {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .square-card {
        aspect-ratio: auto;
        height: 180px;
    }
    .square-card h3 {
        font-size: 1.1rem;
    }

    /* About section modifications */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* Team section */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .team-member {
        padding: 1.5rem;
    }

    /* Contact section */
    .glass-card {
        padding: 2rem 1.5rem;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }

    /* Contact section mobile override */
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    /* Footer mobile override */
    .footer-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
}
