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

:root {
    --bg-base: #0f0c29;
    --bg-gradient-1: #302b63;
    --bg-gradient-2: #24243e;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-1: #00f2fe;
    --accent-2: #4facfe;
    --accent-3: #f093fb;
    --font: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth;
}

/* Dynamic Background Elements */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.6;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--bg-gradient-1), transparent);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--bg-gradient-2), transparent);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2), transparent);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    z-index: 1000;
    padding: 0.8rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(17, 14, 45, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled {
    top: 1rem;
    padding: 0.6rem 2.5rem;
    background: rgba(15, 12, 41, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}



.nav-content {
    display: flex;
    justify-content: left;
    align-items: center;
    width: 100%;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.05rem;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--text-primary);
}

.nav-links a.active-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.05rem;
    position: relative;
}

.nav-resume-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
}

.nav-resume-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #fff !important;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    background: #2563eb;
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Glass Card Base */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 180px;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--accent-1);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections */
.section {
    padding: 150px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text strong {
    color: #fff;
}

/* Experience */
.exp-card {
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-3));
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.exp-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

.exp-company {
    font-size: 1.2rem;
    color: var(--accent-1);
    font-weight: 500;
}

.exp-date {
    font-size: 1rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.exp-tech {
    margin: 1.5rem 0;
    font-weight: 600;
    color: var(--accent-3);
}

.exp-list {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.exp-list li {
    margin-bottom: 0.8rem;
}

/* Projects Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-subtitle {
    color: var(--accent-2);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--accent-1);
}

/* Skills Grid */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-box {
    padding: 2rem;
    text-align: center;
}

.skill-icon {
    font-size: 3rem;
    color: var(--accent-3);
    margin-bottom: 1.5rem;
    display: block;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.skill-tags span {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.contact-heading {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-family: var(--font);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-2);
    background: rgba(0, 0, 0, 0.4);
}

.submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    margin-top: 5rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.stat-text {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Timeline (Education) */
.timeline-list {
    list-style: none;
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-3));
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -2.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 3px solid var(--accent-3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.timeline-item-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.timeline-date {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--accent-2);
    margin-bottom: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.timeline-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 2.2rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .bento-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 90%;
        padding: 0.8rem 1.5rem;
    }

    .container {
        padding: 0 1.2rem;
    }

    .section {
        padding: 80px 0;
    }

    .glass-panel {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .exp-title {
        font-size: 1.5rem;
    }

    .skill-title {
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(15, 12, 41, 0.98), rgba(36, 36, 62, 0.98));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start !important;
        padding: 100px 2rem 2rem 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 1.2rem 0;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s, padding 0.3s;
        width: 100%;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active a:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active a:nth-child(6) {
        transition-delay: 0.6s;
    }

    .nav-links a.active-link::after {
        display: none;
    }

    .nav-links a.active-link {
        color: var(--accent-1);
        padding-left: 12px;
        border-left: 3px solid var(--accent-1);
    }

    .nav-resume-btn {
        margin-top: 1rem;
        justify-content: center;
        width: max-content;
    }

    .hero {
        padding-top: 120px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

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

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}