/* ===================================
   KUSSHA CONSULTANCY - MAIN STYLES
   =================================== */

/* CSS VARIABLES */
:root {
    --primary-color: #007bff;
    --secondary-color: #2c3e50;
    --accent-color: #28a745;
    --text-color: #34495e;
    --light-text: #7f8c8d;
    --light-bg: #f4f7f9;
    --dark-bg: #2c3e50;
    --white-text: #fff;
    --card-bg: #ffffff;
    --border-color: #ecf0f1;
    --code-bg: #ecf0f1;
    --code-border: #bdc3c7;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* TYPOGRAPHY */
h1 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--light-text);
    line-height: 1.7;
}

ul,
ol {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--light-text);
}

ul li,
ol li {
    margin-bottom: 8px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    background-color: var(--dark-bg);
    color: var(--white-text);
    padding: 1rem 5%;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white-text);
    gap: 10px;
    transition: var(--transition);
}

.site-logo:hover {
    transform: scale(1.02);
}

.site-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--white-text);
    text-align: left;
}

.site-logo i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 30px;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu li a {
    color: var(--white-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.nav-menu li a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Quiz Navigation Highlight */
.quiz-nav-highlight {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    }

    to {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--white-text);
    cursor: pointer;
    padding: 5px;
}

/* ===================================
   MAIN CONTENT SECTIONS
   =================================== */
main {
    flex: 1;
    width: 100%;
    padding: 0;
}

section {
    background-color: var(--card-bg);
    padding: 35px 5%;
    margin: 0 2% 10px 2%;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

section:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Hero Section */
.hero-section {
    padding: 30px 5%;
    /* Increased vertical padding for balance */
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    margin: 0 2% 10px 2%;
    display: flex;
    flex-direction: row;
    /* Default to row for desktop */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    /* Space between columns */
    text-align: left;
    /* Left align text */
}

.hero-left {
    flex: 1.5;
    /* Takes up more space */
    max-width: 650px;
}

.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Stack stats and tags vertically */
    justify-content: center;
    align-items: flex-end;
    /* Align everything to the right */
    gap: 20px;
}

/* Hero Typography */
.hero-section h1 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 20px;
    font-weight: 700;
    margin-left: 0;
    margin-right: 0;
    /* Gradient Text */
    background: linear-gradient(135deg, #007bff 0%, #6c5ce7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    margin-bottom: 20px;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Enhanced Hero Stats */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100%;
    align-items: center;
    /* Align stats to center */

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.25);
    padding: 25px;
    border-radius: 16px;
    /* slightly more rounded */
    backdrop-filter: blur(12px);
    /* stronger blur */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    /* premium shadow */

    /* Animation */
    animation: float 6s ease-in-out infinite;
}

.stat-item {
    font-size: 1.1rem;
    /* Slightly larger stats */
}

.stat-item i {
    font-size: 1.3rem;
    min-width: 30px;
    /* Align icons */
}

.trending-tags {
    justify-content: center;
    /* Align tags right within the box */
    width: 100%;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}



/* ===================================
   GRID LAYOUTS
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.career-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   CARDS
   =================================== */
.service-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px 20px;
    /* Reduced vertical padding further */
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.career-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    min-height: 280px;
}

.service-card:hover,
.career-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.service-card i,
.career-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.service-card h3,
.career-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

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

/* Course Cards */
.course-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.course-card .course-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.course-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

