/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #000000;
    color: #FFFFFF;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}
.dp {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}




.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%) scale(1.3); 
    mix-blend-mode: difference;
    
    backdrop-filter: brightness(0.8) saturate(1.5) contrast(1.2);
    -webkit-backdrop-filter: brightness(0.8) saturate(1.5) contrast(1.2);
}

.cursor-follower.hover {
  border-color: #00DDEB;
  transform: translate(-50%, -50%) scale(1.5); 
  filter: brightness(2) saturate(1.5) contrast(1.2);
}



/* Header and Navigation */
header {
    position: relative;
    min-height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

header.visible {
    opacity: 1;
    transform: translateY(0);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(-20px);
}

nav.visible {
    opacity: 1;
    transform: translateY(0);
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}
.logo {
  font-size: 24px; /* Adjust as needed */
  font-weight: bold; /* Optional: for emphasis */
  color: #ffff; /* Default color for the rest of the text */
}


.logo::first-letter {
  background: linear-gradient(to bottom, #00DDEB 0%, #BB86FC 70%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px #00DDEB;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    margin-right: 50px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: bold;
    position: relative;
    transition: color 0.5s ease, transform 0.5s ease, text-shadow 0.5s ease;
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00DDEB, #BB86FC);
    bottom: -5px;
    left: 0;
    transition: width 0.5s ease;
}

nav ul li a:hover {
    color: #BB86FC;
    transform: translateY(-2px);
    text-shadow: 0 0 5px #BB86FC;
}

.dynamic-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 26px;
  background: linear-gradient(90deg, #00DDEB, #BB86FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border-right: 2px solid #BB86FC;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blink-caret 0.75s step-end infinite;
}



/* Social Media Icons */
.social-media {
    position: fixed;
    left: 20px;
    top: 65%;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    transform: translateY(100vh);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.social-media.visible {
    opacity: 1;
    transform: translateY(-50%);
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 14px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.social-icons::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00DDEB;
    transition: top 0.5s ease;
    z-index: -1;
}

.social-icons:hover::before {
    top: 0;
}

.social-icons:hover {
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.3);
}

.social-icon {
    color: #FFFFFF;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #000000;
    transform: scale(1); /* Only scale, no X movement */
    animation: vibrate 0.3s ease-in-out infinite;
}



@keyframes vibrate {
    0%, 100% { transform: scale(1.5) translateX(1px) rotate(0deg); }
    25% { transform: scale(1.5) translateX(1px) rotate(2deg); }
    50% { transform: scale(1.5) translateX(1px) rotate(-2deg); }
    75% { transform: scale(1.5) translateX(1px) rotate(2deg); }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 220px 100px 150px;
    position: relative;
    min-height: 80vh;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.hero.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    flex: 1;
    margin-left: 80px;
}

.hero-photo {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.photo-placeholder {
    width: 450px;
    height: 450px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 24px;
    text-align: center;
    padding: 30px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
}



.hero-photo {
  width: 450px;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blob-mask {
  width: 100%;
  height: 100%;
  animation: float 4s ease-in-out infinite;
}

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


.water-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='none' stroke='url(%23grad)' stroke-width='4' d='M 100,10 C 140,10 190,50 190,100 C 190,150 140,190 100,190 C 60,190 10,150 10,100 C 10,50 60,10 100,10 Z'%3E%3Canimate attributeName='d' values='M 100,10 C 140,10 190,50 190,100 C 190,150 140,190 100,190 C 60,190 10,150 10,100 C 10,50 60,10 100,10 Z;M 100,10 C 150,10 200,60 190,100 C 180,140 130,190 100,190 C 70,190 20,140 10,100 C 0,60 50,10 100,10 Z;M 100,10 C 140,10 190,50 190,100 C 190,150 140,190 100,190 C 60,190 10,150 10,100 C 10,50 60,10 100,10 Z' dur='3s' repeatCount='indefinite'/%3E%3C/path%3E%3Cdefs%3E%3ClinearGradient id='grad' x1='0%' y1='0%' x2='100%' y2='100%'%3E%3Cstop offset='0%' style='stop-color:%2300DDEB;stop-opacity:1'/%3E%3Cstop offset='100%' style='stop-color:%23BB86FC;stop-opacity:1'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");
    animation: waterFlow 3s infinite ease-in-out;
}

@keyframes waterFlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero .photo-placeholder:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.3);
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero h1.visible {
    opacity: 1;
    transform: translateX(0);
}

.hero p {
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.hero p.visible {
    opacity: 1;
    transform: translateX(0);
}

.dynamic-text {
    border-right: 2px solid #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #FFFFFF; }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}

.cta-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid #FFFFFF;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00DDEB, #BB86FC);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 221, 235, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-size: 30px;
    text-decoration: none;
    animation: enhanced-bounce 2s infinite;
    z-index: 2;
    transition: color 0.3s ease;
    opacity: 0;
}

.scroll-down.visible {
    opacity: 1;
    transition: opacity 0.8s ease 1.1s;
}

.scroll-down:hover {
    color: #BB86FC;
}

@keyframes enhanced-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
    40% {
        transform: translateX(-50%) translateY(15px) scale(1.1);
        opacity: 0.7;
    }
    60% {
        transform: translateX(-50%) translateY(-5px) scale(0.9);
        opacity: 0.9;
    }
}

/* Sections */
section {
    padding: 120px 100px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-intro {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

.section-intro.visible {
    opacity: 1;
}
h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #f0faff; /* soft white-blue */
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    transition: opacity 0.6s ease;
    text-shadow: 0 0 10px rgba(0, 221, 235, 0.2), 0 0 20px rgba(0, 221, 235, 0.1);
}




h2.visible {
    opacity: 1;
}

h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #FFFFFF;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.5s ease, background 0.5s ease;
}

h2.visible::after {
    width: 100px;
    background: linear-gradient(90deg, #00DDEB, #BB86FC);
}

h2:hover::after {
    width: 120px;
    background: linear-gradient(90deg, #00DDEB, #BB86FC);
}

/* About Section */
.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-photo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

.about-photo .photo-placeholder {
  width: 90%;
  max-width: 400px;
  /*aspect-ratio: 3 / 5;*/
  background: transparent;
  padding: 0;
  border-radius: 15px;
  overflow: hidden;
}


.about-photo .photo-placeholder.visible {
    animation: float 4s ease-in-out infinite;
}

.about-photo .photo-placeholder.shake {
    animation: gentle-shake 0.8s ease-in-out;
}

/* Override any float animation while shaking */
.about-photo .photo-placeholder {
    animation: float 4s ease-in-out infinite;
}

@keyframes corner-shake {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(2deg); }
  40% { transform: rotate(-2deg); }
  60% { transform: rotate(1.5deg); }
  80% { transform: rotate(-1.5deg); }
  100% { transform: rotate(0deg); }
}


.about-photo .photo-placeholder.shake-once {
  animation: corner-shake 0.6s ease-in-out;
}
.about-photo .photo-placeholder.float {
  animation: float 4s ease-in-out infinite;
}





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

.about-photo .photo-placeholder::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    background: linear-gradient(45deg, #00DDEB, #BB86FC);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.about-photo .photo-placeholder:hover::before {
    opacity: 1;
}

.about-photo .photo-placeholder:hover {
    transform: rotate(2deg) scale(1.03);
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.3);
}

.about-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
}

.about-description {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}

.about-description.visible {
    opacity: 1;
}

h3 {
    color: #d1b3ff; /* soft pastel purple */
    text-shadow: 0 0 8px rgba(187, 134, 252, 0.2);
}

/* Tech Stack Bubbles */
.tech-stack {
    margin-bottom: 40px;
    width: 100%;
}

.tech-stack h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.tech-stack h3.visible {
    opacity: 1;
}

.tech-bubbles-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 40px;
}

