:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --dark-color: #0a0a16;
    --darker-color: #050510;
    --light-color: #f8fafc;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --success-color: #10b981;
}

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

::selection {
    background: var(--accent-color);
    color: var(--light-color);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--darker-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    position: relative;
    width: 200px;
    height: 200px;
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    z-index: 2;
}

.loader-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    animation: spin 1.5s linear infinite;
}

.loader-circle:nth-child(2) {
    border-top-color: var(--secondary-color);
    animation-duration: 2s;
}

.loader-circle:nth-child(3) {
    border-top-color: var(--accent-color);
    animation-duration: 2.5s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Main layout */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Floating elements */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
}

.shape-1 {
    background: var(--primary-color);
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
}

.shape-2 {
    background: var(--secondary-color);
    width: 400px;
    height: 400px;
    top: 60%;
    right: -150px;
}

.shape-3 {
    background: var(--accent-color);
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 10%;
}

/* Header */
.header {
    padding: 2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    position: relative;
}

.logo span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    bottom: -5px;
    left: 0;
}

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

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
}


.navbar {
    display: flex;
    gap: 2rem;
}

.nav-item {
    position: relative;
    font-weight: 500;
    font-size: 1.05rem;
    color: #cbd5e1;
    padding: 6px 2px;
    text-decoration: none;
    transition: color .25s ease;
}

/* Hover text glow */
.nav-item:hover {
    color: #38bdf8;
}

/* Underline animation */
.nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #06b6d4);
    border-radius: 20px;
    transition: width .28s ease;
}

.nav-item:hover::after {
    width: 100%;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

/* Active Menu highlight */
.nav-item.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-item.active::after {
    width: 100%;
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    background-image: url('https://cdn.pixabay.com/photo/2022/09/13/11/30/pattern-7451714_1280.jpg');
    background-size: cover;
    background-position: center;
    filter: contrast(1.2) brightness(0.7);
}

.hero-container {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hero-greeting::before {
    content: '';
    width: 80px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    background-size: 200% 100%;
    animation: heroTimingLine 3.5s linear infinite;  /* ⏱ timing wali feel */
}

@keyframes heroTimingLine {
    0% {
        background-position: 0% 0;
        opacity: 0.4;
    }
    30% {
        opacity: 1;
    }
    100% {
        background-position: 200% 0;
        opacity: 0.4;
    }
}


.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title .gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: var(--text-light);
}

.hero-visual {

   position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-inner {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

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


.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Resume button ko thoda compact chip look de sakte hain */
.btn-resume {
    padding-inline: 1.6rem;
    border-color: rgba(148,163,184,0.8);
}

.btn-resume i {
    font-size: 0.95rem;
}

.hero-visual-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.hero-visual-frame:nth-child(1) {
    transform: translateZ(20px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    backdrop-filter: blur(10px);
}

.hero-visual-frame:nth-child(2) {
    transform: translateZ(10px) scale(0.9);
    border-color: rgba(168, 85, 247, 0.3);
}

.hero-visual-frame:nth-child(3) {
    transform: translateZ(0) scale(0.8);
    border-color: rgba(236, 72, 153, 0.3);
}

.hero-stats {
    position: absolute;
    background: rgba(10, 10, 22, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.hero-stats:hover {
    transform: translateY(-5px);
}

.hero-stats.stats-1 {
    top: 20%;
    left: -20% /* override left positioning if previously applied */

}

.hero-stats.stats-2 {
    bottom: 20%;
    right: -15%;
}

.hero-stats.stats-3 {
    bottom: -10%;
    left: 10%;
}

.hero-stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.hero-stats-text {
    display: flex;
    flex-direction: column;
}

.hero-stats-label {
    color: var(--text-light);
    font-size: 0.8rem;
}

.hero-stats-value {
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    transition: all 0.5s ease;
}

.btn-primary {
    color: white;
}

.btn-primary::before {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.btn-outline::before {
    opacity: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.scroll-indicator-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    position: relative;
}

.scroll-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* About Section */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.about-image-container {
    position: relative;
    width: 100%;
    padding-top: 120%;
    overflow: hidden;
    border-radius: 30px;
    transform: rotate(-3deg);
}

.about-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 30px;
    transform: rotate(6deg) scale(0.95);
}

.about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    filter: grayscale(30%) contrast(1.1);
}

.about-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.about-decoration {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(30px);
    opacity: 0.1;
    max-width: 100%;
    overflow: hidden;
}

.about-decoration:nth-child(1) {
    width: 150px;
    height: 150px;
    top: -20px;
    left: -50px;
    background: var(--primary-color);
}

.about-decoration:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -30px;
    right: -60px;
    background: var(--secondary-color);
}

.about-content {
    position: relative;
}

.about-tagline {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-tagline::before {
    content: '';
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.about-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.skill-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.skill-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    position: relative;
    background: var(--dark-color);
    z-index: 1;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--darker-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    height: 450px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(50px);
    opacity: 0;
}

.project-card.animated {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(30%);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(5, 5, 16, 0.9));
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 0.5;
}

.project-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    background: rgba(10, 10, 22, 0.8);
    backdrop-filter: blur(5px);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--primary-color);
}

.project-link i {
    transition: transform 0.3s ease;
}

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

/* Experience Section */
.experience {
    position: relative;
}

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

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
}

.timeline-content.animated {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    transform: translateX(50px);
}

.timeline-item:nth-child(odd) .timeline-content.animated,
.timeline-item:nth-child(even) .timeline-content.animated {
    transform: translateX(0);
}

.timeline-date {
    position: absolute;
    top: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    margin-left: 3rem;
    margin-right: 3rem;
    margin-top: -1.5rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -15%;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -15%;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.timeline-subtitle {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
}

/* Achievements Section */
.achievements {
    background: var(--dark-color);
    position: relative;
}

.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(50px);
    opacity: 0;
}

.achievement-card.animated {
    transform: translateY(0);
    opacity: 1;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.achievement-card:hover::before {
    opacity: 1;
}

.achievement-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: rotateY(180deg);
}

.achievement-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.achievement-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    position: relative;
}

