:root {
    --deep-indigo-blue: #2C3E50;
    --royal-purple: #8E44AD;
    --bright-sky-blue: #3498DB;
    --lavender: #C39BD3;
    --pristine-white: #FFFFFF;
    --modern-black: #1F1F1F;
    --light-gray: #EAECEE;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --whatsapp-green: #25D366;
    --sidebar-width: 75vw;
    --sidebar-max-width: 350px;
    --sidebar-overlay-bg: rgba(44, 62, 80, 0.45);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--pristine-white);
    font-size: 1rem;
}
.container {
    max-width: 1400px; /* Made larger for about section on big screens */
    margin: 0 auto; 
    padding: 0 5vw;
    width: 100%;
}
@media (min-width: 1200px) {
    .about-section .container {
        max-width: 1250px;
        padding-left: 7vw;
        padding-right: 7vw;
    }
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--deep-indigo-blue);
    margin-bottom: 0.8em;
}
h1 { font-size: clamp(2rem, 7vw, 3em); }
h2 { font-size: clamp(1.7rem, 5vw, 2.5em); }
h3 { font-size: 1.4em; }
a { text-decoration: none; color: var(--bright-sky-blue); }
ul { list-style: none; }
.btn {
    display: inline-block; background: var(--royal-purple); color: var(--pristine-white);
    padding: 0.75em 1.6em; border-radius: 5px; transition: background-color 0.3s;
    font-weight: 600; border: none; cursor: pointer; font-size: 1em;
}
.btn:hover { background-color: var(--deep-indigo-blue); }

/* Header */
.main-header {
    background-color: var(--pristine-white); padding: 0.9em 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
.header-content {
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    display: flex; align-items: center; font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 1.5em; color: var(--deep-indigo-blue);
}
.logo img { height: 2.5em; margin-right: 0.6em; }
.main-nav ul { display: flex; }
.main-nav ul li { margin-left: 2em; }
.main-nav ul li a {
    color: var(--deep-indigo-blue); font-weight: 600; transition: color 0.3s;
    position: relative; padding-bottom: 0.25em;
}
.main-nav ul li a::after {
    content: ''; position: absolute; width: 0; height: 2px; background: var(--royal-purple);
    left: 0; bottom: 0; transition: width 0.3s;
}
.main-nav ul li a:hover::after, .main-nav ul li a.active::after { width: 100%; }
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--royal-purple); }

/* Hamburger only on mobile */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 38px;
    height: 38px;
    position: relative;
    z-index: 1102;
    justify-content: center;
    align-items: center;
}
.hamburger {
    display: block;
    position: relative;
    width: 28px;
    height: 4px;
    background: var(--deep-indigo-blue);
    border-radius: 3px;
    transition: background 0.3s;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 4px;
    background: var(--deep-indigo-blue);
    border-radius: 3px;
    transition: transform 0.3s, top 0.3s;
}
.hamburger::before { top: -10px; }
.hamburger::after { top: 10px; }
.nav-toggle.active .hamburger {
    background: transparent;
}
.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Hamburger only on small screens */
@media (max-width: 900px) {
    .main-nav { display: none !important; }
    .nav-toggle { display: flex; }
}

/* SIDEBAR NAV (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--sidebar-overlay-bg);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
.sidebar-nav {
    position: fixed; top: 0; right: 0; height: 100vh;
    width: var(--sidebar-width); max-width: var(--sidebar-max-width);
    background: var(--pristine-white); box-shadow: -2px 0 12px rgba(0,0,0,0.12);
    z-index: 1101; transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(.4,0,.2,1);
    padding: 2.3em 1.7em 1.5em 1.7em; display: flex; flex-direction: column;
}
.sidebar-nav.active { transform: translateX(0); }
.sidebar-nav .close-sidebar {
    background: none; border: none; color: var(--deep-indigo-blue);
    font-size: 2em; align-self: flex-end; margin-bottom: 30px; cursor: pointer;
}
.sidebar-nav ul { display: flex; flex-direction: column; gap: 1.5em; }
.sidebar-nav ul li a {
    font-size: 1.2em; color: var(--deep-indigo-blue); font-weight: 600;
    transition: color 0.25s;
}
.sidebar-nav ul li a:hover, .sidebar-nav ul li a.active { color: var(--royal-purple); }

body.sidebar-open { overflow: hidden; }

/* Hide sidebar nav on desktop */
@media (min-width: 901px) {
    .sidebar-nav, .sidebar-overlay { display: none !important; }
}

