/* =================================
   VARIABLES & RESET
   ================================= */

:root {
    --accent: #00ffff;
    --bg-dark: #0f2027;
    --bg-gradient-end: #2c5364;
    --bg-gradient-mid: #203a43;
    --border-accent: rgba(0, 255, 255, 0.3);
    --glass-bg: rgba(0, 255, 255, 0.05);
    --glass-border: rgba(0, 255, 255, 0.2);
    --primary: #0080ff;
    --shadow-accent: rgba(0, 255, 255, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-tertiary: rgba(255, 255, 255, 0.7);
}

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

/* =================================
   BASE STYLES
   ================================= */

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

section {
    margin: 0 auto;
    max-width: 1200px;
    padding: 5rem 2rem;
}

h1 {
    animation: slideIn 1s;
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

h2 {
    color: white;
    margin-bottom: 1rem;
}

h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: all 0.3s;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* =================================
   ANIMATIONS
   ================================= */

@keyframes float {
    0%, 100% { 
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); }
}

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

/* =================================
   UTILITIES
   ================================= */

.btn {
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    padding: 1rem 2rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border: 1px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 10px 30px var(--shadow-accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(0, 255, 255, 0.5);
    color: white;
}

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

.hover-lift {
    transition: transform 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.section-title {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-badge {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 20px;
    color: var(--bg-dark);
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.2rem;
    padding: 0.3rem 1rem;
}

/* =================================
   COMPONENTS
   ================================= */

/* Navigation */
nav {
    backdrop-filter: blur(20px);
    background: rgba(15, 32, 39, 0.9);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    transition: all 0.3s;
    width: 100%;
    z-index: 1000;
    -webkit-backdrop-filter: blur(20px);
}

nav.scrolled {
    background: rgba(15, 32, 39, 0.95);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    list-style: none;
}

nav a {
    color: white;
    font-weight: 600;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

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

nav a:hover::after {
    width: 100%;
}

/* Particles */
.particles {
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: -1;
}

.particle {
    animation: float 15s infinite ease-in-out;
    background: rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    height: 4px;
    position: absolute;
    width: 4px;
}

/* Hero Section */
.hero {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.hero-content {
    align-items: center;
    display: grid;
    gap: 4rem;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
}

.hero-text .subtitle {
    animation: slideIn 1s 0.2s both;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-text p {
    animation: slideIn 1s 0.4s both;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.achievement-highlight {
    animation: slideIn 1s 0.3s both;
    background: var(--glass-bg);
    border-left: 3px solid var(--accent);
    border-radius: 5px;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.achievement-highlight strong {
    color: var(--accent);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    animation: slideIn 1s;
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 3rem;
}

.stat-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

.stat {
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s;
}

.stat:hover {
    transform: scale(1.1);
}

.stat-number {
    color: var(--accent);
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.competency-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
}

.competency-card:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.competency-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 3rem 0;
}

.portfolio-tile {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-tile:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.4);
    transform: translateY(-10px);
}

.portfolio-image-large {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 128, 255, 0.1));
    overflow: hidden;
    position: relative;
    width: 100%;
}

.portfolio-image-large img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    width: 100%;
}

.portfolio-tile:hover .portfolio-image-large img {
    transform: scale(1.05);
}

.portfolio-label {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1rem;
    text-align: center;
    text-transform: uppercase;
}


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

.achievement-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
}

.achievement-card:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    transform: translateY(-5px);
}

.achievement-value {
    color: var(--accent);
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Timeline */
.timeline {
    padding: 2rem 0;
    position: relative;
}

.timeline-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin-bottom: 2rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

.timeline-item:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
    transform: translateX(10px);
}

.timeline-item::before {
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    content: '';
    height: 10px;
    left: -20px;
    position: absolute;
    top: 50%;
    width: 10px;
}

.timeline-date {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.tech-badges {
    margin-top: 1rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    cursor: pointer;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.skill-card:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    transform: translateY(-10px) scale(1.05);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: white;
    font-weight: 600;
}

/* Contact Section */
.contact {
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border: 1px solid var(--border-accent);
    border-radius: 30px;
    margin: 3rem auto;
    max-width: 800px;
    padding: 3rem;
    text-align: center;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    padding: 2rem;
    text-align: center;
}

.footer-contact {
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .competency-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 5rem 1rem 1rem;
    }

    .hero-stats {
        padding: 2rem 1.5rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }
}