.tech-bubbles-container::before,
.tech-bubbles-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 1;
}

.tech-bubbles-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.tech-bubbles-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}
.tech-bubbles {
  position: relative;
  width: 100%;
  height: 250px;
}

.tech-bubble {
  position: absolute;
  animation: floatRandom 6s ease-in-out infinite;
}

@keyframes floatRandom {
  0%   { transform: translate(0px, 0px); }
  25%  { transform: translate(-10px, -20px); }
  50%  { transform: translate(15px, 10px); }
  75%  { transform: translate(-20px, 15px); }
  100% { transform: translate(0px, 0px); }
}



@keyframes bounceAround {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-10px, -15px); }
  50%  { transform: translate(10px, 10px); }
  75%  { transform: translate(-15px, 5px); }
  100% { transform: translate(0, 0); }
}

.tech-bubble {
  animation: bounceAround 4s ease-in-out infinite;
}


.tech-bubble {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    border-radius: 20px;
    border: 1px solid #FFFFFF;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
    position: relative;
}

.tech-bubble.visible {
    opacity: 1;
    transform: scale(1);
}


.tech-bubble:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transform: scale(1.2);
    animation: shake 0.5s ease-in-out 0.3s;
}

@keyframes shake {
    0%, 100% { transform: scale(1.2) rotate(0deg); }
    20% { transform: scale(1.2) rotate(3deg); }
    40% { transform: scale(1.2) rotate(-3deg); }
    60% { transform: scale(1.2) rotate(2deg); }
    80% { transform: scale(1.2) rotate(-2deg); }
}

