/* ===========================
   CSS VARIABLES
   =========================== */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(15, 15, 15, 0.6);
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --accent-cyan: #00f2ff;
    --accent-blue: #0066ff;
    --glow-cyan: rgba(0, 242, 255, 0.4);
    --glow-blue: rgba(0, 102, 255, 0.3);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 30px var(--glow-cyan);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===========================
   CURSOR CANVAS
   =========================== */
#cursorCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===========================
   BACKGROUND GLOW
   =========================== */
.bg-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.7;
}

/* ===========================
   CONTAINER
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    position: relative;
    z-index: 1;
}

/* ===========================
   NAVIGATION
   =========================== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(1rem, 2vw, 1.5rem) 0;
    background: transparent;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-btn {
    padding: clamp(0.5rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow-cyan);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        border-left: 1px solid var(--border-glass);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(6rem, 10vw, 8rem) 0 clamp(4rem, 6vw, 6rem);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--glow-cyan);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-outline:hover {
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .cta-group {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* ===========================
   SECTIONS
   =========================== */
section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    position: relative;
}

.section-title {
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-content {
    max-width: 900px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category h4 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.skill-category li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2rem);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 40px var(--glow-cyan);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icon-svg {
    width: clamp(2rem, 4vw, 2.5rem);
    height: clamp(2rem, 4vw, 2.5rem);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.card-header h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin: 0;
}

.service-list {
    list-style: none;
    margin-top: 1.5rem;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.service-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* ===========================
   COURSE SECTION
   =========================== */
.course {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 242, 255, 0.02) 100%);
}

.course-card {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.course-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 50px;
    color: var(--accent-blue);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.course-info h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.course-highlights {
    list-style: none;
    margin: 1.5rem 0;
}

.course-highlights li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    position: relative;
    padding-left: 1.5rem;
}

.course-highlights li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.course-btn {
    margin-top: 1.5rem;
}

.course-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-icon {
    width: clamp(8rem, 15vw, 12rem);
    height: clamp(8rem, 15vw, 12rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.1);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    padding: 2rem;
}

.course-icon svg {
    width: 100%;
    height: 100%;
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .course-content {
        grid-template-columns: 1fr;
    }

    .course-visual {
        order: -1;
    }
}

/* ===========================
   PROJECTS SECTION
   =========================== */
.category-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-glass);
}

.project-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    transition: all 0.3s ease;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-meta {
    flex: 1;
}

.project-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-meta h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin: 0;
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--glow-cyan);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid var(--accent-blue);
    border-radius: 6px;
    color: var(--accent-blue);
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */
footer {
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 242, 255, 0.02) 100%);
}

.footer-glass {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.footer-glass h2 {
    margin-bottom: 1rem;
}

.footer-glass p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-links a {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--glow-cyan);
}

.copy {
    margin-top: 2rem;
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    color: var(--text-secondary);
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */
@media (max-width: 1024px) {
    .project-header {
        flex-direction: column;
    }

    .project-links {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}