/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #0b0d17;
    --text-color: #e0e6ed;
    --primary-color: #a855f7;
    /* Purple-500 */
    --secondary-color: #ec4899;
    /* Pink-500 */
    --accent-color: #d8b4fe;
    /* Lighter Purple */
    --card-bg: rgba(255, 255, 255, 0.05);
    --font-heading: 'Fira Code', monospace;
    --font-body: 'Inter', sans-serif;
}

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

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    opacity: 0.25;
    /* Slightly clearer */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: rgba(0, 242, 96, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 96, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(5, 117, 230, 0.1);
    box-shadow: 0 0 15px rgba(5, 117, 230, 0.4);
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 13, 23, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    /* added top padding for fixed header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 25%, rgba(5, 117, 230, 0.1) 0%, rgba(11, 13, 23, 0) 50%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-content {
    flex: 0 0 55%;
    max-width: 55%;
    z-index: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    /* Restored size for the name */
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.greeting-text {
    font-size: 1.8rem;
    font-weight: 500;
    color: #e0e6ed;
}

.highlight-name {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}



.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #8892b0;
    font-family: var(--font-heading);
    font-weight: 500;
    white-space: nowrap;
}

.hero p {
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 0 2.5rem;
    color: #8892b0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 0 0 35%;
    /* slightly narrower */
    max-width: 35%;
    display: flex;
    flex-direction: column;
    /* Stack image and cards */
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 60px;
    /* Increased space to prevent floating image overlap */
    margin-left: auto;
    /* Push it fully to the right */
}

/* Social Cards */
.hero-social-cards {
    display: flex;
    gap: 15px;
    z-index: 10;
}

