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

:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;
    --color-text: #ffffff;
    --color-text-secondary: #b0b0b0;
    --color-accent-blue: #00d4ff;
    --color-accent-purple: #a855f7;
    --color-accent-teal: #14b8a6;
    --color-border: #2a2a2a;
    
    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Animation */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

/* ===================================
   CUSTOM CURSOR
   =================================== */
.cursor,
.cursor-follower {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
}

.cursor {
    background-color: var(--color-accent-blue);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent-blue);
    background-color: transparent;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
    transform: translateY(0);
    transition: transform 0.3s var(--ease-smooth);
}

.nav.hidden {
    transform: translateY(-100%);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

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

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

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-burger span {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s var(--ease-smooth);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg-secondary);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 2rem;
        transition: right 0.3s var(--ease-smooth);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-burger {
        display: flex;
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideIn 1s var(--ease-smooth) forwards;
}

.hero-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-line:nth-child(3) {
    animation-delay: 0.6s;
}

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

.hero-highlight {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-purple));
    opacity: 0.2;
    z-index: -1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-text-secondary);
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 1s var(--ease-smooth) 0.8s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-role {
    display: inline-block;
    padding: 0 0.5rem;
}

.hero-divider {
    color: var(--color-accent-blue);
    margin: 0 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s var(--ease-smooth) 1s forwards;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    color: var(--color-text);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-accent-blue);
}

.btn-secondary:hover {
    background: var(--color-accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    opacity: 0;
    animation: fadeIn 1s var(--ease-smooth) 1.2s forwards;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent-blue), transparent);
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(10px); opacity: 1; }
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
    }
}

/* ===================================
   SECTION STYLES
   =================================== */
.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: var(--space-lg);
}

.section-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    font-family: monospace;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background-color: var(--color-bg-secondary);
}

.about-content {
    max-width: 900px;
}

.about-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-accent-blue);
}

.about-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-blue), transparent);
    margin: 2rem 0;
}

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

.project-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    cursor: pointer;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-purple));
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent-blue);
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.project-info {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.4rem 1rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-accent-blue);
}

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

/* ===================================
   MODAL
   =================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 10;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 2rem;
    transform: scale(0.9);
    transition: transform 0.3s var(--ease-smooth);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
    z-index: 20;
}

.modal-close:hover {
    background: var(--color-accent-blue);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.modal-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    margin-bottom: 1rem;
}

.modal-section-content {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

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

/* ===================================
   SKILLS SECTION
   =================================== */
.skills {
    background-color: var(--color-bg-secondary);
}

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

.skill-category {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s var(--ease-smooth);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-blue);
}

.skill-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-accent-blue);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    color: var(--color-text-secondary);
    padding: 0.8rem 1rem;
    background: var(--color-bg-secondary);
    border-left: 3px solid var(--color-accent-blue);
    border-radius: 4px;
    transition: all 0.3s var(--ease-smooth);
}

.skill-item:hover {
    transform: translateX(5px);
    color: var(--color-text);
    background: var(--color-bg);
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent-blue), var(--color-accent-purple));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent-blue);
    border: 4px solid var(--color-bg);
    box-shadow: 0 0 20px var(--color-accent-blue);
}

.timeline-content {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s var(--ease-smooth);
}

.timeline-content:hover {
    border-color: var(--color-accent-blue);
    transform: translateX(5px);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--color-accent-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-period {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1.5rem;
}

.timeline-achievements {
    list-style: none;
}

.timeline-achievements li {
    color: var(--color-text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-achievements li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--color-accent-blue);
}

.metric {
    color: var(--color-accent-blue);
    font-weight: 700;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: 5px;
    }
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background-color: var(--color-bg-secondary);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-smooth);
    min-width: 300px;
}

.contact-link:hover {
    border-color: var(--color-accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.contact-icon {
    font-size: 1.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-text {
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   UTILITIES
   =================================== */
.no-scroll {
    overflow: hidden;
}
