:root {
    --primary: #2fe48f;
    --secondary: #4cc9f0;
    --accent: #f6c445;
    --bg: #0b0f1a;
    --bg-alt: #141b2d;
    --glass: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --text: #e8eef5;
    --text-muted: #a1adba;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at 10% 20%, rgba(76, 201, 240, 0.15), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(246, 196, 69, 0.1), transparent 35%),
        linear-gradient(135deg, var(--bg) 0%, #141f33 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: -20%;
    background: radial-gradient(circle at 50% 50%, rgba(47, 228, 143, 0.12), transparent 60%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    z-index: -2;
}

/* Background Animation */
#canvas-bg {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Skip Link */
.skip-link {
    position: fixed;
    left: -999px;
    top: 1rem;
    padding: 0.8rem 1.2rem;
    background: var(--primary);
    color: #0b0f1a;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    z-index: 2000;
}

.skip-link:focus {
    left: 1rem;
}

/* Navigation */
nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(47, 228, 143, 0.1);
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-5px);
    text-shadow: 0 0 20px rgba(47, 228, 143, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-tag {
    color: var(--primary);
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    font-weight: 500;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-highlights {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: rgba(20, 27, 45, 0.75);
    border: 1px solid var(--border);
}

.highlight i {
    font-size: 1.4rem;
    color: var(--accent);
}

.highlight strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

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

.hero-aside {
    display: grid;
    gap: 1.5rem;
    justify-items: center;
}

.hero-portrait {
    background: linear-gradient(135deg, rgba(47, 228, 143, 0.2), rgba(76, 201, 240, 0.15));
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(47, 228, 143, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid rgba(47, 228, 143, 0.5);
    box-shadow: 0 0 30px rgba(47, 228, 143, 0.25);
    display: block;
}

.hero-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: rgba(47, 228, 143, 0.12);
    border: 1px solid rgba(47, 228, 143, 0.4);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.hero-stats {
    width: 100%;
    display: grid;
    gap: 1rem;
}

.stat {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    text-align: center;
}

.stat span {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.stat small {
    display: block;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #000;
    box-shadow: 0 10px 30px rgba(47, 228, 143, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(47, 228, 143, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(47, 228, 143, 0.1);
    box-shadow: 0 0 20px rgba(47, 228, 143, 0.3);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: 1rem;
}

/* Cards */
.card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(47, 228, 143, 0.1), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    background: rgba(47, 228, 143, 0.05);
    box-shadow: 0 15px 40px rgba(47, 228, 143, 0.1);
}

.card-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(47, 228, 143, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    border: 1px solid rgba(47, 228, 143, 0.3);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    background: rgba(47, 228, 143, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.skill-item i {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.skill-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pills */
.pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(47, 228, 143, 0.12);
    color: var(--primary);
    font-size: 0.85rem;
    margin: 0.2rem 0;
    border: 1px solid rgba(47, 228, 143, 0.35);
    transition: all 0.3s ease;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.pill:hover {
    background: rgba(47, 228, 143, 0.2);
    transform: scale(1.05);
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.timeline-item {
    margin-left: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg);
}

.timeline-item h4 {
    margin-bottom: 0.25rem;
}

.timeline-item .time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Achievement Box */
.award-box {
    background: linear-gradient(135deg, rgba(47, 228, 143, 0.1) 0%, rgba(76, 201, 240, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.award-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(47, 228, 143, 0.1) 0%, transparent 70%);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

.award-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(47, 228, 143, 0.2);
}

.award-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.award-box h4 {
    position: relative;
    z-index: 1;
}

/* Certifications Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: var(--primary);
    background: rgba(47, 228, 143, 0.05);
}

.cert-icon {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cert-card h5 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary);
    background: rgba(47, 228, 143, 0.05);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    margin-bottom: 6rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px);
    text-shadow: 0 0 20px rgba(47, 228, 143, 0.5);
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 228, 143, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(47, 228, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 228, 143, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        align-items: center;
    }

    .hero-highlights {
        width: 100%;
    }

    .highlight {
        justify-content: center;
        text-align: left;
    }

    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        bottom: 1rem;
        width: 85%;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .timeline-item {
        margin-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -1.5rem;
    }
    
    nav {
        width: 90%;
        max-width: 280px;
    }
}