.course-card ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.course-card li {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.course-card li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===================================
   COURSE DETAILS
   =================================== */
.course-detail {
    display: none;
    padding: 50px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 30px;
}

.course-detail.active {
    display: block;
}

.course-detail h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.course-detail h4 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Code Blocks */
.code-block {
    background-color: var(--code-bg);
    border: 1px solid var(--code-border);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    overflow-x: auto;
}

.code-block h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.code-block pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* ===================================
   BUTTONS
   =================================== */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-text);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.back-button {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.back-button:hover {
    background-color: var(--primary-color);
    color: var(--white-text);
    border-color: var(--primary-color);
}

/* ===================================
   INTERVIEW QUESTIONS (for interview-prep.html)
   =================================== */
.question-answer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.platform-qa {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.platform-qa h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.platform-qa h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.qa-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.qa-item h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.qa-item p {
    color: var(--text-color);
    margin: 0;
    padding-left: 0;
    border: none;
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background-color: var(--dark-bg);
    color: var(--white-text);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 3%;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--white-text);
    font-size: 1.3rem;
    transition: var(--transition);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    section {
        padding: 40px 4%;
        margin: 0 1% 25px 1%;
    }

    .hero-section {
        padding: 60px 4%;
        margin: 0 1% 35px 1%;
    }

    .services-grid,
    .courses-grid,
    .career-options-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 123, 255, 0.95) !important;
        padding: 80px 0 20px;
        gap: 20px;
        z-index: 999;
        justify-content: flex-start;
        align-items: center;
        list-style: none;
        margin: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-menu li {
        width: 90%;
        max-width: 300px;
        height: auto;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        text-align: center;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: #ffffff;
        font-weight: 600;
        font-size: 1.1rem;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        text-decoration: none;
        box-sizing: border-box;
    }

    .nav-menu li a:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
    }

    .hero-section {
        padding: 50px 3%;
        margin: 0 1% 30px 1%;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    section {
        padding: 35px 3%;
        margin: 0 1% 20px 1%;
    }

    .services-grid,
    .courses-grid,
    .career-options-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .course-detail {
        padding: 25px 3%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 0 3%;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 2%;
    }

    main {
        padding: 0;
    }

    .hero-section {
        padding: 40px 5%;
        margin: 0 1% 25px 1%;
        flex-direction: column;
        /* Stack vertically on mobile */
        text-align: center;
        /* Center text on mobile */
        gap: 30px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-section h1,
    .hero-section p {
        text-align: center;
    }

    .trending-tags {
        justify-content: center;
    }

    .hero-stats {
        flex-direction: row;
        /* Horizontal row on mobile/tablet if space permits, or wrap */
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }

    section {
        padding: 25px 2%;
        margin: 0 1% 15px 1%;
    }

    .service-card,
    .career-card,
    .course-card {
        padding: 18px;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

/* ===================================
   HERO ENHANCEMENTS
   =================================== */
.trending-tags {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.trending-tags span {
    font-weight: 600;
}

.trending-tags .tag {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 123, 255, 0.2);
    transition: var(--transition);
}

.trending-tags .tag:hover {
    background-color: var(--primary-color);
    color: var(--white-text);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .trending-tags {
        display: none;
        /* Hide on very small screens if too cluttered */
    }

    .hero-stats {
        gap: 15px;
        flex-wrap: wrap;
    }

    .stat-item {
        font-size: 0.8rem;
    }
}

/* ===================================
   SUPPORT CTA & MODAL STYLES
   =================================== */
.support-cta-section {
    background-color: transparent;
    box-shadow: none;
    margin-bottom: 20px;
}

/* Modal Core */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    animation: slideIn 0.3s;
}

.close-modal {
    color: var(--light-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.support-container-modal {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.support-container-modal h2 {
    color: var(--primary-color);
}

.qr-code-container-modal {
    margin: 10px 0;
}

/* QR Placeholder for Modal */
.qr-placeholder {
    width: 250px;
    height: 250px;
    background-color: #f8f9fa;
    border: 3px dashed var(--code-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    color: var(--light-text);
    transition: var(--transition);
}

.qr-placeholder:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #fff;
    box-shadow: var(--shadow-medium);
}

.qr-placeholder i {
    font-size: 5rem;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* ===================================
   NAVBAR SUPPORT BUTTON
   =================================== */
#nav-support-btn {
    background-color: var(--accent-color) !important;
    color: var(--white-text) !important;
    padding: 8px 18px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

#nav-support-btn:hover {
    background-color: #218838 !important; /* Darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5);
}

/* QR Code Image Styles */
.qr-code-image {
    width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}
