@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary: #6366f1;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --dark: #0f0f23;
    --darker: #0a0a1a;
    --light: #ffffff;
    --gray: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-hover: rgba(255, 255, 255, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 3D Canvas Background */
#threejs-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

/* Glassmorphism Components */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}



/* Sections */
.section {
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 8rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--gray);
    margin-bottom: 2rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

/* Content Sections */
.content-section {
    padding: 8rem 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.about-profile {
    text-align: center;
    padding: 2rem;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--light);
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
    color: var(--gray);
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--secondary);
}

.about-content {
    padding: 2.5rem;
}

.about-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-content p, 
.about-content ul {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.skill-category {
    padding: 2rem;
    margin-bottom: 1rem;
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.skill-tag:nth-child(even) {
    color: var(--secondary);
    border-color: rgba(6, 182, 212, 0.3);
    padding: 0.75rem 1.25rem;
}

.skill-tag:nth-child(odd) {
    color: var(--accent);
    border-color: rgba(245, 158, 11, 0.3);
    padding: 0.75rem 1.25rem;
}

.skill-tag:hover {
    transform: translateY(-2px);
    background: var(--glass-hover);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    border-color: rgba(99, 102, 241, 0.3);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid var(--darker);
    top: 2.5rem;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    padding-right: 3rem;
}

.left::after {
    right: -13px;
}

.right {
    left: 50%;
    padding-left: 3rem;
}

.right::after {
    left: -13px;
}

.timeline-content {
    padding: 2.5rem;
}

.timeline-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

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

.timeline-content p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.timeline-skill {
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent);
}

.timeline-skill:hover {
    transform: translateY(-2px);
    background: var(--glass-hover);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
    align-items: stretch;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
    background: var(--darker);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
    background: var(--darker);
}

.project-header {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.05), 
        rgba(255,255,255,0.02) 2px, 
        transparent);
}

.project-title {
    color: var(--light);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-year {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.project-tag {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    color: var(--accent);
}

.project-tag:hover {
    transform: translateY(-2px);
    background: var(--glass-hover);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    justify-items: center;
}

.contact-method {
    text-align: center;
    padding: 2.5rem;
    width: 100%;
    max-width: 300px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--light);
}

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

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    }
    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 30px var(--secondary);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: var(--primary);
    }
    50% {
        border-color: var(--secondary);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Interactive Profile Image */
.profile-image {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

/* Interactive Skill Tags */
.skill-tag {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:active {
    transform: scale(0.95);
}

/* Interactive Timeline Skills */
.timeline-skill {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.timeline-skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.timeline-skill:hover::before {
    left: 100%;
}

/* Interactive Project Tags */
.project-tag {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.project-tag:hover::before {
    left: 100%;
}

/* Interactive Project Cards */
.project-card {
    cursor: pointer;
}

.project-card:hover .project-header img {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.project-header {
    overflow: hidden;
}

.project-header img {
    transition: transform 0.5s ease;
}

/* Interactive Timeline Items */
.timeline-item::after {
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-item:hover::after {
    transform: scale(1.5);
    box-shadow: 0 0 20px var(--primary);
}

/* Interactive Contact Icons */
.contact-icon {
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-icon:hover {
    transform: scale(1.2) rotate(10deg);
    animation: pulse 1s infinite;
}

/* Interactive Nav Links */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Interactive Logo */
.logo {
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Interactive Form Inputs */
.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--secondary);
}

.form-group label {
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: var(--primary);
}

/* Typing Cursor for Hero */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary);
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

.back-to-top::before {
    content: '↑';
    font-size: 1.5rem;
    color: var(--light);
    font-weight: bold;
}

/* Hover Tilt Effect for Cards */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Section Title Hover */
.section-title {
    transition: all 0.3s ease;
    cursor: default;
}

.section-title:hover {
    letter-spacing: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 4rem;
        padding-right: 2rem;
    }
    
    .timeline-item::after {
        left: 7px;
    }
    
    .left::after,
    .right::after {
        left: 7px;
    }
    
    .right {
        left: 0;
        padding-left: 4rem;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .content-section {
        padding: 6rem 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0;
        max-width: 100%;
    }
    
    .project-card {
        width: 100%;
        margin: 0 auto;
        max-width: 400px;
    }

    /* Mobile text adjustments */
    .project-title {
        font-size: 1.2rem;
    }

    .project-year {
        font-size: 0.9rem;
    }

    .project-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .project-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* Other mobile text adjustments */
    .section-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .about-content p {
        font-size: 0.95rem;
    }

    .skill-tag {
        font-size: 0.8rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        margin: 0 auto;
    }
    
    .contact-form button[type="submit"] {
        margin: 0 auto;
    }
}