.about-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.about-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 14px;
    color: #FFFFFF;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px auto 0;
    max-width: 1200px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 221, 235, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: #FFFFFF;
}
/* Testimonials Section */
.testimonials {
    margin-top: 60px;
    width: 100%;
    max-width: none;
    padding: 0;
}

.testimonials h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 30px;
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.testimonials h3.visible {
    opacity: 1;
}

.testimonials-row {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 20px 0;
}

.testimonials-row::before,
.testimonials-row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 1;
}

.testimonials-row::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.testimonials-row::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.testimonials-container {
    display: flex;
    gap: 30px;
    padding: 0 80px;
    width: max-content;
}

.testimonials-row .testimonials-container {
    animation: slide-left 25s linear infinite;
}

.testimonials-row.reverse .testimonials-container {
    animation: slide-right 25s linear infinite;
}

@keyframes slide-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes slide-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    min-width: 400px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: scale(1);
}

.testimonial-card:hover {
    background: rgba(0, 221, 235, 0.1);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 221, 235, 0.2);
}

.testimonial-card p {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #BB86FC;
}
/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px auto 0;
    max-width: 1200px;
}

.skill-bar {
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-bar.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-bar p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #FFFFFF;
    width: 0;
    transition: width 1s ease;
}

.progress.visible::after {
    width: var(--width);
}

/* Works Section - Carousel */
#works {
    padding: 150px 100px;
}

#works h2 {
    font-size: 54px;
}

#works .section-intro {
    font-size: 22px;
}

.works-carousel {
    position: relative;
    max-width: 1400px;
    margin: 60px auto;
    height: 500px;
}

.carousel-container {
    display: flex;
    width: 100%;
    position: relative;
    height: 100%;
    justify-content: center;
}

.work-card {
  flex: 0 0 35%;
  height: 450px;                  /* ✅ Fixed height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border-radius: 20px;
  position: absolute;
  top: 0;
  opacity: 0;
  transform: translateX(120%) scale(0.8);
  transition: transform 0.7s ease, opacity 0.7s ease, z-index 0s;
  z-index: 1;
  width: 35%;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)); /* ✅ Less see-through */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 221, 235, 0.2);
}

.work-card.center {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 3;
  background: #000000;  /* ✅ Solid for readability */
}

.work-card.left {
    opacity: 0.7;
    transform: translateX(-60%) scale(0.9);
    z-index: 2;
}

.work-card.right {
    opacity: 0.7;
    transform: translateX(60%) scale(0.9);
    z-index: 2;
}

.work-card:hover:not(.center) {
    opacity: 0.9;
    transform: translateX(calc(-60% + 15px)) scale(0.95);
    box-shadow: 0 15px 40px rgba(0, 221, 235, 0.3);
}

