:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --text-muted: #707070;
    
    --accent-primary: #e8e8e8;
    --accent-secondary: #888888;
    --accent-tertiary: #545454;
    
    --gradient-1: linear-gradient(135deg, #ffffff, #d0d0d0);
    --gradient-2: linear-gradient(135deg, #e0e0e0, #909090);
    --gradient-accent: linear-gradient(135deg, #f0f0f0, #808080);
    
    --border-color: #2d2d2d;
    --border-light: #404040;
    --border-accent: #555555;
    
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Georgia', serif;
    --font-code: 'Fira Code', monospace;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-1);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    margin-left: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(224, 224, 224, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-contact-blind {
    padding: 8px 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-transform: none;
    box-shadow: none;
}

.btn-contact-blind:hover {
    color: var(--text-primary);
    transform: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 24px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.4rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(128, 128, 128, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.greeting {
    font-family: var(--font-code);
    color: var(--accent-secondary);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.name {
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    font-family: var(--font-serif);
    color: var(--text-primary);
    animation: fadeInDown 1s ease 0.1s both;
    letter-spacing: -1px;
    line-height: 1.2;
}

.typing-container {
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    min-height: 1.8em;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.2s both;
}

.cursor {
    animation: blink 1s infinite;
}

.bio-text {
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.9;
    animation: fadeInUp 1s ease 0.3s both;
    font-weight: 300;
}

.bio-text b {
    color: var(--accent-primary);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Hero Social Links */
.hero-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-socials a {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px) scale(1.1);
}

/* Section Styling */
.section {
    padding: 140px 0;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.005) 50%, transparent 100%);
}

.bg-darker {
    background-color: var(--bg-secondary);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(128, 128, 128, 0.05) 100%);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    font-weight: 300;
    font-family: var(--font-serif);
    color: var(--text-primary);
    animation: fadeInDown 0.8s ease;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 1px;
    background: var(--accent-secondary);
    margin: 30px auto 0;
    opacity: 0.5;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.about-card {
    background: transparent;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease forwards;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }

.about-card:hover {
    transform: translateY(-2px);
}

.about-card .icon {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    transition: var(--transition);
}

.about-card:hover .icon {
    transform: scale(1.1);
    opacity: 0.8;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff, #606060, #ffffff);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    opacity: 1;
    transition: all 0.5s ease;
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }

.timeline-item.left {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    top: 25px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.timeline-item.left .timeline-icon {
    right: -25px;
}

.timeline-item.right .timeline-icon {
    left: -25px;
}

/* Icon color variations */
.timeline-icon.certification {
    border-color: #e0e0e0;
    color: #e0e0e0;
    box-shadow: 0 0 20px rgba(224, 224, 224, 0.2);
}

.timeline-icon.project {
    border-color: #d0d0d0;
    color: #d0d0d0;
    box-shadow: 0 0 20px rgba(208, 208, 208, 0.2);
}

.timeline-icon.award {
    border-color: #c0c0c0;
    color: #c0c0c0;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}

.timeline-icon.work {
    border-color: #b0b0b0;
    color: #b0b0b0;
    box-shadow: 0 0 20px rgba(176, 176, 176, 0.2);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(30, 39, 73, 0.6) 0%, rgba(26, 31, 58, 0.4) 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.timeline-role {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-desc strong {
    color: var(--text-primary);
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: flex-end;
}

.timeline-item.right .timeline-tech {
    justify-content: flex-start;
}

.timeline-tech span {
    font-family: var(--font-code);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.timeline-tags {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.timeline-item.right .timeline-tags {
    justify-content: flex-start;
}

.timeline-tags span {
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.tag-education {
    background: rgba(224, 224, 224, 0.1);
    color: #e0e0e0;
    border-color: rgba(224, 224, 224, 0.2);
}

.tag-work {
    background: rgba(208, 208, 208, 0.1);
    color: #d0d0d0;
    border-color: rgba(208, 208, 208, 0.2);
}

.tag-project {
    background: rgba(192, 192, 192, 0.1);
    color: #c0c0c0;
    border-color: rgba(192, 192, 192, 0.2);
}

.tag-award {
    background: rgba(176, 176, 176, 0.1);
    color: #b0b0b0;
    border-color: rgba(176, 176, 176, 0.2);
}

.tag-certification {
    background: rgba(160, 160, 160, 0.1);
    color: #a0a0a0;
    border-color: rgba(160, 160, 160, 0.2);
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 20px !important;
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-icon {
        left: -5px !important;
        right: auto !important;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-tech,
    .timeline-tags {
        justify-content: flex-start !important;
    }
}

/* Skills */
.skill-category {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease forwards;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }
.skill-category:nth-child(3) { animation-delay: 0.3s; }

.skill-category h3 {
    margin-bottom: 25px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.skill-icons img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 217, 255, 0.15));
    transition: var(--transition);
}

.skill-icons:hover img {
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.3));
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 60px;
}

.project-card {
    background: transparent;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.project-card::before {
    display: none;
}

.project-card:hover {
    border-color: var(--accent-secondary);
    transform: translateX(8px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.folder-icon {
    font-size: 2rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.project-card:hover .folder-icon {
    transform: scale(1.1);
    opacity: 0.7;
}

.project-card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 400;
    font-family: var(--font-serif);
    letter-spacing: -0.5px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.project-tech span {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Footer */
footer {
    text-align: center;
    padding: 140px 0 60px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

footer h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-family: var(--font-serif);
    font-weight: 300;
    color: var(--text-primary);
    animation: fadeInDown 0.8s ease;
    letter-spacing: -0.5px;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.social-links {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin: 0 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-5px) scale(1.2);
}

.copyright {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        color: var(--text-secondary);
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--bg-secondary);
        background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 39, 73, 0.8) 100%);
        width: 100%;
        flex-direction: column;
        padding: 20px;
        display: none;
        border-bottom: 1px solid var(--border-light);
        border-radius: 0 0 16px 16px;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        font-size: 1rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .typing-container {
        font-size: 0.9rem;
    }

    .bio-text {
        font-size: 1rem;
        margin: 0 auto 40px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .hero-socials {
        gap: 20px;
    }

    .hero-socials a {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    footer h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2rem;
    }

    .nav-links {
        gap: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-card {
        padding: 25px 20px;
    }

    .about-card .icon {
        font-size: 2rem;
    }

    .project-card {
        padding: 25px;
    }
}