/* Improved mobile sidebar width for small screens */
@media (max-width: 600px) {
    .sidebar-nav {
        width: 82vw;
        max-width: 260px;
        min-width: 200px;
        padding: 1.6em 0.7em 1.1em 1.1em;
    }
    .sidebar-nav ul li a {
        font-size: 1.07em;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--deep-indigo-blue) 0%, var(--royal-purple) 100%);
    color: var(--pristine-white); padding: clamp(3em, 12vw, 6em) 0; min-height: 650px;
    display: flex; align-items: center; position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 20px 20px;
    opacity: 0.1; z-index: 1;
}
.hero-content {
    display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; flex-wrap: wrap;
}
.hero-text { flex: 1; max-width: 60%; padding-right: 2.5em; }
.hero-text h1 { color: var(--pristine-white); font-size: clamp(2.3em, 7vw, 3.8em); line-height: 1.2; margin-bottom: 0.6em; }
.hero-text .highlight { color: var(--bright-sky-blue); }
.hero-text p { font-size: 1.4em; margin-bottom: 1.5em; opacity: 0.9; }
.hero-image { flex: 0 0 40%; display: flex; justify-content: center; align-items: center; position: relative; }
.hero-image img {
    max-width: 100%; height: auto; border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transform: translateY(0); transition: transform 0.5s;
}

/* About Section */
.about-section { background: var(--light-gray); }
.about-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: space-between;
}
.about-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px; margin-top: 40px;
}
.about-card {
    background: var(--pristine-white); padding: 2em; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: center; transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 18px rgba(0,0,0,0.13);
}
.about-icon {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--lavender); color: var(--royal-purple);
    font-size: 2.8em; width: 70px; height: 70px; border-radius: 50%;
    margin-bottom: 15px; box-shadow: 0 3px 10px rgba(0,0,0,0.09);
}
.about-card h3 { margin-bottom: 10px; }
.about-card p { color: var(--text-dark); font-size: 1em; }