.work-card:hover:not(.center).right {
    transform: translateX(calc(60% - 15px)) scale(0.95);
}


.work-thumbnail {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  position: relative;
}


.work-thumbnail img,
.bmi-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 15px 15px 0 0;
}





.work-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-thumbnail::before {
    opacity: 1;
}

.work-details {
  flex: 1;
  background: #001f3f; /* A deeper custom navy */
/* ✅ Ensure solid readable bottom */
  padding: 20px;
  text-align: left;
  color: #FFFFFF;
  border-radius: 0 0 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-details h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.work-details p {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    gap: 12px;
}

.tech-tag {
    padding: 8px 15px;
    background: rgba(0, 221, 235, 0.2);
    border: 1px solid #00DDEB;
    border-radius: 20px;
    font-size: 14px;
    color: #FFFFFF;
    transition: background 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 221, 235, 0.4);
}

.work-card.center .work-details {
    position: relative;
}

.work-card.center .work-details::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(145deg, rgba(0, 221, 235, 0.2), rgba(187, 134, 252, 0.2));
    border-radius: 15px;
    z-index: -1;
    box-shadow: 0 8px 20px rgba(0, 221, 235, 0.3);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 4;
    overflow: hidden;
}

.carousel-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00DDEB, #BB86FC);
    transition: left 0.3s ease;
    z-index: -1;
}

.carousel-arrow:hover::before {
    left: 0;
}

.carousel-arrow:hover {
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 30px;
}