.cv-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.social-card {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphism base */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-card:hover {
    transform: translateY(-5px);
    background: rgba(168, 85, 247, 0.2);
    /* Purple tint on hover */
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Make it circular */
    border: 4px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 0 50px rgba(0, 242, 96, 0.2);
    position: relative;
    z-index: 2;
    background: #0b0d17;
    /* Fail-safe bg */
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
    animation: spin 40s linear infinite;
}

.visual-circle.circle-2 {
    width: 120%;
    height: 120%;
    border-color: var(--primary-color);
    opacity: 0.2;
    animation: spin 30s linear infinite reverse;
    border-style: dashed;
}

.typing-text {
    white-space: nowrap;
    display: inline-block;
    border-right: 2px solid transparent;
    /* Prepare space for the | */
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Intersection Observer Animations */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
}

.fade-in-left.hidden {
    transform: translateX(-50px);
}

.fade-in-right.hidden {
    transform: translateX(50px);
}

.fade-in-left.show,
.fade-in-right.show {
    transform: translateX(0);
}

/* Staggered delay for children if needed */
.about-content.hidden {
    transform: translateY(50px);
}

.about-content.show {
    transform: translateY(0);
}

.fade-in-up.hidden {
    transform: translateY(50px);
}

.fade-in-up.show {
    transform: translateY(0);
}

/* About Section */
.about {
    padding: 80px 0 40px 0;
    /* Increased top padding slightly to clear header, reduced bottom to pull up next sections */
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.about-text {
    text-align: left;
    font-size: 1.05rem;
    /* Slightly smaller for compact feel */
    color: #a8b2d1;
    line-height: 1.6;
}

/* First paragraph (intro) spans full width and centers */
.about-text>p:first-child {
    grid-column: 1 / -1;
    /* Spans all 3 columns */
    font-size: 1.15rem;
    margin: 0 auto 20px auto;
    /* Reduced margin below so cards are lifted higher */
    text-align: center;
    /* Center the text */
    max-width: 900px;
    /* Allow it to breathe a bit more horizontally */
}

/* Create a grid inside the text container for the 3 sections */
.about-text {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 equal columns for the cards */
    gap: 20px;
    /* Reduce gap slightly so they can be wider */
    max-width: 100%;
    width: 100%;
    /* Fill out the container */
    margin: 0 auto;
}

.about-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.about-section:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.about-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.about-text p {
    margin-bottom: 20px;
}

/* Education Section */
.education {
    padding: 100px 0;
    /* Increased padding */
    width: 100%;
    min-height: 100vh;
    /* Ensure it takes at least full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Push the title down slightly */
.education .section-title {
    margin-top: 70px;
    /* Reduced from 110px to lift the section up */
}

.education-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.edu-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    width: 100%;
    transition: 0.3s;
}

.edu-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.edu-logo-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    /* Make the image circular without background */
}

.edu-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.edu-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uni-name {
    font-size: 2rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.faculty-name {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

.edu-meta {
    display: flex;
    gap: 20px;
    color: #a8b2d1;
    font-size: 1rem;
    margin-top: 10px;
}

.edu-meta i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.edu-focus {
    margin-top: 15px;
    color: #a8b2d1;
    font-size: 1.05rem;
}

.edu-focus strong {
    color: var(--accent-color);
}

/* Skills Section */
.skills {
    padding: 40px 0 60px 0;
    /* Reduced from 100px */
    background: #0d101b;
    scroll-margin-top: 80px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns so we get 2 clean rows of 3 */
    gap: 20px;
    /* Reduced gap from 30px */
    margin-top: -10px;
    /* Lift the cards slightly up towards the title but leave a gap */
}

.skill-category {
    background: var(--card-bg);
    padding: 20px;
    /* Reduced padding to make card smaller */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    /* Reduced from 20px */
    font-size: 1.1rem;
    /* Slightly smaller title */
    color: var(--accent-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

/* Experience Section */
.experience {
    padding: 0px 0 60px 0;
    /* Reduced top padding to pull the section up even more */
    scroll-margin-top: 80px;
}

.experience-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.exp-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    transition: 0.3s;
}

.exp-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.exp-title h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.exp-title .highlight {
    color: var(--primary-color);
}

.company-name {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.exp-date {
    color: #a8b2d1;
    font-size: 1rem;
}

.exp-date i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.exp-details ul {
    list-style-type: none;
    padding-left: 0;
}

.exp-details li {
    font-size: 1.05rem;
    color: #a8b2d1;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.exp-details li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-family: var(--font-mono);
}

.exp-details strong {
    color: var(--text-color);
}

/* Services Section */
.services {
    padding: 0px 0 60px 0;
    /* Reduced top padding to pull the section up */
    background: #0d101b;
    scroll-margin-top: 80px;
    /* Subtle background shift */
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: -10px;
    /* Lift the cards slightly up towards the title but leave a gap */
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 250px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(2ec4b6, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

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

.service-icon {
    font-size: 2.2rem;
    /* Reduced icon size */
    color: var(--primary-color);
    margin-bottom: 15px;
    /* Reduced margin */
    transition: 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.15rem;
    /* Smaller title */
    color: var(--text-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.service-card p {
    color: #a8b2d1;
    font-size: 0.9rem;
    /* Smaller text */
    line-height: 1.5;
}

/* Projects Section (Peek Carousel) */
.projects {
    padding: 0px 0 60px 0;
    overflow: hidden;
    scroll-margin-top: 80px;
}

.projects-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
    margin-top: -10px;
}

/* Navigation Arrows */
.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--text-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Carousel Viewport */
.carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
}

/* Carousel Track - stacking container for circular carousel */
.carousel-track {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 520px;
}

/* Individual Slide - all stacked via absolute positioning */
.carousel-slide {
    position: absolute;
    width: 65%;
    padding: 0 2%;
    box-sizing: border-box;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
    z-index: 1;
}

/* Active slide - center, full size */
.carousel-slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    pointer-events: auto;
    z-index: 5;
}

/* Previous slide - peeking from the left */
.carousel-slide.prev {
    opacity: 0.2;
    transform: scale(0.75) translateX(-85%);
    z-index: 2;
    filter: blur(2px);
}

.carousel-slide.prev .slide-info {
    display: none;
}

/* Next slide - peeking from the right */
.carousel-slide.next {
    opacity: 0.2;
    transform: scale(0.75) translateX(85%);
    z-index: 2;
    filter: blur(2px);
}

.carousel-slide.next .slide-info {
    display: none;
}

/* Slide Visual (Image) */
.slide-visual {
    width: 100%;
    max-height: 380px;
    background: rgba(17, 34, 64, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.15);
    position: relative;
}

.slide-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, transparent 60%, rgba(11, 13, 23, 0.4) 100%);
    pointer-events: none;
}

.slide-img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.slide-img:hover {
    transform: scale(1.03);
}

/* Slide Info */
.slide-info {
    text-align: center;
    padding: 18px 10px 5px;
}

.slide-title {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-info p {
    color: #a8b2d1;
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-tech {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.project-tech span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.15);
}

.slide-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    font-size: 0.9rem;
    padding: 8px 20px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -15px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dots .dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    transform: scale(1.2);
}

.carousel-dots .dot:hover {
    background: rgba(168, 85, 247, 0.5);
    border-color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #0d101b;
    scroll-margin-top: 80px;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #a8b2d1;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: #fff;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #8892b0;
    font-family: var(--font-heading);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Image on top, text below */
        gap: 30px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .hero-visual {
        flex: 1 1 100%;
        max-width: 100%;
    }

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

    .hero h2 {
        font-size: 1.2rem;
        /* Make it smaller on mobile so it fits */
        white-space: normal;
        /* Allow wrapping on very small screens if absolutely necessary, but keep typing text nowrap */
    }

    .typing-text {
        white-space: nowrap;
        /* keep typing text on one line */
    }

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

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
        /* Stack main text and sections vertically on mobile */
    }

    .about-text {
        grid-template-columns: 1fr;
        /* Stack the 3 sub-sections vertically */
    }

    .about-text>p:first-child {
        grid-column: 1 / -1;
    }

    .edu-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .edu-meta {
        flex-direction: column;
        gap: 5px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        /* Stack skills categories vertically on mobile */
    }

    .exp-card {
        padding: 30px 20px;
    }

    .exp-header {
        flex-direction: column;
        gap: 15px;
    }

    .service-card {
        flex: 1 1 100%;
        max-width: 100%;
        min-width: unset;
    }

    /* Projects Peek Carousel Mobile */
    .projects-carousel {
        padding: 0 10px;
    }

    .carousel-track {
        min-height: 350px;
    }

    .carousel-slide {
        width: 80%;
        padding: 0;
    }

    .carousel-slide.prev {
        transform: scale(0.8) translateX(-65%);
    }

    .carousel-slide.next {
        transform: scale(0.8) translateX(65%);
    }

    .slide-visual {
        max-height: 200px;
    }

    .slide-img {
        max-height: 260px;
    }

    .slide-title {
        font-size: 1.15rem;
    }

    .slide-info p {
        font-size: 0.85rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 2px;
    }

    .next-btn {
        right: 2px;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
    }

    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Image Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 13, 23, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #a8b2d1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}