/* 
  CST (Computer Skill Training) - Stylesheet
  Focus: Modern, Clean, Tech-themed
*/

:root {
    --primary: #f27d26; /* Orange accent */
    --primary-dark: #d96a1f;
    --dark: #000000;
    --dark-surface: #0a0a0a;
    --dark-surface-2: #141414;
    --white: #ffffff;
    --text-muted: #a1a1a1;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.1;
    font-weight: 700;
}

.highlight-box {
    display: inline-block;
    border: 1px solid var(--primary);
    padding: 0 10px;
    color: var(--white);
    position: relative;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.nav-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 8px 24px;
    border-radius: 100px;
    display: flex;
    gap: 30px;
}

.nav-pill a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-pill a:hover, .nav-pill a.active {
    color: var(--white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-enroll {
    background: var(--primary);
    padding: 15px 40px;
    border-radius: 100px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sign-in-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(180, 0, 0, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(220, 20, 20, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(242, 125, 38, 0.05) 0%, transparent 70%);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.hero-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 30px;
    letter-spacing: -2px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--dark);
    margin-left: -10px;
}

.avatars img:first-child { margin-left: 0; }

.proof-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.proof-text span {
    color: var(--primary);
    font-weight: 700;
}

.btn-start {
    background: var(--primary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-start:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(242, 125, 38, 0.3);
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
}

/* Courses */
.courses {
    background: var(--dark-surface);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.slider-controls {
    display: flex;
    gap: 15px;
}

.slider-btn {
    background: var(--dark-surface-2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    stroke-width: 2.5;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.course-slider-wrapper {
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.course-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.course-grid {
    display: flex;
    gap: 30px;
}

.course-card, .bento-item, .form-container {
    background: var(--dark-surface-2);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.1s ease-out, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.course-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
}

.course-card::before, .bento-item::before, .form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(242, 125, 38, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.course-card *, .bento-item *, .form-container * {
    position: relative;
    z-index: 1;
}

.course-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: #1a1a1a;
}

.course-icon {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 2rem;
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.course-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.learn-more {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Forms */
.enrollment {
    background: var(--dark);
}

.bento-item {
    border-radius: 32px;
}

.form-container {
    padding: 60px;
    border-radius: 32px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-title {
    text-align: center;
    margin-bottom: 40px;
}

.form-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.form-title p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 18px;
    border-radius: 14px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    box-shadow: 0 0 0 4px rgba(242, 125, 38, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 125, 38, 0.2);
}

/* Certification Section */
.certification {
    background: var(--dark-surface);
    overflow: hidden;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cert-badge {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

.cert-content h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.cert-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}

.cert-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--white);
}

.cert-benefits li i {
    color: var(--primary);
}

.cert-visual {
    position: relative;
    perspective: 1000px;
}

.cert-card {
    background: #fff;
    color: #000;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: var(--transition);
    border: 10px solid #f8f8f8;
    position: relative;
}

.cert-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.cert-header img {
    height: 75px;
}

.cert-header span {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.cert-body {
    text-align: center;
}

.cert-to {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.cert-name {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 700;
}

.cert-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.cert-course {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.signature {
    text-align: center;
}

.sig-line {
    width: 150px;
    height: 1px;
    background: #000;
    margin-bottom: 5px;
}

.signature span {
    font-size: 0.7rem;
    font-weight: 700;
}

.cert-id {
    font-size: 0.6rem;
    color: #999;
}

@media (max-width: 992px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .cert-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cert-benefits {
        align-items: center;
    }
    
    .cert-card {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Reusable Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

/* Advanced Animations */
@keyframes revealRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes revealLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes revealScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(242, 125, 38, 0.2); }
    50% { box-shadow: 0 0 20px rgba(242, 125, 38, 0.4); }
    100% { box-shadow: 0 0 5px rgba(242, 125, 38, 0.2); }
}

.reveal-right { opacity: 0; }
.reveal-right.active { animation: revealRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.reveal-left { opacity: 0; }
.reveal-left.active { animation: revealLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.reveal-scale { opacity: 0; }
.reveal-scale.active { animation: revealScale 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.active {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 span {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.hero h1 .word {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero h1.active .word {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Why Choose CST - Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 25px;
}

.bento-item {
    background: var(--dark-surface-2);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.bento-icon {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bento-main {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.bento-medium {
    grid-column: span 1;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-main {
        grid-column: span 2;
    }
}

/* Responsive Refinements */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .nav-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .nav-pill {
        display: none;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .highlight-box {
        padding: 0 5px;
    }

    .course-card {
        flex: 0 0 85%;
        padding: 30px;
    }

    .course-slider-wrapper {
        padding-bottom: 30px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }

    .slider-controls {
        display: flex;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bento-main, .bento-medium {
        grid-column: span 1;
    }

    .bento-item {
        padding: 30px;
    }

    .form-container {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .form-title h2 {
        font-size: 1.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .social-proof {
        flex-direction: column;
        gap: 10px;
    }

    .avatars img {
        width: 30px;
        height: 30px;
    }

    /* Certification mobile */
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .cert-content h2 {
        font-size: 2.2rem;
    }

    .cert-content p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .cert-benefits {
        align-items: center;
    }

    .cert-card {
        transform: none;
        padding: 25px;
        border-width: 6px;
    }

    .cert-name {
        font-size: 1.8rem;
    }

    .cert-header img {
        height: 45px;
    }

    .logo img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .btn-start {
        width: 100%;
        justify-content: center;
    }
}