.right-arrow {
    right: 30px;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    color: #FFFFFF;
    font-size: 14px;
    transition: box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 5px rgba(0, 221, 235, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.contact-form .cta-button {
    display: block;
    width: 150px;
    margin: 20px auto;
    text-align: center;
}

/* Footer */
footer {
    padding: 30px 20px;
    background: #000000;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

footer:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00DDEB, #BB86FC);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Scroll-to-Top Button */
.scroll-top {
    position: fixed;
    bottom: 60px;
    right: 60px;
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00DDEB, #BB86FC);
    transition: left 0.3s ease;
    z-index: -1;
}

.scroll-top:hover::before {
    left: 0;
}

.scroll-top:hover {
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.3);
}

/* Responsive Design */
@media (max-width: 1000px) {
    .hero {
        flex-direction: column;
        padding: 150px 30px 80px;
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
        margin-bottom: 30px;
    }

    .hero-photo {
        margin-top: 20px;
    }

    .hero .photo-placeholder {
        width: 300px;
        height: 300px;
        font-size: 18px;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .about-photo .photo-placeholder {
        width: 300px;
        height: 400px;
    }

    .about-details {
        max-width: 100%;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-card {
        width: 100%;
        max-width: 350px;
    }

    section {
        padding: 60px 30px;
    }

    #works {
        padding: 80px 30px;
    }

    .works-carousel {
        height: 400px;
    }

    .work-card {
        flex: 0 0 60%;
        width: 60%;
        height: 350px;
    }

    .work-thumbnail {
        height: 180px;
        font-size: 18px;
    }

    .social-media {
        left: 10px;
    }

    .social-icons {
        padding: 10px 6px;
    }

    .social-icon {
        font-size: 16px;
    }

    .scroll-top {
        right: 25px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .testimonials-row {
        padding: 10px 30px;
    }

    .testimonial-card {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .photo-placeholder {
        width: 250px;
        height: 250px;
        font-size: 16px;
    }

    .about-photo .photo-placeholder {
        width: 250px;
        height: 350px;
    }

    nav {
        padding: 10px 15px;
    }

    nav ul {
        gap: 10px;
        margin-right: 10px;
    }

    nav ul li a {
        font-size: 12px;
    }

    .logo {
        font-size: 20px;
    }

    section {
        padding: 50px 15px;
    }

    #works {
        padding: 60px 15px;
    }

    #works h2 {
        font-size: 36px;
    }

    #works .section-intro {
        font-size: 16px;
    }

    .works-carousel {
        height: 300px;
    }

    .work-card {
        flex: 0 0 90%;
        width: 90%;
        height: 280px;
    }

    .work-thumbnail {
        height: 140px;
        font-size: 16px;
    }

    .work-details h3 {
        font-size: 18px;
    }

    .work-details p {
        font-size: 14px;
    }

    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .left-arrow {
        left: 5px;
    }

    .right-arrow {
        right: 5px;
    }

    .social-media {
        left: 5px;
        top: 70%;
    }

    .social-icons {
        padding: 8px 5px;
    }

    .social-icon {
        font-size: 14px;
    }

    .scroll-top {
        right: 1px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .testimonials-row {
        padding: 10px 15px;
    }

    .testimonial-card {
        min-width: 180px;
    }

    .contact-form {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero .photo-placeholder {
        width: 200px;
        height: 200px;
        font-size: 14px;
    }

    .about-photo .photo-placeholder {
        width: 200px;
        height: 250px;
    }

    h2 {
        font-size: 30px;
    }

    .section-intro {
        font-size: 14px;
    }

    .about-description {
        font-size: 14px;
    }

    .tech-stack h3 {
        font-size: 20px;
    }

    .tech-bubble {
        font-size: 12px;
        padding: 6px 15px;
    }

    .about-card {
        padding: 20px;
    }

    .service-card {
        padding: 20px;
    }

    .testimonial-card {
        min-width: 160px;
        padding: 15px;
    }

    .testimonial-card p {
        font-size: 12px;
    }

    .testimonial-card h4 {
        font-size: 14px;
    }

    .skill-bar p {
        font-size: 14px;
    }

    .works-carousel {
        height: 250px;
    }

    .work-card {
        height: 240px;
    }

    .work-thumbnail {
        height: 120px;
        font-size: 14px;
    }

    .work-details h3 {
        font-size: 16px;
    }

    .work-details p {
        font-size: 12px;
    }

    .tech-tag {
        font-size: 12px;
        padding: 6px 10px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 12px;
    }

    .contact-form .cta-button {
        width: 120px;
        padding: 10px;
        font-size: 14px;
    }
}

/* Education & Experience Section */
#career {
    position: relative;
    background: #000000;
    padding: 120px 100px;
    text-align: center; /* Centered heading to match other sections */
}

.career-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Meteor tail (main line) */
.career-container::before {
  content: '';
  position: absolute;
  top: 60px; /* aligns below first circle */
  left: 50%;
  transform: translateX(-50%);
  width: 6px; /* tail width */
  height: 0;
  background: linear-gradient(to bottom, #00DDEB 0%, #BB86FC 70%, transparent 100%);
  z-index: 0;
  border-radius: 3px;
  transition: height 2s ease-in-out;
  box-shadow: 0 0 5px #BB86FC88;
}

.career-container.visible::before {
  height: calc(100% - 160px); /* Stops at last circle */
}

/* Meteor glowing head */
.career-container::after {
  content: '';
  position: absolute;
  bottom: 100px; /* aligns at last circle center */
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #BB86FC, #00DDEB, transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1s ease-in;
  z-index: 1;
}

.career-container.visible::after {
  opacity: 1;
}





.career-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.career-item:last-child {
    margin-bottom: 0;
}

.career-experience {
    flex: 1;
    padding-right: 50px;
    text-align: left;
}

.career-experience h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.career-experience p {
    font-size: 16px;
    color: #BB86FC;
    margin-bottom: 10px;
}

.career-experience p:last-child {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.8;
}

.career-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.career-item:hover .career-year {
    background: #BB86FC;
    transform: translateX(-50%) scale(1.1);
}

.career-education {
    flex: 1;
    padding-left: 50px;
    text-align: left;
}

.career-education h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.career-education p {
    font-size: 16px;
    color: #BB86FC;
    margin-bottom: 10px;
}

.career-education p:last-child {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.8;
}

.career-socials {
    position: absolute;
    left: 0;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.career-socials .social-icon {
    color: #FFFFFF;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.career-socials .social-icon:hover {
    color: #BB86FC;
    transform: scale(1.5) translateX(5px);
}

.resume-button {
    position: absolute;
    right: 0;
    bottom: 20px;
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #FFFFFF;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 1;
}

.resume-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00DDEB, #BB86FC);
    transition: left 0.3s ease;
    z-index: -1;
}

.resume-button:hover::before {
    left: 0;
}

.resume-button:hover {
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 221, 235, 0.3);
}

/* Responsive Design for Education & Experience Section */
@media (max-width: 1000px) {
    #career {
        padding: 60px 30px;
    }

   /* REPLACE the existing .career-container::before, .career-container::after,
   and .career-year rules within @media (max-width: 768px) with these: */

.career-container::before { /* The main animated line */
    content: '';
    position: absolute;
    top: 20px; /* Adjusted for potentially less padding on smaller screens */
    left: 10px;  /* Closer to the edge for very small screens */
    transform: translateX(0);
    width: 3px; /* Even narrower for small mobile */
    height: 0;
    background: linear-gradient(to bottom, #00DDEB 0%, #BB86FC 70%, transparent 100%);
    z-index: 0;
    border-radius: 1.5px;
    transition: height 2s ease-in-out;
    box-shadow: 0 0 3px rgba(187, 134, 252, 0.3);
}

.career-container.visible::before {
    height: calc(100% - 40px); /* Adjust height calculation for smaller screens */
}

.career-container::after { /* Glowing head - kept hidden */
    display: none !important;
}

.career-year { /* Year circles - remain hidden */
    display: none !important;
}

    .career-socials {
        position: static;
        flex-direction: row;
        margin-bottom: 20px;
    }

    .resume-button {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    #career {
        padding: 50px 15px;
    }

    .career-container::before {
        left: 20px;
    }

    .career-year {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .career-experience h3,
    .career-education h3 {
        font-size: 20px;
    }

    .career-experience p,
    .career-education p {
        font-size: 14px;
    }

    .career-experience p:last-child,
    .career-education p:last-child {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .career-experience h3,
    .career-education h3 {
        font-size: 18px;
    }

    .career-experience p,
    .career-education p {
        font-size: 12px;
    }

    .career-experience p:last-child,
    .career-education p:last-child {
        font-size: 12px;
    }

    .career-socials .social-icon {
        font-size: 16px;
    }

    .resume-button {
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* ✅ Mobile/Tablet Responsive Styles */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 25px;
    font-size: 24px;
    color: white;
    z-index: 1100;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
    animation: slideDown 0.5s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
    margin-right: 0;
  }

  .hero {
    flex-direction: column-reverse;
  }

  .career-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px; /* Prevents scroll bar overlap */
  }

  .career-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .career-experience,
  .career-year,
  .career-education {
    width: 100%;
  }

  /* ✅ Hide year circle or vertical timeline on small screens */
  .career-year {
    display: none;
  }

  /* ✅ Fix about photo zoom issue on mobile/tablet */
  .about-photo .photo-placeholder {
    width: 250px !important;
    height: 350px !important;
    transform: none !important;
    scale: 1 !important;
  }
}

/* ✅ Hide hamburger menu on desktop */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}

/* ✅ Fix Education and Experience ONLY for Mobile/Tablet */
@media (max-width: 768px) {
  /* Hide the animated vertical timeline line */
  .career-container::before,
  .career-container::after {
    display: none !important;
  }

  /* Hide year circles */
  .career-year {
    display: none !important;
  }

  /* Stack content: experience on top, education below */
  .career-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 15px;
    /* background: none !important; /* Your file might have this, keep as is or remove if not needed */
  }

  .career-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; /* This is fine, centers blocks if they don't fill height */
    text-align: center; /* Ensures text within the item defaults to center */
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    gap: 20px; /* Spacing between experience & education blocks */
    width: 100%; /* Added for robustness, ensuring it takes full available width */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; /* ADDED for hover */
  }

  .career-item:hover { /* ADDED for hover effect */
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 221, 235, 0.2); /* Cyan shadow like service card */
    background: rgba(255, 255, 255, 0.05); /* Slightly lighter background */
  }

  /* This existing rule correctly centers text for h3 and p tags inside .career-item */
  .career-item h3,
  .career-item p {
    text-align: center;
  }

  .career-experience {
    order: 1;
    width: 100%; /* Ensure it takes full width */
    padding-right: 0; /* Remove desktop padding */
    margin-bottom: 0; /* Rely on gap from .career-item */
  }

  .career-education {
    order: 2;
    width: 100%; /* Ensure it takes full width */
    padding-left: 0; /* Remove desktop padding */
    margin-bottom: 0; /* Rely on gap from .career-item */
  }
}
/* === FULL RESPONSIVENESS PATCH === */