.about-image {
    flex: 0 0 360px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.about-image img {
    max-width: 360px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(44,62,80,0.13);
}

/* ==== MEDIA OVERLAY CARDS ==== */
.media-overlay-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.11);
    margin-bottom: 30px;
    transition: box-shadow 0.32s, transform 0.32s;
    cursor: pointer;
    min-width: 220px;
    max-width: 560px;
    /* larger max-width for laptop */
}
@media (min-width: 992px) {
    .media-overlay-card {
        max-width: 440px;
        min-width: 320px;
        width: 370px;
    }
    .bvmg-flex .media-overlay-card,
    .btw-flex .media-overlay-card {
        width: 370px;
        min-width: 320px;
        max-width: 440px;
    }
}
@media (min-width: 1200px) {
    .media-overlay-card {
        max-width: 470px;
        min-width: 340px;
        width: 430px;
    }
    .bvmg-flex .media-overlay-card,
    .btw-flex .media-overlay-card {
        width: 430px;
        min-width: 340px;
        max-width: 470px;
    }
}
@media (min-width: 1400px) {
    .media-overlay-card {
        max-width: 520px;
    }
}
.media-overlay-img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    transition: filter 0.32s;
}
@media (min-width: 992px) {
    .media-overlay-img {
        height: 320px;
    }
}
@media (min-width: 1200px) {
    .media-overlay-img {
        height: 360px;
    }
}
@media (min-width: 1400px) {
    .media-overlay-img {
        height: 400px;
    }
}
.media-overlay-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #fff;
    background: linear-gradient(135deg,rgba(44,62,80,0.88) 0%,rgba(142,68,173,0.86) 100%);
    opacity: 0.0;
    text-align: center;
    padding: 2.2em 1.1em 1.2em 1.1em;
    border-radius: 14px;
    pointer-events: none;
    transition: opacity 0.32s, background 0.32s;
}
.media-overlay-card:hover,
.media-overlay-card:focus {
    box-shadow: 0 10px 28px rgba(52,152,219,0.18);
    transform: translateY(-5px) scale(1.025);
}
.media-overlay-card:hover .media-overlay-content,
.media-overlay-card:focus .media-overlay-content {
    opacity: 1;
    pointer-events: auto;
    background: linear-gradient(120deg,rgba(52,152,219,0.89) 0%,rgba(142,68,173,0.90) 100%);
}
.media-overlay-card:hover .media-overlay-img,
.media-overlay-card:focus .media-overlay-img {
    filter: brightness(0.68) blur(1.5px);
}
.media-overlay-content i {
    font-size: 2.2em;
    margin-bottom: 13px;
    color: #fff;
    text-shadow: 0 1px 10px rgba(44,62,80,0.12);
}
.media-overlay-content span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.18em;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 7px;
    display: block;
}
.media-overlay-content p {
    font-size: 0.99em;
    opacity: 0.91;
    font-family: 'Open Sans', sans-serif;
}
.bvmg-flex, .btw-flex, .ppm-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.bvmg-flex .media-overlay-card,
.btw-flex .media-overlay-card,
.ppm-flex .media-overlay-card {
    margin-right: 0;
    margin-bottom: 0;
}

/* ==== END MEDIA OVERLAY CARDS ==== */

