/* Modern Dark Theme Portfolio CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #a855f7;
    --secondary-color: #ec4899;
    --accent-color: #10b981;
    --text-primary: #ffffff;
    --text-secondary: #d1a8ff;
    --bg-primary: #0f0319;
    --bg-secondary: #1a0b2e;
    --bg-card: #2d1b4e;
    --border-color: #3d2463;
    --shadow: 0 0.5rem 2rem rgba(168, 85, 247, 0.15);
    --shadow-hover: 0 0.75rem 3rem rgba(168, 85, 247, 0.25);
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-accent: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 0.5rem; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 0.25rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(1.25rem);
    border-bottom: 0.0625rem solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover { transform: scale(1.05); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a:hover { color: var(--primary-color); }

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::before { width: 100%; }

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: 3.125rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }
.btn:hover {
    transform: translateY(-0.1875rem);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 0.125rem solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 0 1.25rem rgba(168, 85, 247, 0.5);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(1px) brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: slideInUp 1s ease 0.2s forwards;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 37.5rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: slideInUp 1s ease 0.4s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideInUp 1s ease 0.6s forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(3.125rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 5rem;
    height: 0.25rem;
    background: var(--gradient-accent);
    bottom: -0.9375rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0.125rem;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1.25rem;
    border: 0.0625rem solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-category:hover::before { left: 100%; }

.skill-category:hover {
    transform: translateY(-0.625rem) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.skill-category h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 1.5625rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 0.0625rem solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
    z-index: -1;
}

.skill-tag:hover::before { width: 100%; }
.skill-tag:hover {
    color: white;
    transform: translateY(-0.125rem);
}

/* Projects */
.projects { 
    background: var(--bg-secondary); 
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(23.75rem, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 1.25rem;
    overflow: hidden;
    border: 0.0625rem solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.project-card:hover::before { opacity: 0.1; }

.project-card:hover {
    transform: translateY(-0.9375rem);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.project-image {
    height: 13.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.4s ease;
    
}

.project-card:hover .project-image i {
    transform: scale(1.2) rotate(10deg);
}

.project-content { 
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 3rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 0.0625rem solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border: 0.125rem solid var(--primary-color);
    border-radius: 1.5625rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.25rem rgba(168, 85, 247, 0.3);
}

/* Experience */
.experience-timeline {
    position: relative;
    max-width: 56.25rem;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0.1875rem;
    background: var(--gradient-accent);
    transform: translateX(-50%);
    border-radius: 0.125rem;
}

.experience-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.experience-item:nth-child(odd) .experience-content {
    margin-right: auto;
    margin-left: 0;
    text-align: right;
}

.experience-item:nth-child(even) .experience-content {
    margin-left: auto;
    margin-right: 0;
}

.experience-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1.25rem;
    width: calc(50% - 3rem);
    position: relative;
    border: 0.0625rem solid var(--border-color);
    transition: all 0.4s ease;
}

.experience-content:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.experience-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 0.9375rem solid transparent;
    transform: translateY(-50%);
}

.experience-item:nth-child(odd) .experience-content::before {
    right: -1.875rem;
    border-left-color: var(--bg-card);
}

.experience-item:nth-child(even) .experience-content::before {
    left: -1.875rem;
    border-right-color: var(--bg-card);
}

.experience-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background: var(--gradient-accent);
    border-radius: 50%;
    border: 0.25rem solid var(--bg-primary);
    z-index: 1;
}

.experience-position {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.experience-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact */
.contact {
    background: var(--gradient-primary);
    padding: 8rem 0;
}

.contact-content {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 3.125rem;
    border: 0.125rem solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.contact-item i {
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 0.0625rem solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 4.5rem;
        right: -100%;
        width: 70%;
        height: calc(100vh - 4.5rem);
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(1.25rem);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 0.0625rem solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .experience-timeline::before {
        left: 1rem;
    }

    .experience-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 3rem;
    }

    .experience-item:nth-child(odd) .experience-content,
    .experience-item:nth-child(even) .experience-content {
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .experience-content::before {
        display: none;
    }

    .experience-dot {
        left: 1rem;
        transform: translateX(-50%);
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 20rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 20rem;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-nav-toggle,
    .hero-background,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}