/* Prevent horizontal scroll caused by wide elements */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Force nav to wrap and stay inside screen */
nav {
    flex-wrap: wrap;
}

/* Hide nav links initially on mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        right: 0;
        top: 60px;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
        border-top: 1px solid rgba(255,255,255,0.2);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 15px;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        padding: 10px 20px;
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
    }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
  }

  .hero-content {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .hero-photo {
    width: 100%;
    max-width: 250px;
    margin-top: 20px;
  }

  .blob-mask {
    width: 100%;
    height: auto;
  }
}


@media (max-width: 768px) {
    .cursor-follower {
        display: none !important;
    }
}

/* === Mobile Social Toggle Button === */
.social-toggle-wrapper {
  position: fixed;
  left: 15px;
  bottom: 80px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
 .social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 14px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.5s ease, opacity 0.5s ease;
    
    /* Add smooth scale effect */
    transform: scale(0);
    opacity: 0;
    transform-origin: center;
}

.social-icons.open {
    transform: scale(1);
    opacity: 1;
}


  .social-toggle-button {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.4);
  }

  .social-toggle-button i {
    font-size: 20px;
    color: white;
    z-index: 3;
  }

  .dotted-loader {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px dotted #00DDEB;
    border-radius: 50%;
    animation: rotateDots 2s linear infinite;
    top: 0;
    left: 0;
    z-index: 1;
  }

  @keyframes rotateDots {
    0% {
      transform: rotate(0deg) scale(1);
      opacity: 0.5;
    }
    50% {
      transform: rotate(180deg) scale(1.1);
      opacity: 1;
    }
    100% {
      transform: rotate(360deg) scale(1);
      opacity: 0.5;
    }
  }
}
/* Hide only the toggle button on desktop */
@media (min-width: 769px) {
  .social-toggle-button {
    display: none !important;
  }

  .social-icons {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    position: fixed;
    left: 20px;
    top: 65%;
    transform: translateY(-50%);
  }
}
@media (max-width: 768px) {
  .resume-button {
    position: relative !important;
    left: 0 !important;
    top: auto !important;
    display: inline-block !important;
    margin: 30px auto 0 !important;
    transform: none !important;
  }
}
@media (max-width: 1000px) {
  .scroll-down {
    display: none !important;
  }
}

