@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; }

html {
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-light: #0a0a0a;
    --accent-cyan: #00fff5;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: opacity 0.3s ease-in-out;
}

body.page-transition {
    opacity: 0;
}

/* Gradient Background */
.gradient-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 255, 245, 0.15) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(100px, 100px) rotate(180deg); }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    transition: width var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50px;
    color: var(--bg-dark) !important;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 245, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-cyan);
    transition: all var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Sections */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5%;
    text-align: center;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

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

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.page-title {
    font-size: clamp(2.4rem, 3.6vw + 1.8rem, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.6vw, 1.6rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Sections */
.about-section,
.projects-section,
.resume-section,
.accomplishments-section {
    padding: 5rem 5%;
}

.section-heading {
    font-size: clamp(1.8rem, 1.2rem + 1.4vw, 3.4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

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

.about-content h2,
.resume-column h2,
.skills-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Skills Container */
.skills-container {
    background: rgba(26, 26, 26, 0.5);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
}

.skill-level {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 10px;
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from { width: 0; }
}

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

.accomplishment-card {
    background: rgba(26, 26, 26, 0.6);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
    text-align: center;
}

.accomplishment-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 245, 0.3);
    background: rgba(26, 26, 26, 0.8);
}

.accomplishment-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.accomplishment-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.accomplishment-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 255, 245, 0.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 245, 0.3);
    box-shadow: 0 20px 60px rgba(0, 255, 245, 0.1);
}

.project-image {
    height: 180px;
    background: linear-gradient(135deg, rgba(0, 255, 245, 0.1), rgba(168, 85, 247, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 3rem;
}

.project-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 245, 0.1);
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.project-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    display: inline-block;
}

.project-link:hover {
    transform: translateX(5px);
}

/* Resume */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.timeline-content .role {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content .date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.achievement-list {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.achievement-list li {
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.achievement-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

.skills-section {
    margin-bottom: 1.8rem;
}

.skills-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

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

.skill-tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 245, 0.08);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    transition: all var(--transition);
}

.skill-tag:hover {
    background: rgba(0, 255, 245, 0.15);
    border-color: rgba(0, 255, 245, 0.4);
    transform: translateY(-2px);
}

.education-item {
    background: rgba(26, 26, 26, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 3px solid var(--accent-purple);
}

.education-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.education-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: clamp(0.75rem, 0.6rem + 0.6vw, 1.2rem) clamp(1.1rem, 1rem + 1vw, 2rem);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.2rem);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--bg-dark);
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
    padding: 4rem 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(0, 255, 245, 0.05));
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 1.2rem + 1.4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.text-center {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .about-grid,
    .resume-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        gap: 1rem;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.active {
        display: flex;
    }

    .page-title {
        white-space: normal;
        word-break: break-word;
    }

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

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

    .filter-tabs {
        flex-wrap: wrap;
    }

    .timeline::before {
        left: 11px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-marker {
        width: 24px;
        height: 24px;
    }
}
