/* Variables & Reset */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --primary-gold: #d4af37;
    --primary-gold-hover: #b5952f;
    --text-light: #f5f5f5;
    --text-gray: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    --spacing-section: 100px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold { color: var(--primary-gold); }
.text-white { color: white; }
.text-gray { color: var(--text-gray); }

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border: 1px solid var(--primary-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-gold);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.loader-line {
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    animation: loadLine 1.5s ease-in-out forwards 0.5s;
}

@keyframes loadLine {
    to { width: 150px; }
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-contact {
    padding: 10px 24px;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-contact:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
}

.btn-contact::after { display: none; }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.7), rgba(10,10,10,0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    color: var(--primary-gold);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Stats */
.stats {
    padding: 60px 0;
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-gold);
    font-weight: 700;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections General */
.section {
    padding: var(--spacing-section) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--text-light);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255,255,255,0.03);
    padding: 40px 30px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-gold);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255,255,255,0.03);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.stars {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.client-info h4 {
    color: var(--primary-gold);
    font-family: var(--font-display);
    margin-bottom: 5px;
}

.client-info span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* About */
.about-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-block {
    width: 100%;
    height: 500px;
    background: #222; /* Placeholder */
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=1000&auto=format&fit=crop') center/cover;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-gold);
    padding: 30px;
    color: var(--bg-dark);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-content {
    flex: 1;
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-top: 5px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: var(--font-main);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-gold);
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Footer */
.footer {
    background: #050505;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-display);
    color: var(--text-light);
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #555;
    font-size: 0.8rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .about-container { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* Mobile menu to be implemented in JS */
    .stats-grid { flex-direction: column; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
    
    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }
    
    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-light);
        position: absolute;
        transition: var(--transition);
    }
    
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 9px; }
    .hamburger span:nth-child(3) { top: 18px; }
}

/* Process Section */
.process-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.process-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.process-item.reverse {
    flex-direction: row-reverse;
}

.process-image {
    flex: 1;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.process-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(212, 175, 55, 0.1); /* Gold tint */
    transition: var(--transition);
}

.process-item:hover .process-image::after {
    background: rgba(212, 175, 55, 0);
}

.process-content {
    flex: 1;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: 6rem;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: -60px;
    left: -20px;
    z-index: -1;
    font-weight: 700;
}

.process-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.process-content p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--primary-gold);
    font-family: var(--font-display);
    margin-bottom: 5px;
}

.gallery-overlay p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Updates for New Sections */
@media (max-width: 768px) {
    .process-item, .process-item.reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-image {
        width: 100%;
        height: 300px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }
    
    .gallery-item {
        height: 300px;
    }
}

/* Educational Section (Million Dollar Visuals) */
.education {
    position: relative;
    padding: 120px 0;
    background: #050505;
    overflow: hidden;
}

/* Dynamic Background */
.education::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(20, 50, 100, 0.1) 0%, transparent 40%);
    animation: rotateBg 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    perspective: 2000px;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.flip-card {
    background-color: transparent;
    height: 450px; /* Taller for elegance */
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth physics-like easing */
    transform-style: preserve-3d;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.15); /* Gold glow on hover */
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

/* Front Side - Glassmorphism & Depth */
.flip-card-front {
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.9), rgba(10, 10, 10, 0.95));
    backdrop-filter: blur(20px);
}

/* Shine Effect */
.flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}

.flip-card:hover .flip-card-front::before {
    left: 100%;
}

.edu-icon {
    font-size: 5rem;
    background: linear-gradient(135deg, #d4af37, #f8e7b0, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 40px;
    filter: drop-shadow(0 10px 20px rgba(212, 175, 55, 0.2));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-card:hover .edu-icon {
    transform: scale(1.2) rotate(5deg);
}

.flip-card-front h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 1px;
}

.flip-card-front p {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 300;
}

.click-hint {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.flip-card:hover .click-hint {
    background: var(--primary-gold);
    color: var(--bg-dark);
    opacity: 1;
}

/* Back Side - Premium Detail */
.flip-card-back {
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    transform: rotateY(180deg);
    border: 1px solid var(--primary-gold);
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.05);
}

.flip-card-back h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.flip-card-back h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-gold);
}

.flip-card-back p {
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 20px;
}

.edu-list {
    list-style: none;
    text-align: left;
    width: 100%;
    padding: 0 10px;
}

.edu-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #ccc;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.edu-list li:last-child {
    border-bottom: none;
}

.edu-list li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-gold);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 4px;
}

.edu-list strong {
    color: var(--text-light);
    font-weight: 600;
}

/* Trusted By Section */
.trusted-by {
    background: linear-gradient(to bottom, var(--bg-dark), #111);
    padding: 80px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.trusted-by .section-subtitle {
    color: var(--primary-gold);
    margin-bottom: 50px;
    opacity: 0.8;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Removed old pseudo-elements as mask-image handles the fade better */
.marquee-wrapper::before, .marquee-wrapper::after {
    display: none;
}

.marquee-content {
    display: flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
    width: max-content;
    align-items: center;
}

.marquee-content img {
    height: 60px;
    object-fit: contain;
    opacity: 0.5;
    transition: var(--transition);
    filter: grayscale(100%) brightness(200%); /* Ensure they pop on dark bg */
}

.marquee-content img:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