/* Mobile Oval Navigation */
.mobile-nav-oval {
  display: none;
}

@media (max-width: 1000px) {
  .mobile-nav-oval {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 10px 18px;
    display: flex;
    gap: 10px;
    z-index: 1001;
    backdrop-filter: blur(8px);
    max-width: 60%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
  }

  .mobile-nav-oval::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .oval-link {
    flex: 0 0 auto; /* Prevent shrinking */
    padding: 10px 16px;
    border-radius: 25px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
  }

  .oval-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(135deg, white, silver);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-in-out;
    border-radius: 25px;
  }

  /* Active state - this is the key fix */
  .oval-link.active {
    background: linear-gradient(135deg, white, silver) !important;
    color: black !important;
    border-radius: 25px;
    padding: 10px 16px; /* Keep same padding as normal state */
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }

  /* Override the ::before pseudo-element for active state */
  .oval-link.active::before {
    transform: scaleX(1);
  }

  /* Hover effect - but not for active links */
  .oval-link:not(.active):hover::before {
    transform: scaleX(1);
  }

  .oval-link:not(.active):hover {
    color: black;
    transform: scale(1.05);
  }

  /* Ensure active link is always visible */
  .oval-link.active {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 1000px) {
  body {
    overflow-x: hidden; /* CORRECTED: Allows vertical scroll */
  }
}