.contact-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-text {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.contact-link-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-link-text {
    display: flex;
    flex-direction: column;
}

.contact-link-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-link-value {
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--darker-color);
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-text {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-visual-inner {
        width: 350px;
        height: 350px;
    }

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

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-greeting {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-stats {
        display: none;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
    }

    .about-image-container {
        padding-top: 70%;
    }

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

    .timeline-content {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-date {
        top: -40px;
        left: 0 !important;
        right: auto !important;
    }

    .timeline-icon {
        left: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

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

    .navbar {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(20px);
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        z-index: 99;
        transition: right 0.35s ease;
        border-left: 1px solid rgba(99, 102, 241, 0.3);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }

    .navbar.open {
        display: flex;
        right: 0;
    }

    .nav-item {
        font-size: 1.2rem;
        padding: 0.9rem 1rem;
        border-radius: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-item:hover {
        background: rgba(99, 102, 241, 0.1);
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 98;
    }

    .mobile-menu-overlay.open {
        display: block;
    }

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

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

    .skill-item {
        padding: 0.8rem;
    }

    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .achievements-container {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .about-heading,
    .contact-heading {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .hero-visual-inner {
        width: 260px;
        height: 260px;
    }

    .hero-actions {
        justify-content: center;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }

    .container {
        width: 95%;
    }
}

.projects-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    margin-top: 2rem;
}

.projects-window {
    overflow: hidden;
    width: 100%;
}

.projects-track {
    display: flex;
    transition: transform 0.5s ease;
}

.project-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
/* 🔥 Arrow Buttons (Portfolio Theme Matching) */
.projects-arrow {
    border: none;
    background: #7b2ff7; /* Purple */
    color: #ffffff;
    font-size: 26px;
    padding: 14px 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(123, 47, 247, 0.5);
}

.projects-arrow:hover {
    transform: scale(1.12);
    background: #9c4dff; /* lighter purple */
    box-shadow: 0 0 14px rgba(156, 77, 255, 0.8);
}

/* 🔥 Dots Pagination */
.projects-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin: 0 6px;
    border-radius: 50%;
    background: #7a7d87; /* faded grey when inactive */
    opacity: 0.6;
    transition: 0.3s;
}

.projects-dots {
    width: 100%;
    display: flex;
    justify-content: center;   /* ⬅️ dots ko bilkul center karega */
    align-items: center;
    margin-top: 22px;
}

.projects-dot.active {
    background: #b16dff; /* brighter purple */
    opacity: 1;
    box-shadow: 0 0 6px #b16dff;
    transform: scale(1.25);
}

/* Responsive */
@media (max-width: 992px) {
    .project-slide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .projects-slider-wrapper {
        width: 100%;
    }
    .project-slide {
        grid-template-columns: 1fr;
    }
}


.achievements-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    margin-top: 2rem;
}

.achievements-window {
    overflow: hidden;
    width: 100%;
}

.achievements-track {
    display: flex;
    transition: transform 0.55s ease;
}

.achievement-slide {
    min-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    box-sizing: border-box;
}

.achievements-arrow {
    border: none;
    background: #7b2ff7;
    color: white;
    font-size: 25px;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.32s;
    box-shadow: 0 0 10px rgba(123, 47, 247, 0.55);
}

.achievements-arrow:hover {
    transform: scale(1.12);
    background: #9c4dff;
    box-shadow: 0 0 14px rgba(156, 77, 255, 0.8);
}

/* dots */
.achievements-dots {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.achievements-dot {
    width: 11px;
    height: 11px;
    margin: 0 6px;
    border-radius: 50%;
    background: #7a7d87;
    opacity: 0.6;
    transition: .3s;
    cursor: pointer;
}

.achievements-dot.active {
    background: #b16dff;
    opacity: 1;
    transform: scale(1.22);
    box-shadow: 0 0 6px #b16dff;
}

/* Responsive */
@media (max-width: 992px) {
    .achievement-slide {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .achievement-slide {
        grid-template-columns: 1fr;
    }
}


.projects-track,
.achievements-track {
    transition: transform 0.85s cubic-bezier(.25,.8,.25,1);
}
/* ===================== EXPERIENCE SECTION ===================== */

/* ===== FIX: EXPERIENCE LAYOUT OVERRIDE ===== */

/* old glassmorphism styles ko kill */
.timeline-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 1;
  transform: none;
  overflow: hidden;
  box-sizing: border-box;
}

/* odd/even wale old rules hatao */
.timeline-item:nth-child(odd) .timeline-content,
.timeline-item:nth-child(even) .timeline-content {
  margin: 0;
  transform: none;
}

/* center-line & card purple-pink theme */
.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  padding: 3rem 0;
}

.timeline-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
  opacity: 0.9;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin: 3rem 0;
}

.timeline-item-left  { justify-content: flex-start; }
.timeline-item-right { justify-content: flex-end; }

/* WIDE CARD */
.timeline-card {
  width: 85%;
  max-width: 1050px;
  box-sizing: border-box;
  background: var(--dark-color);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 2rem 2.6rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: 0.3s ease;
  margin-top: 3.2rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.timeline-item-left  .timeline-card { margin-right: 6.5rem; }
.timeline-item-right .timeline-card { margin-left: 6.5rem; }

.timeline-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
}

/* Text styling */
.timeline-role {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.timeline-org {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 0.35rem;
}

.timeline-location {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

/* Bullets */
.timeline-resp-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.timeline-resp-list li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0.45rem 0;
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.timeline-resp-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-size: 0.9rem;
}

/* Career growth */
.timeline-career {
  margin-top: 1.5rem;
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
}

.timeline-career-title {
  color: var(--light-color);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.timeline-career-item { margin-bottom: 0.85rem; }

.timeline-career-date {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline-career-text {
  color: var(--text-color);
  font-size: 0.95rem;
}

/* Skill tags */
.timeline-skills {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.timeline-skill-tag {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.6);
  color: var(--light-color);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* date pill */
.timeline-date-pill {
  position: absolute;
  left: 50%;
  top: -1rem;          /* ⬅️ pehle -0.7 tha, thoda upar */
  transform: translateX(-50%);
  padding: 0.38rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #f9fafb;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.6);
  white-space: nowrap;
}

/* icon marker */
.timeline-marker {
  position: absolute;
  left: 50%;
  top: 1.4rem;          /* ⬅️ pehle 2.0 tha, icon neeche */
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, var(--secondary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  box-shadow: 0 0 20px rgba(124,58,237,0.9);
  z-index: 2;
}


.timeline-marker i { font-size: 15px; }

/* mobile */
@media (max-width: 900px) {
  .timeline {
    padding: 2rem 0;
    overflow-x: hidden;
  }

  .timeline-center-line {
    left: 22px;
    transform: translateX(0);
  }

  /* Override desktop left/right layout */
  .timeline-item,
  .timeline-item-left,
  .timeline-item-right {
    justify-content: flex-start !important;
    margin: 2rem 0;
    width: 100%;
    position: relative;
  }

  /* Card - full width, just offset for the left icon */
  .timeline-item-left .timeline-card,
  .timeline-item-right .timeline-card {
    margin-left: 45px !important;
    margin-right: 10px !important;
    margin-top: 2.5rem;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 0 !important;
    box-sizing: border-box !important;
    padding: 1.2rem 1rem;
    overflow: hidden;
    word-break: break-word;
  }

  .timeline-date-pill {
    left: 22px;
    transform: translateX(0);
    font-size: 0.72rem;
    padding: 0.28rem 0.9rem;
    max-width: calc(100% - 44px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .timeline-marker {
    left: 22px;
    transform: translateX(-50%);
  }

  .timeline-role {
    font-size: 1.05rem;
    word-break: break-word;
  }

  .timeline-org,
  .timeline-location {
    word-break: break-word;
  }

  .timeline-resp-list li {
    word-break: break-word;
    font-size: 0.9rem;
  }

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

  .timeline-skill-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    white-space: normal;
    word-break: break-word;
  }
}

/* ============================================================
   COMPREHENSIVE MOBILE FIXES - ALL SECTIONS
   ============================================================ */

/* ---------- ABOUT SECTION ---------- */
@media (max-width: 768px) {
    .section-about .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-container {
        padding-top: 80%;
        max-width: 340px;
        margin: 0 auto;
        transform: none;
    }

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

    .about-tagline {
        justify-content: center;
    }

    .about-tagline::before {
        display: none;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.75rem;
    }
}

/* ---------- PROJECTS SECTION ---------- */
@media (max-width: 768px) {
    .projects-slider-wrapper {
        gap: 8px;
    }

    .projects-arrow {
        font-size: 18px;
        padding: 10px 12px;
        min-width: 40px;
        min-height: 40px;
        flex-shrink: 0;
    }

    .project-slide {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        height: auto;
        min-height: 400px;
    }

    .project-image {
        height: 180px;
    }

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

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

/* ---------- EXPERIENCE SECTION ---------- */
@media (max-width: 768px) {
    .timeline-card {
        padding: 1.4rem 1.2rem;
        margin-top: 2.5rem;
    }

    .timeline-role {
        font-size: 1.15rem;
    }

    .timeline-org {
        font-size: 0.95rem;
    }

    .timeline-resp-list li {
        font-size: 0.92rem;
    }

    .timeline-skill-tag {
        font-size: 0.78rem;
        padding: 0.35rem 0.7rem;
    }

    .timeline-date-pill {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
        white-space: nowrap;
    }
}

/* ---------- ACHIEVEMENTS SECTION ---------- */
@media (max-width: 768px) {
    .achievements-slider-wrapper {
        gap: 8px;
    }

    .achievements-arrow {
        font-size: 18px;
        padding: 10px 12px;
        min-width: 40px;
        min-height: 40px;
        flex-shrink: 0;
    }

    .achievement-slide {
        grid-template-columns: 1fr !important;
        gap: 16px;
        min-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .achievements-slider-wrapper {
        gap: 0 !important;
        padding: 0 !important;
    }

    .achievements-arrow {
        position: relative;
        z-index: 10;
        flex-shrink: 0;
    }

    .achievements-window {
        overflow: hidden;
        width: 100%;
    }

    .achievement-card {
        padding: 1.5rem 1.2rem;
    }

    .achievement-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

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

    .achievement-description {
        font-size: 0.9rem;
    }
}

/* ---------- CONTACT SECTION ---------- */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-heading {
        font-size: 1.7rem;
    }

    .contact-form {
        padding: 1.5rem 1.2rem;
    }

    .contact-link-value {
        font-size: 0.92rem;
        word-break: break-all;
    }
}

/* ---------- FOOTER ---------- */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 0 2rem;
    }
}

/* ---------- GENERAL MOBILE POLISH ---------- */
@media (max-width: 480px) {
    .section {
        padding: 4rem 0;
    }

    .section-title-container {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Prevent horizontal overflow on all sections */
    section, .container {
        max-width: 100%;
        overflow-x: hidden;
    }

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

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

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

    .hero-visual-inner {
        width: 230px;
        height: 230px;
    }

    .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    /* Timeline on very small screens */
    .timeline-item-left .timeline-card,
    .timeline-item-right .timeline-card {
        margin-left: 45px !important;
        margin-right: 10px !important;
        width: auto !important;
    }

    .timeline-skills {
        gap: 0.4rem;
    }
}

/* Experience section overflow fix */
.experience .container,
#experience {
    overflow-x: hidden;
}
