:root {
    --primary: #0f172a;
    --secondary: #64748b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --bg-deep: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(59, 130, 246, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Premium Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-toggle {
    display: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #00e5ff;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

.contact-btn {
    padding: 8px 20px;
    border: 1.5px solid #00e5ff;
    color: #00e5ff !important;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.contact-btn:hover {
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(59, 130, 246, 0.06) 0px, transparent 50%),
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    line-height: 1.6;
    padding: 80px 20px 40px;
    /* Top padding for sticky navbar */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

/* Header / Hero Section */
.hero {
    background: #0f172a;
    background-image: radial-gradient(circle at 20% 50%, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 100px 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-50px) scale(1.1);
    }
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -150px;
    right: -100px;
    opacity: 0.15;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    bottom: -100px;
    left: -50px;
    opacity: 0.1;
    animation-delay: -5s;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* NOT CENTRALIZED */
    gap: 60px;
    position: relative;
    z-index: 10;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: rotate(-3deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-photo:hover {
    transform: rotate(0deg) scale(1.05);
    border-color: var(--accent);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-content {
    max-width: 600px;
}

.header-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(to bottom right, #fff 30%, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.exp-badge {
    font-size: 0.8rem;
    font-weight: 800;
    color: white !important;
    background: linear-gradient(135deg, #6366f1 0%, #00e5ff 100%);
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    border: none;
    -webkit-text-fill-color: white !important;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.tagline {
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.core-tech {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.contact-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-info a,
.contact-info span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: white;
    transform: translateY(-2px);
}

.contact-info i {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* Main Layout */
main {
    padding: 80px;
}

.section {
    margin-bottom: 80px;
}

/* Section Headings */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #00e5ff, #6366f1);
    border-radius: 2px;
}

.section-title i {
    width: 28px;
    height: 28px;
    color: #00e5ff;
    flex-shrink: 0;
}

/* Cards & Grid */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.skill-category.card {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.card.compact-card {
    padding: 10px 25px;
    width: fit-content;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card h3 {
    font-family: var(--font-heading);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 250px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h3 i {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.skill-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
}

.skill-tags span:hover {
    color: white;
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Experience Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(59, 130, 246, 0.1);
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.timeline-node {
    width: 16px;
    height: 16px;
    background: #0f172a;
    border: 3px solid var(--accent);
    border-radius: 50%;
    margin-top: 25px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 0 15px var(--accent);
    flex-shrink: 0;
    position: relative;
}

.experience-card {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-header h3 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.highlight-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    white-space: nowrap;
}

.location {
    display: block;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #64748b;
    z-index: 10;
}

/* Contact CTA Section */
.contact-section {
    padding: 100px 20px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.contact-section h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.contact-section .subtext {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.gradient-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #6366f1 0%, #00e5ff 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(99, 101, 241, 0.2);
}

.gradient-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 101, 241, 0.3);
    filter: brightness(1.1);
}

.gradient-btn i {
    width: 20px;
    height: 20px;
}

/* Footer Section */
footer {
    padding: 60px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 6, 23, 0.3);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links a,
.footer-links span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links i {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.copyright {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Project Cards (Freelance & Personal) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.4s ease;
}

.project-card:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-5px);
}

.project-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.main-icon {
    width: 48px;
    height: 48px;
    color: #00e5ff;
}

.secondary-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
    opacity: 0.6;
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: normal;
    min-width: unset;
}

.project-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
}

.tech-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1000px) {
    .navbar {
        padding: 15px 40px;
    }

    .nav-links {
        gap: 25px;
    }

    .hero {
        padding: 80px 40px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .header-content h1 {
        font-size: 3rem;
    }

    .contact-info {
        justify-content: center;
    }

    main {
        padding: 60px 40px;
    }

    .timeline-item {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        /* Below navbar */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .contact-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .timeline::before {
        left: 17px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 15px;
        padding-left: 30px;
    }

    .timeline-node {
        margin-top: 0;
        position: absolute;
        left: -38px;
        top: 20px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 80px 0 0;
        /* Maintain top padding for navbar */
    }

    .container {
        border-radius: 0;
    }

    .hero {
        padding: 60px 20px;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 40px 20px;
    }

    .contact-section h2 {
        font-size: 2.5rem;
    }
}

/* Print Options */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border: none;
        max-width: 100%;
    }

    .hero {
        background: #0f172a !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hero-shapes {
        display: none;
    }

    .profile-photo {
        transform: none;
        box-shadow: none;
        border: 1px solid #ddd;
        border-radius: 10px;
    }

    .date {
        background: #eee !important;
        border: 1px solid #ccc;
        color: black;
    }

    .card::before {
        display: none;
    }
}