/* BVMG Section */
.bvmg-section { background: var(--pristine-white); }
.bvmg-flex {
    display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.bvmg-content { flex: 1 1 360px; }
.bvmg-mission { margin-bottom: 18px; font-weight: 500; }
.bvmg-list { margin-bottom: 15px; }
.bvmg-list li { margin-bottom: 7px; font-size: 1.12em; }
.bvmg-list i { color: var(--royal-purple); margin-right: 9px; }
.bvmg-impact { color: var(--deep-indigo-blue); font-style: italic; }

/* Born to Win Section */
.btw-section { background: var(--light-gray); }
.btw-flex {
    display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.btw-content { flex: 1 1 360px; }
.btw-list { margin-bottom: 16px; }
.btw-list li { margin-bottom: 7px; font-size: 1.12em; }
.btw-list i { color: var(--bright-sky-blue); margin-right: 9px; }
.btw-media { flex: 1 1 360px; }

/* Pure Prestige Motors Section */
.ppm-section { background: var(--pristine-white); }
.ppm-flex { 
    display: flex; 
    gap: 40px; 
    flex-wrap: wrap; 
    align-items: flex-start; 
    justify-content: flex-start; 
    margin-top: 0; 
    position: relative;
}
.ppm-content {
    flex: 1 1 400px;
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.93);
    padding: 2.2em 2em 2em 2em;
    border-radius: 16px;
    box-shadow: 0 3px 20px rgba(44,62,80,0.06);
    margin-bottom: 1em;
}
.ppm-header-on-image {
    position: absolute;
    z-index: 3;
    top: 2.5em;
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
}
.ppm-header-on-image h2 {
    color: #fff;
    background: rgba(44,62,80,0.7);
    display: inline-block;
    padding: 0.35em 1.5em;
    border-radius: 12px;
    font-size: clamp(1.3em, 3vw, 2.2em);
    box-shadow: 0 2px 12px rgba(44,62,80,0.22);
    pointer-events: auto;
}
.ppm-image-wrap {
    flex: 0 0 420px; 
    position: relative; 
    display: flex; 
    align-items: flex-start; 
    justify-content: center;
    width: 100%;
}
.ppm-image-wrap .media-overlay-card {
    width: 100%;
    margin-top: 2.5em;
}
@media (max-width: 992px) {
    .about-layout {
        flex-direction: column;
        gap: 30px;
    }
    .about-image {
        justify-content: center;
        margin-bottom: 20px;
    }
    .ppm-flex { flex-direction: column; }
    .ppm-content { margin-top: 0; }
    .ppm-header-on-image { position: static; background: none; text-align: center; }
    .ppm-header-on-image h2 { background: var(--deep-indigo-blue); color: #fff; }
    .ppm-image-wrap { margin-bottom: 1.5em; }
}

@media (max-width: 600px) {
    .about-image img { max-width: 95vw; }
    .ppm-header-on-image { top: 0.9em; }
    .ppm-image-wrap .media-overlay-card { margin-top: 1.1em; }
}

@media (max-width: 480px) {
    .ppm-header-on-image h2 { font-size: 1.1em; }
    .ppm-content { padding: 0.8em; }
}

/* Skills Section */
.skills-section { padding: 5em 0; background-color: var(--pristine-white); text-align: center; }
.skills-section h2 { color: var(--deep-indigo-blue); margin-bottom: 0.6em; }
.skills-section .section-intro { font-size: 1.1em; color: var(--text-dark); max-width: 800px; margin: 0 auto 3em auto; }
.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px; margin-top: 40px;
}
.skill-card {
    background-color: var(--light-gray);
    padding: 2em; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.skill-icon {
    font-size: 3em; color: var(--royal-purple);
    margin-bottom: 20px; width: 70px; height: 70px; border-radius: 50%;
    background-color: var(--lavender); display: flex; justify-content: center; align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.09);
}
.skill-card h3 { color: var(--deep-indigo-blue); margin-bottom: 10px; }
.skill-card p { color: var(--text-dark); font-size: 1em; }

/* Contact Section */
.contact-section { background: var(--light-gray); }
.contact-flex { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
.contact-form { flex: 1 1 350px; background: var(--pristine-white); padding: 2em; border-radius: 10px; box-shadow: 0 5px 12px rgba(0,0,0,0.08);}
.contact-form h2 { margin-bottom: 1.5em;}
.form-group { margin-bottom: 1.1em; }
.form-group label { display: block; margin-bottom: 0.4em; font-weight: 600; }
.form-group i { color: var(--royal-purple); margin-right: 6px;}
.form-group input, .form-group textarea {
    width: 100%; padding: 0.75em; border: 1px solid var(--light-gray);
    border-radius: 5px; font-size: 1em; background: var(--light-gray);
    margin-bottom: 0.3em; outline: none; transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border: 1.5px solid var(--royal-purple); }

/* Responsive Image */
.responsive-img { width: 100%; height: auto; border-radius: 10px; }

/* Footer */
.main-footer { background-color: var(--modern-black); color: var(--text-light); padding: 2em 0; font-size: 0.97em; }
.footer-flex {
    display: flex; flex-wrap: wrap; gap: 1.2em; align-items: center; justify-content: space-between;
}
.footer-links, .footer-social { display: flex; gap: 1.1em; align-items: center; }
.footer-links a, .footer-social a {
    color: var(--lavender); transition: color 0.3s;
    font-size: 1.1em;
}
.footer-links a:hover, .footer-social a:hover { color: var(--bright-sky-blue); }

/* Floating WhatsApp Button (left side) */
.whatsapp-float {
    position: fixed; left: 25px; bottom: 95px; z-index: 1200;
    display: flex; align-items: center; background: var(--whatsapp-green);
    color: #fff; padding: 0.75em 1.25em; border-radius: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.14); font-weight: 700; font-size: 1.2em;
    transition: background 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { background: #128C7E; text-decoration: none; }
.whatsapp-float .fab { font-size: 1.6em; margin-right: 10px; }
.whatsapp-float .chat-text { font-size: 1em; }

/* Ensure WhatsApp left floating */
.whatsapp-float.left { left: 25px; right: auto; }

/* Return To Top Button */
#toTopBtn {
    position: fixed; right: 25px; bottom: 35px; z-index: 1200;
    background: var(--royal-purple); color: #fff;
    border: none; outline: none; width: 48px; height: 48px;
    border-radius: 50%; font-size: 1.6em; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.13);
    cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#toTopBtn.show { opacity: 1; pointer-events: auto; }
#toTopBtn:hover { background: var(--deep-indigo-blue); }

/* Section padding helper */
.section-padding { padding: clamp(2.5em, 7vw, 4.5em) 0; }

/* --- Responsive Design --- */
@media (max-width: 1100px) {
    .container { max-width: 95vw; }
}
@media (max-width: 992px) {
    .hero-text h1 { font-size: clamp(1.3em, 6vw, 2.6em); }
    .hero-content, .bvmg-flex, .btw-flex, .contact-flex, .footer-flex, .ppm-flex {
        flex-direction: column; gap: 30px;
    }
    .hero-text, .bvmg-content, .btw-content, .contact-form { max-width: 100%; padding-right: 0; }
    .hero-image, .bvmg-media, .btw-media { width: 100%; }
    .about-grid, .skills-grid { grid-template-columns: 1fr 1fr; }
    .media-overlay-card { width: 100%; max-width: 100%; }
    .media-overlay-img { height: 180px; }
}
@media (max-width: 768px) {
    .hero-section { padding: 3.5em 0 1.5em 0; min-height: auto; }
    .hero-text h1 { font-size: clamp(1.1em, 5vw, 2em); }
    .skills-grid, .about-grid { grid-template-columns: 1fr; }
    .footer-flex, .contact-flex, .bvmg-flex, .btw-flex, .ppm-flex { flex-direction: column; }
    .contact-form { width: 100%; }
    .whatsapp-float { bottom: 85px; padding: 0.6em 0.9em; font-size: 1em;}
    #toTopBtn { bottom: 25px; }
    .about-layout { flex-direction: column; gap: 20px; }
    .about-image { justify-content: center; margin-bottom: 18px; }
}
@media (max-width: 600px) {
    .sidebar-nav {
        width: 82vw;
        max-width: 260px;
        min-width: 200px;
        padding: 1.6em 0.7em 1.1em 1.1em;
    }
    .sidebar-nav ul li a {
        font-size: 1.07em;
    }
    .media-overlay-img { height: 130px; }
    .media-overlay-content { padding: 1.1em 0.4em 0.7em 0.4em; }
}
@media (max-width: 480px) {
    .hero-text h1, .skills-section h2, .about-section h2, .bvmg-content h2, .btw-content h2, .contact-form h2 { font-size: 1.1em; }
    .logo { font-size: 0.85em; }
    .logo img { height: 1.5em; }
    .container { padding: 0 0.5em; }
    .section-padding { padding: 1.8em 0; }
    .about-card, .skill-card, .contact-form { padding: 0.8em; }
    .whatsapp-float { left: 10px; bottom: 70px; font-size: 0.97em;}
    #toTopBtn { right: 10px; bottom: 15px; width: 38px; height: 38px; font-size: 1.2em;}
}
/* Extra Small Devices (<=350px wide phones) */
@media (max-width: 350px) {
    .hero-section, .section-padding { padding: 1em 0; }
    .btn, .about-card, .skill-card, .contact-form { padding: 0.5em; font-size: 0.95em; }
    .hero-text h1, .skills-section h2 { font-size: 0.9em; }
    .logo { font-size: 0.7em; }
}