:root {
            --primary: #4A90E2;
            --secondary: #2ECC71;
            --accent: #4A90E2;
            --bg: #f5f7fa;
            --alternate-bg: #e9ecef;
            --header-bg: #FFFFFF;
            --footer-bg: #343a40;
            --text: #333333;
            --light: #FFFFFF;
            --dark: #333333;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            overflow-x: hidden;
            width: 100%;
            max-width: 100%;
        }

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--text);
            background-color: var(--bg);
            line-height: 1.6;
        }

        h1,
        h2,
        h3,
        h4 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 1rem;
        }

        h1 {
            font-size: 2.8rem;
            line-height: 1.2;
        }

        h2 {
            font-size: 2.4rem;
            margin-bottom: 2rem;
            position: relative;
            display: inline-block;
        }

        h2:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 80px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }

        /* Remove underline for specific headings */
        .no-underline:after {
            display: none;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section {
            padding: 80px 0;
        }

        .text-center {
            text-align: center;
        }

        .highlight {
            color: var(--primary);
            font-weight: 600;
        }

        /* Header Styles */
        header {
            background: var(--header-bg);
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: var(--shadow);
            border-bottom: 1px solid #333;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .logo-img {
            height: 50px;
            border-radius: 8px;
        }

        .logo-text {
            font-size: 24px;
            font-weight: 700;
            color: var(--dark);
        }

        .logo-text span {
            color: var(--primary);
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 30px;
        }

        nav a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            font-size: 18px;
            transition: var(--transition);
            position: relative;
        }

        nav a:hover,
        nav a.active {
            color: var(--primary);
        }

        nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: var(--primary);
            transition: var(--transition);
        }

        nav a:hover::after,
        nav a.active::after {
            width: 100%;
        }

        /* Mobile Navigation */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--dark);
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #e0f2ff 0%, #f0f7ff 100%);
            padding: 100px 0;
            position: relative;
            overflow: hidden;

        }

        .hero-container {
            display: flex;
            align-items: center;
            gap: 50px;
            position: relative;
            z-index: 2;
        }

        .hero-content {
            flex: 1;
        }

        .hero h1 {
            font-size: 3.2rem;
            margin-bottom: 20px;
            line-height: 1.2;
            color: var(--dark);
        }

        .hero h1 span {
            color: var(--primary);
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 600px;
            margin-bottom: 30px;
            color: #666;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 14px 32px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 18px;
            text-decoration: none;
            transition: var(--transition);
            display: inline-block;
            text-align: center;
            cursor: pointer;
            border: none;
        }

        .btn-primary {
            background: var(--primary);
            color: var(--light);
            box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
        }

        .btn-primary:hover {
            background: #357ABD;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(53, 122, 189, 0.4);
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-secondary:hover {
            background: rgba(74, 144, 226, 0.1);
            transform: translateY(-3px);
        }

        .hero-image {
            flex: 1;
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border: 5px solid var(--primary);
            max-width: 500px;
        }

        .hero-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* IMPROVED TYPEWRITER EFFECT */
        .typewriter-container {
            display: inline-block;
            position: relative;
            height: 60px;
            overflow: hidden;
            vertical-align: middle;
        }

        .typewriter-text {
            color: var(--light);
            font-weight: 700;
            position: relative;
            white-space: nowrap;
            display: inline-block;
            padding-right: 5px;
            line-height: 1.2;
        }

        .typewriter-text::after {
            content: '|';
            position: absolute;
            right: 0;
            color: var(--primary);
            animation: blink 1s step-end infinite;
        }

        .kq-white {
            color: var(--light);
        }

        .coaching-pink {
            color: var(--primary);
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }
        }

        /* Books Animation Section */
        .books-section {
            padding: 100px 0;
            background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
            position: relative;
            overflow: hidden;
        }

        .books-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 60px;
            padding: 40px 0;
        }

        .book {
            width: 90%;
            max-width: 800px;
            height: 350px;
            perspective: 1500px;
            position: relative;
            cursor: pointer;
            transition: transform 0.5s ease;
        }

        .book:hover {
            transform: translateY(-10px);
        }

        .book-cover {
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #4A90E2 0%, #2e7dcc 100%);
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 30px;
            box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
            backface-visibility: hidden;
            transition: transform 1s;
            transform-style: preserve-3d;
            z-index: 2;
            color: white;
            text-align: center;
        }

        .book-cover i {
            font-size: 60px;
            margin-bottom: 20px;
            color: rgba(255, 255, 255, 0.9);
        }

        .book-cover h3 {
            font-size: 2rem;
            color: white;
            margin-bottom: 15px;
        }

        .book-content {
            position: absolute;
            width: 100%;
            height: 100%;
            background: white;
            border-radius: 15px;
            display: flex;
            overflow: hidden;
            box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
            transform: rotateY(180deg);
            backface-visibility: hidden;
            transition: transform 1s;
            transform-style: preserve-3d;
        }

        .left-page,
        .right-page {
            flex: 1;
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .left-page {
            background: #f8f9fa;
            border-right: 1px solid #e9ecef;
        }

        .left-page h3 {
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 20px;
            text-align: center;
        }

        .right-page p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #555;
        }

        .book.flipped .book-cover {
            transform: rotateY(180deg);
        }

        .book.flipped .book-content {
            transform: rotateY(0deg);
        }

        .right-page .flip-hint {
            position: absolute;
            bottom: 3px;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 0.7rem;
            color: rgba(21, 19, 19, 0.8);
            font-style: italic;
            margin-top: 15px;
        }

        .about {
            padding: 100px 0;
            background: var(--bg);
        }

        .about-container {
            display: flex;
            gap: 50px;
            align-items: center;
        }

        .about-image {
            flex: 1;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            border: 5px solid var(--light);
            max-width: 500px;
        }

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        .about-content {
            flex: 1;
        }

        .about-content h2 {
            font-size: 2.8rem;
            margin-bottom: 30px;
        }

        .about-content p {
            margin-bottom: 20px;
            font-size: 1.1rem;
            color: #180e0e;
        }

        .experience {
            display: flex;
            gap: 20px;
            margin: 30px 0;
            flex-wrap: wrap;
        }

        .exp-box {
            background: var(--light);
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            box-shadow: var(--shadow);
            flex: 1;
            border: 1px solid rgba(74, 144, 226, 0.1);
        }


        .exp-box h3 {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 5px;
        }

        /* Contact Section */
        .contact {
            background-color: var(--alternate-bg);
            border-bottom: 1px solid #333;
        }

        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
        }

        .contact-info {
            padding: 30px;
        }

        .contact-info h3 {
            font-size: 1.8rem;
            margin-bottom: 30px;
        }

        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 25px;
            margin-bottom: 40px;
        }

        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: rgba(255, 64, 129, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: var(--primary);
            flex-shrink: 0;
        }

        .contact-text h4 {
            font-size: 1.3rem;
            margin-bottom: 5px;
        }

        .contact-map {
            height: 400px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .contact-map iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Course Selection Modal - FIXED RESPONSIVENESS */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(198, 192, 192, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: white;
            padding: 50px 20px 30px;
            border-radius: 15px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            position: relative;
            border: 1px solid #333;
            color: var(--text);
            max-height: 90vh;
            overflow-y: auto;
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #bbb;
            background: transparent;
            border: none;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-modal:hover {
            color: var(--primary);
        }

        .course-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin: 30px 0;
        }

        .course-option {
            background: #ffffff;
            border: 2px solid var(--primary);
            border-radius: 10px;
            padding: 20px;
            cursor: pointer;
            transition: var(--transition);
        }

        .course-option:hover {
            background: rgba(255, 64, 129, 0.1);
            transform: translateY(-5px);
        }

        .course-option i {
            font-size: 40px;
            color: var(--primary);
            margin-bottom: 15px;
        }

        .coming-soon {
            margin-top: 20px;
            font-style: italic;
            color: #777;
        }

        /* Course Selection Page */
        .course-selection {
            display: flex;
            flex-direction: column;
            gap: 30px;
            padding: 20px;
        }

        .course-box {
            background: white;
            border: 2px solid var(--primary);
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .course-box:hover {
            background: rgba(255, 64, 129, 0.1);
            transform: translateY(-5px);
        }

        .course-box i {
            font-size: 48px;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .course-box h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
        }

        .back-button {
            position: absolute;
            top: 15px;
            left: 15px;
            background: transparent;
            border: none;
            color: #bbb;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            z-index: 10;
        }

        .back-button:hover {
            color: var(--primary);
        }

        /* Footer */
        footer {
            background: var(--footer-bg);
            color: var(--light);
            padding: 70px 0 20px;
        }

        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 50px;
        }

        .footer-col h3 {
            color: var(--light);
            font-size: 1.8rem;
            margin-bottom: 25px;
            position: relative;
        }

        .footer-col h3::after {
            content: '';
            position: absolute;
            width: 40px;
            height: 3px;
            background: var(--primary);
            bottom: -10px;
            left: 0;
        }

        .footer-col p {
            opacity: 0.8;
            margin-bottom: 15px;
            color: #bbb;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 12px;
        }

        .footer-col ul li a {
            color: #bbb;
            text-decoration: none;
            transition: var(--transition);
            display: block;
            padding: 5px 0;
        }

        .footer-col ul li a:hover {
            color: var(--primary);
            padding-left: 5px;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            color: var(--light);
            font-size: 18px;
        }

        .social-icon:hover {
            background: var(--primary);
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            opacity: 0.7;
        }

        .whatsapp-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 70px;
            height: 70px;
            background: #25D366;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 40px;
            color: var(--light);
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
            z-index: 100;
            animation: pulse 2s infinite;
            text-decoration: none;
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
            }

            70% {
                box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
            }
        }

        /* Developer Contact */
        .developer-contact {
            text-align: center;
            padding: 20px;
            background: rgba(15, 113, 218, 0.1);
            border-radius: 15px;
            margin: 30px auto;
            max-width: 600px;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(37, 119, 234, 0.3);
            transition: var(--transition);
            animation: developerPulse 3s infinite;
        }

        .developer-contact:hover {
            transform: scale(1.02);
            box-shadow: 0 10px 30px rgba(39, 80, 227, 0.3);
            animation: none;
        }

        @keyframes developerPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(34, 107, 253, 0.3);
            }

            70% {
                box-shadow: 0 0 0 10px rgba(55, 117, 252, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
            }
        }

        .developer-contact p {
            font-size: 1.1rem;
            margin-bottom: 15px;
        }

        .developer-contact span {
            color: var(--primary);
            font-weight: 600;
        }

        .developer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 10px;
        }

        .developer-links a {
            color: var(--light);
            background: rgba(21, 85, 203, 0.2);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: var(--transition);
            text-decoration: none;
        }

        .developer-links a:hover {
            background: var(--primary);
            transform: translateY(-5px);
        }

        /* Sir Image in Why Choose Section */
        .sir-image-section {
            width: 100%;
            max-width: 500px;
            margin: 0 auto 40px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
            border: 5px solid var(--primary);
        }

        .sir-image-section img {
            width: 100%;
            display: block;
        }

        /* Mobile Book Layout Changes */
        @media (max-width: 768px) {
            nav ul {
                gap: 15px;
            }

            .hero h1 {
                font-size: 2.8rem;
            }

            .section-title h2 {
                font-size: 2.3rem;
            }

            .exp-box h3 {
                font-size: 2rem;
            }

            .footer-container {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .book-content {
                flex-direction: column;
            }

            .left-page,
            .right-page {
                padding: 20px;
            }

            .left-page {
                border-right: none;
                border-bottom: 1px solid #e9ecef;
            }
        }

        /* REMOVED FLIP HINT FROM LEFT PAGE */
        .left-page .flip-hint {
            display: none;
        }

        /* MODAL MOBILE ADJUSTMENTS */
        .modal-content {
            max-height: 80vh;
        }

        .course-options {
            grid-template-columns: 1fr;
        }

        .course-selection {
            padding: 10px;
        }

        .book.flipped .book-content {
            display: flex;
        }


        /* Responsive Design */
        @media (max-width: 992px) {
            h1 {
                font-size: 2.5rem;
            }

            h2 {
                font-size: 2rem;
            }

            .hero-container,
            .about-container {
                flex-direction: column;
            }

            .hero-content,
            .hero-image,
            .about-image,
            .about-content {
                width: 100%;
                max-width: 100%;
            }

            .contact-container {
                grid-template-columns: 1fr;
            }

            .contact-map {
                height: 300px;
            }

            .book {
                height: 300px;
            }

            .book-cover h3 {
                font-size: 1.8rem;
            }

            .left-page h3 {
                font-size: 1.6rem;
            }

            .course-options {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            nav ul {
                display: none;
                position: absolute;
                top: 80px;
                left: 0;
                width: 100%;
                background: var(--header-bg);
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
                gap: 15px;
            }

            nav ul.show {
                display: flex;
            }


            .mobile-menu-btn {
                display: block;
            }

            .hero {
                padding: 80px 0;
            }

            .hero h1 {
                font-size: 2.2rem;
            }

            .hero-image {
                order: -1;
                margin-bottom: 30px;
            }

            .about-image {
                margin-bottom: 30px;
            }

            .experience {
                flex-direction: column;
            }

            .exp-box {
                width: 100%;
            }

            .section-title h2 {
                font-size: 2rem;
            }

            .about-container {
                flex-direction: column-reverse;
            }

            /* Modal adjustments for mobile */
            .modal-content {
                padding: 50px 15px 20px;
            }

            .course-options {
                grid-template-columns: 1fr;
            }

            .course-option {
                padding: 15px;
            }
        }

        @media (max-width: 576px) {
            h1 {
                font-size: 2rem;
            }

            h2 {
                font-size: 1.8rem;
            }

            .hero-buttons {
                flex-direction: column;
            }

            .book {
                height: 450px;
            }

            .book-cover h3 {
                font-size: 1.6rem;
            }


            .course-options {
                grid-template-columns: 1fr;
            }

            .course-option {
                padding: 15px;
            }

            .modal-content {
                padding: 50px 15px 20px;
            }

            .book-cover,
            .book-content {
                min-height: 180px;
            }

            .course-selection {
                padding: 10px;
            }

            .course-box {
                padding: 20px;
            }

            .back-button {
                top: 10px;
                left: 10px;
                font-size: 14px;
            }


            /* TYPEWRITER HEIGHT ADJUSTMENT */
            .typewriter-container {
                height: 50px;
            }
        }