:root {
    --primary: #5D2E8E; /* Purple from image */
    --primary-dark: #3E1F5E;
    --secondary: #FF6B35; /* Vibrant Orange */
    --accent: #00d4ff;
    --text: #2D3436;
    --text-light: #636E72;
    --white: #ffffff;
    --bg-light: #F0F4F8;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 15px 35px rgba(93, 46, 142, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Layout */
section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.5rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 50px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-text .main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.brand-text .sub-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}


.highlight-brand {
    color: var(--secondary);
    background: rgba(255, 107, 53, 0.1);
    padding: 8px 15px;
    border-radius: 30px;
    border: 2px solid var(--secondary);
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.hero-btns .btn-primary {
    background: var(--primary);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(93, 46, 142, 0.3);
    transition: var(--transition);
}

.hero-btns .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(93, 46, 142, 0.4);
}


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

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

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 80px 10%;
    background: url('slider.png');
    background-size: cover;
    background-position: top center; /* Ensuring face visibility */
    background-attachment: fixed;
    position: relative;
    color: var(--primary-dark);
    overflow: hidden;
}


.hero-content {
    max-width: 650px;
    text-align: right;
    z-index: 2;
}

.hero-grid-box {
    background: rgba(255, 255, 255, 0.5); /* 50% opacity */
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    animation: slideInRight 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2rem;
    animation: slideInRight 1.2s ease-out;
}


@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}


.hero-content span {
    color: var(--secondary);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

/* Custom Methodology Grid for 4 Columns */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .methodology-grid {
        grid-template-columns: 1fr;
    }
}

/* Promo Video Section */
.video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.video-preview-box {
    flex: 0 0 340px;
    height: 604px;
    position: relative;
    cursor: pointer;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-preview-box:hover .video-poster {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    transition: var(--transition);
}

.video-preview-box:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
}

.video-wrapper {
    flex: 0 0 340px; /* Precisely control width on desktop */
    position: relative;
    padding-bottom: 604px; /* 340 * 1.777 */
    height: 0;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    flex: 1;
}

.video-info h3.highlight-text {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.video-info h3.highlight-text span {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.video-info h3.highlight-text span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 107, 53, 0.2);
    z-index: -1;
}

.promo-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.promo-description strong {
    color: var(--primary);
}

.btn-glow {
    background: linear-gradient(135deg, var(--secondary), #ff8a5c);
    color: white !important;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.btn-glow i {
    transition: transform 0.3s ease;
}

.btn-glow:hover i {
    transform: translateX(10px);
}

@media (max-width: 992px) {
    .video-container {
        gap: 3rem;
        padding: 3rem;
    }
    .video-preview-box, .video-wrapper {
        flex: 0 0 300px;
        height: 533px;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
        gap: 3rem;
    }
    .video-preview-box, .video-wrapper {
        flex: none;
        width: 100%;
        max-width: 320px;
        height: 568px;
    }
    .video-info h3.highlight-text {
        font-size: 2.2rem;
    }
}

/* Success Ticker (Infinite Scroll) */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 40s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    flex: 0 0 400px;
    margin: 0 1rem;
    height: auto;
    display: flex;
    flex-direction: column;
}

.ticker-item .card-content {
    padding-top: 1rem;
}

.ticker-item .meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0.5rem 0;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Assuming we duplicate items */
}

/* Base Success Card Adjustments */
.success-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.success-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(93, 46, 142, 0.15);
}

.success-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.success-card .quote {
    font-style: italic;
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.95rem;
    display: block;
}

/* Footer Upgraded */
.footer-main {
    background: var(--primary-dark);
    color: var(--white);
    padding: 5rem 10% 2rem;
}

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

.footer-col h3 {
    margin-bottom: 2rem;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.credit-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}


@media (max-width: 768px) {
    .hero {
        justify-content: center;
        text-align: center;
        padding: 80px 5%;
    }
    .hero-content {
        text-align: center;
    }
    .hero-btns {
        justify-content: center !important;
    }
    .success-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        gap: 2rem;
    }
    .footer-bottom {
        text-align: center;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* Full Screen Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    z-index: 2000;
    transition: 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.mobile-menu-overlay.active {
    top: 0;
    opacity: 1;
}

.mobile-menu-overlay .close-menu {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links a {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-links .enquiry-btn {
    background: var(--secondary) !important;
    font-size: 1.5rem;
    padding: 15px 40px;
    margin-top: 20px;
}

.mobile-nav-links .enquiry-btn:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
}

/* Enquiry Button & Form Styles */
.enquiry-btn {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.enquiry-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Login Button Styles */
.login-btn {
    background: rgba(255, 107, 53, 0.1);
    color: var(--secondary) !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--secondary);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    background: var(--secondary);
    color: white !important;
    transform: translateY(-2px);
}

.btn-login-hero {
    background: white;
    color: var(--secondary);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--secondary);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.1);
}

.btn-login-hero:hover {
    background: var(--secondary);
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.mobile-nav-links .login-btn {
    font-size: 1.5rem;
    padding: 15px 40px;
    margin-top: 10px;
    background: rgba(255, 107, 53, 0.1);
    color: white !important;
    border-color: var(--secondary);
}

.enquiry-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(93, 46, 142, 0.1);
}

.submit-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Enquiry Modal Popup */
.enquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.enquiry-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 500px;
    width: 95%; /* Better fit on small screens */
    padding: 2rem; /* Reduced padding for mobile space */
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    margin: auto;
}

@media (max-width: 576px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: 15px;
    }
    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .enquiry-form {
        padding: 0;
        box-shadow: none;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* Navbar Brand Visibility */
@media (max-width: 992px) {
    .logo-container {
        display: flex !important;
    }
    .brand-text {
        display: flex !important;
    }
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block !important;
    }
}
