

/* CSS Variables for Light Theme */
:root {
    --bg-main: #FFFFFF;
    /* White background */
    --bg-card: #F9FAFB;
    /* Light Gray/Off-White for cards */
    --bg-hover: #EEF2FF;
    /* Very light blue for hover */
    --accent-teal: #0FA092;
    --accent-orange: #FF8100;
    --text-dark: #1E293B;
    /* Dark text for readability */
    --text-medium: #4B5563;
    /* Medium text for body copy */
    --text-light: #6B7280;
    --header-bg: #FFFFFF;
}

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

body {
    background-color: var(--bg-main);
    /* White background */
    color: var(--text-medium);
    line-height: 1.7;
    min-height: 100vh;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float3d {

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
}

/* Buttons */
.btn {
    background-color: var(--accent-orange);
    color: var(--bg-main);
    padding: 5px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    /* In case it's used on <a> tags */
    display: inline-block;
}

.btn:hover {
    background-color: #ff6f00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 129, 0, 0.2);
}

.btn:active {
    transform: scale(0.98);
}

/* Navbar & Header */
header {
    background: #0f2440;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0% !important;
}
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;              /* smaller gap */
    padding: 0.8rem 1rem;
    width: 100%;
    white-space: nowrap;    /* prevents wrapping of text */
}
header .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.navbar {
    margin-left: 1rem;
    flex-grow: 1;            /* pushes menu to fill row */
}

.nav-links {
    display: flex;
    gap: 2rem;             /* reduce space between menu links */
    list-style: none;
    align-items: center;
    white-space: nowrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    display: flex;
}
/* Logo smaller and aligned */
.logo-img {
    height: 60px;
    width: auto;
}

.nav-links li a {
    color:#FFFFFF;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.nav-links li a:hover {
    color: var(--accent-orange);
}

.nav-links a::after {
    content: ' ';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0%;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Back button made smaller and cleaner */
.back-btn {
    padding: 6px 14px;
    border: 2px solid var(--accent-teal);
    background: transparent;
    border-radius: 30px;
    color: var(--accent-teal);
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    background-color: var(--accent-orange);
    color: var(--bg-main);
}









/* Hero Section */
.hero {
    padding: 5rem 3rem;
    /* Increased padding for better fit */
    background-color: var(--bg-card);
    /* Light background for hero */
    border-bottom: 1px solid #E5E7EB;
}

.hero-container {
    max-width: 1300px;
    margin-top: 10%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Slightly larger text column */
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease 0.2s both;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    animation: slideInUp 0.8s ease 0.4s both;
    color: var(--text-dark);
}

.hero-highlight {
    color: var(--accent-orange);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: slideInUp 0.8s ease 0.6s both;
    padding: 16px !important;
}

.hero-image {
    animation: float3d 4s ease-in-out infinite;
}

.bg-video {
    margin-top: 10%;
    width: 50%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Main Sections */
section {
    padding: 5rem 3rem;
    /* Consistent large padding */
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    text-align: center;
    animation: slideInUp 0.6s ease;
}

.section-title span {
    color: var(--accent-orange);
}

/* Card Styles */
.card {
    background: var(--bg-main);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    background: var(--bg-hover);
    box-shadow: 0 10px 30px rgba(15, 160, 146, 0.1);
    transform: translateY(-5px);
}

/* Grid Layouts (Updated for 2 rows of 3) */
.grid-cols-6-desktop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Tool Card Styles */
.tool-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #D1D5DB;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background: var(--bg-hover);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(15, 160, 146, 0.15);
    transform: translateY(-8px) scale(1.01);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.tool-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

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

.audience-card {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent-teal);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.audience-card:hover {
    background: var(--bg-hover);
    border-left-color: var(--accent-orange);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(255, 129, 0, 0.1);
}

/* Certification Section */
#certification-section {
    background-color: #F3F4F6;
    /* Light gray background */
}

.cert-item {
    background: var(--bg-main);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange);
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: #FFEDD5;
    /* Very light orange background */
    transform: translateX(5px);
}

/* Portfolio Section */
#portfolio-section {
    background-color: var(--bg-main);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #D1D5DB;
    aspect-ratio: 16/9;
    /* Standard widescreen ratio for projects */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.portfolio-item h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
    opacity: 0.9;
}

.portfolio-item:hover {
    border-color: #f29130;
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(15, 160, 146, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ Section */
.accordion-item {
    background: var(--bg-main);
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.accordion-item:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 5px 25px rgba(255, 129, 0, 0.1);
}

.accordion-button {
    background: transparent;
    border: none;
    color: var(--text-dark);
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background: var(--bg-hover);
}

.accordion-button::after {
    content: '+';
    color: var(--accent-orange);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.accordion-button.collapsed::after {
    transform: rotate(45deg);
    color: var(--accent-orange);
}

.accordion-body {
    background: var(--bg-card);
    color: var(--text-medium);
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    display: none;
}

.accordion-body.show {
    display: block;
}


/* Media Queries - Responsive Design */
@media (max-width: 1200px) {

    /* Adjust 6 card layout on medium screens */
    .grid-cols-6-desktop,
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Hide main links on mobile, keep logo and back button */
    .hero {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .grid-cols-6-desktop,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 3rem 1.5rem;
    }

    .audience-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}


/* --- Secondary Navigation Fix for Highlight --- */

/* This targets the vertical navigation menu seen in your screenshot. */
/* You may need to replace .course-nav with the actual container class name. */
.course-nav a {
    /* Base style for better visibility */
    color: var(--text-medium);
    transition: all 0.2s ease;
    padding: 10px 0;
    /* Ensures a good tap area */
}

/* **A. Fix for the Currently Active Link (Requires JavaScript to add the .active class)** */
/* This highlights the section the user is currently viewing (e.g., Fundamentals) */
.course-nav a.active {
    color: var(--accent-orange);
    /* Highlight text with accent color */
    font-weight: 700;
    position: relative;
}

/* Add a solid bar to the left of the active link for strong visual highlight */
.course-nav a.active::before {
    content: '';
    position: absolute;
    left: -1rem;
    /* Adjust this value to align with the list */
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    /* Thickness of the highlight bar */
    height: 80%;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

/* **B. Fix for the Tap/Touch state on Mobile** */
/* This highlights a link when the user taps/holds it (the hover equivalent) */
.course-nav a:active,
.course-nav a:focus {
    color: var(--accent-teal);
    /* Slightly different color when tapped */
    background-color: var(--bg-hover);
    /* Light background change on tap */
}

/* Media Queries - Responsive Design */
@media (max-width: 1200px) {

    /* Adjust 6 card layout on medium screens */
    .grid-cols-6-desktop,
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    /* Hide main links on mobile, keep logo and back button */
    .hero {
        padding: 3rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .grid-cols-6-desktop,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 3rem 1.5rem;
    }

    .audience-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}
