/* =========================
   GCCS full stylesheet - FIXED MOBILE RESPONSIVE
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* GCCS Brand Colors */
    --primary-dark: #0a2540;
    --primary-dark-darker: #051120;
    --primary-green: #1fa07a;
    --primary-green-bright: #21c29e;
    --silver-gray: #e5e7eb;
    --light-bg: #f7f8fb;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;

    /* Shadows */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --glow-green: 0 0 20px rgba(31, 160, 122, 0.3);
    --glow-green-lg: 0 0 40px rgba(31, 160, 122, 0.5);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* ============ HEADER / NAVBAR ============ */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1200;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* logo container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    z-index: 1300;
}

.logo-img {
    width: auto;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--primary-green);
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* main nav links (desktop) */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 0.25rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.enroll-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-bright));
    color: white;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--glow-green);
    animation: pulse-glow 2s ease-in-out infinite;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.enroll-btn:hover {
    background: linear-gradient(135deg, #17845f, #1a9d7a);
    transform: translateY(-2px);
    box-shadow: var(--glow-green-lg);
}

/* hamburger - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 36px;
    height: 26px;
    justify-content: center;
    align-items: center;
    z-index: 1300;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.25s ease;
    display: block;
}

header.scrolled .hamburger span {
    background-color: var(--primary-dark);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--primary-dark);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--primary-dark);
}

/* Mobile overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a4d7a 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(31, 160, 122, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(33, 194, 158, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-green-bright), #21c29e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.countdown {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 0 30px rgba(31, 160, 122, 0.2);
}

.countdown-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.countdown-item p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-bright));
    color: white;
    box-shadow: var(--glow-green);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #17845f, #1a9d7a);
    transform: translateY(-3px);
    box-shadow: var(--glow-green-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(31, 160, 122, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(31, 160, 122, 0.6);
    }
}

/* ============ ABOUT SECTION ============ */
.about {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    animation: fadeInUp 0.8s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: var(--glow-green);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============ COURSES SECTION ============ */
.courses {
    padding: 5rem 2rem;
    background-color: white;
}

.courses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.course-header {
    background: linear-gradient(135deg, var(--primary-dark), #1a4d7a);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(31, 160, 122, 0.1);
    border-radius: 50%;
}

.course-header h2 {
    font-size: 1.8rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.course-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-bright));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.course-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.course-modules {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.course-modules h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.module-list {
    list-style: none;
    padding: 0;
}

.module-list li {
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.module-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.course-footer {
    margin-top: auto;
}

.btn-course {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-bright));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-course:hover {
    background: linear-gradient(135deg, #17845f, #1a9d7a);
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
}

.btn-course.coming-soon {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

/* ============ LMS TEASER SECTION ============ */
.lms-teaser {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a4d7a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lms-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: rgba(31, 160, 122, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.lms-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(33, 194, 158, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.lms-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lms-teaser .section-title {
    color: white;
    margin-bottom: 1rem;
}

.lms-teaser .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(31, 160, 122, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* ============ FOOTER ============ */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-darker) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(31, 160, 122, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-green-bright);
    font-weight: 600;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.8;
    /*display: block;*/
}

.footer-section a:hover {
    color: var(--primary-green-bright);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    max-width: 1200px;
    margin: 0 auto;
}

/* ============ ANIMATIONS ============ */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #17845f;
}

/* ============ RESPONSIVE DESIGN - FIXED MOBILE ISSUES ============ */

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .services-grid,
    .courses-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header & Navigation */
    nav {
        padding: 0.6rem 1rem;
    }

    .logo-img {
        max-width: 200px;
    }

    .hamburger {
        display: flex;
    }

    /* Fixed mobile navigation - right side slide in */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        gap: 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
        z-index: 1250;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0.5rem 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 1rem 1rem;
        margin: 0;
        border-radius: 8px;
        font-size: 1.1rem;
        min-height: 50px;
        display: flex;
        align-items: center;
    }

    .nav-links .enroll-btn {
        margin-top: 1rem;
        justify-content: center;
        text-align: center;
        min-height: 50px;
    }

    /* Hero Section */
    .hero {
        padding: 5rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .countdown {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }

    .countdown-timer {
        gap: 0.8rem;
    }

    .countdown-item {
        padding: 0.8rem 1rem;
        min-width: 70px;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }

    .countdown-item p {
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Sections */
    .about, .courses, .lms-teaser {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Grid Layouts */
    .services-grid,
    .courses-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .course-card,
    .feature-item {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 0.6rem 0.8rem;
    }

    .countdown-item span {
        font-size: 1.3rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .course-header h2 {
        font-size: 1.5rem;
    }

    .nav-links {
        width: 90%;
    }
}

/* Ensure interactive elements are obvious */
a:focus, button:focus {
    outline: 3px solid rgba(33,194,158,0.4);
    outline-offset: 2px;
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .service-card:hover,
    .course-card:hover,
    .feature-item:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-course:hover,
    .enroll-btn:hover {
        transform: none;
    }
    
    .nav-links a:hover {
        background: transparent;
    }
}