/**
 * ========================================================================================
 * PORTFOLIO WEBSITE - STYLESHEET
 * ========================================================================================
 *
 * DESCRIPTION:
 * Comprehensive CSS stylesheet for the Vaibhav Chamoli portfolio website.
 * Implements a modern, responsive design with advanced animations and interactions.
 *
 * ARCHITECTURE OVERVIEW:
 * - CSS Custom Properties (Variables): Centralized design tokens
 * - Fluid Typography: Responsive text sizing with clamp() functions
 * - Component-Based Structure: Modular CSS organization
 * - Mobile-First Responsive Design: Progressive enhancement approach
 * - Performance Optimized: Efficient selectors and minimal repaints
 *
 * DESIGN SYSTEM:
 * - Color Palette: Dark theme with grey variations and accent colors
 * - Typography: Multiple font families (Montserrat, Poppins, Open Sans)
 * - Spacing: Consistent margin/padding system with rem units
 * - Animations: GSAP-powered transitions and micro-interactions
 * - Layout: Flexbox and CSS Grid for modern layouts
 *
 * ========================================================================================
 */

/* ========================================================================================
   EXTERNAL FONT IMPORTS
   ======================================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;700&display=swap');

/* ========================================================================================
   CUSTOM FONT FACES
   ======================================================================================== */

/* Font for Name Animation - Variable weight font for dynamic text effects */
@font-face {
    font-family: "LeagueSpartanVariable";
        src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/2101521/LeagueSpartanVariable.ttf");
    font-weight: 200 900;
}

/* Decorative font for special text treatments */
@font-face {
    font-family: "wild_worldbold";
        src: url("https://assets.codepen.io/756881/wild_world-webfont.woff2") format("woff2"),
                 url("https://assets.codepen.io/756881/wild_world-webfont.woff") format("woff");
        font-weight: normal;
    font-style: normal;
}

/* Premium brand font for headings */
@font-face {
  font-family: 'PP Neue Corp Tight';
    src: url('https://cdn.prod.website-files.com/673af51dea86ab95d124c3ee/673b0f5784f7060c0ac05534_PPNeueCorp-TightUltrabold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;  /* Optimize loading performance */
}

/* Secondary brand font for UI elements */
@font-face {
  font-family: 'PP Neue Montreal';
    src: url('https://cdn.prod.website-files.com/6819ed8312518f61b84824df/6819ed8312518f61b84825ba_PPNeueMontreal-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;  /* Optimize loading performance */
}

/* ========================================================================================
   CSS CUSTOM PROPERTIES (CSS VARIABLES)
   ========================================================================================
   Centralized design tokens for consistent theming and easy maintenance.
   Uses fluid calculations for responsive design.
   ======================================================================================== */

:root {
    /* ========================================================================================
       FLUID TYPOGRAPHY SYSTEM
       ========================================================================================
       Responsive font sizing using viewport-based calculations.
       Ensures readable text across all device sizes.
       ======================================================================================== */
    --fluid-min-width: 320;     /* Minimum viewport width (mobile) */
    --fluid-max-width: 1140;    /* Maximum container width (desktop) */
    --fluid-screen: 100vw;      /* Current viewport width */
    --fluid-bp: calc(           /* Fluid breakpoint calculation */
        (var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) /
        (var(--fluid-max-width) - var(--fluid-min-width))
    );

    /* ========================================================================================
       COLOR PALETTE - DARK THEME
       ========================================================================================
       Professional dark color scheme with grey variations.
       Provides good contrast and modern aesthetic.
       ======================================================================================== */
    --primary-color: #6b7280;      /* Main grey tone */
    --secondary-color: #4b5563;    /* Darker grey */
    --accent-color: #9ca3af;       /* Light grey accent */
    --dark-bg: #111827;           /* Primary background */
    --dark-secondary: #1f2937;    /* Secondary background */
    --text-primary: #f9fafb;       /* Primary text color */
    --text-secondary: #d1d5db;     /* Secondary text color */
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    --marquee-dark: #2d2d2d;       /* Marquee background */
    --marquee-darker: #1f1f1f;     /* Marquee darker variant */
    --highlight: #ffffff;          /* Highlight/accent color */

    /* ========================================================================================
       NAVIGATION DESIGN TOKENS
       ========================================================================================
       Specific variables for navigation component styling.
       Ensures consistency across navigation elements.
       ======================================================================================== */
    --color-neutral-300: #000;     /* Navigation background */
    --color-neutral-100: #1a1a1a;  /* Navigation secondary */
    --color-neutral-200: #333;     /* Navigation accent */
    --color-neutral-800: #f0f0f0;  /* Light text */
    --color-primary: #cccccc;      /* Primary navigation color */
    --color-dark: #fff;            /* Dark text */

    /* ========================================================================================
       LAYOUT SYSTEM VARIABLES
       ========================================================================================
       Spacing and sizing tokens for consistent layout.
       Uses relative units for scalability.
       ======================================================================================== */
    --size-container: 1200px;      /* Maximum container width */
    --container-padding: 1.5rem;   /* Container padding */
    --gap: 1.5rem;                /* Grid/item gaps */
    --section-padding: 5rem;      /* Section spacing */
    --cubic-default: cubic-bezier(.65, .05, 0, 1); /* Default easing curve */
}

@media screen and (min-width: 1140px) {
    :root {
        --fluid-screen: calc(var(--fluid-max-width) * 1px);
    }
}

:root {
    --f-0-min: 18;
    --f-0-max: 20;
    --step-0: calc(
        ((var(--f-0-min) / 16) * 1rem) + (var(--f-0-max) - var(--f-0-min)) * var(--fluid-bp)
    );

    --f-1-min: 20;
    --f-1-max: 24;
    --step-1: calc(
        ((var(--f-1-min) / 16) * 1rem) + (var(--f-1-max) - var(--f-1-min)) * var(--fluid-bp)
    );
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    font-family: "Open Sans", sans-serif;
    color: white;
    overscroll-behavior: none;
    overflow-x: hidden;
    font-weight: 300;
    font-size: var(--step-0);
    padding-top: 0;
    cursor: url("images/cursors/cursor-default.svg") 2 0, auto;
}

a,
button {
    cursor: url("images/cursors/cursor-pointer.svg") 12 0, pointer;
}

section {
    min-height: 40vh;
}

#about, #projects, #contact {
    min-height: 100vh;
}

p {
    line-height: 1.35;
}

#wrapper {
    overflow: hidden;
}

#content {
    padding: 0 0.75rem;
    overflow: visible;
    width: 100%;
}

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

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.flow--lg > * + * {
    margin-top: 2em;
}

.flow > * + * {
    margin-top: 1em;
}

.title {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 50vh;
}

/* add safe bottom spacing on the title section so marquee has room without shifting layout */
.title {
    margin-bottom: 10rem;
}

.heading {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 10;
}

h1 {
    font-size: clamp(12px, 8vw, 100px);
    text-align: center;
    line-height: 0.67;
    margin: 0 auto;
    font-family: "wild_worldbold";
}

h1 .eyebrow {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(12px, 3vw, 40px);
    font-weight: 400;
}

.heading p {
    font-family: "wild_worldbold";
    font-size: 15.5vw;
    font-size: clamp(12px, 15.5vw, 250px);
    text-align: center;
    line-height: 0.67;
    margin: 0;
    text-align: center;
    color: #111;
    -webkit-text-stroke-width: 1.5px;
    -webkit-text-stroke-color: white;
    z-index: 1001;
    position: relative;
}

.intro,
h2,
h3 {
    font-size: var(--step-1);
    font-weight: 500;
}

.text-container {
    position: relative;
}

.text-container p {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: transparent;
    opacity: 0;
}

.text-container p:first-child {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    color: white;
    opacity: 1;
}

.text-container p:nth-child(2) {
    z-index: 999;
}

.text-container p:nth-child(3) {
    z-index: 998;
}

.text-container p:nth-child(4) {
    z-index: 997;
}

.text-container p:nth-child(5) {
    z-index: 996;
}

.text-container p:nth-child(6) {
    z-index: 995;
}

.text-container p:nth-child(7) {
    z-index: 994;
}

.image-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 0.2rem;
    grid-row-gap: 0.2rem;
    width: 70vw;
    margin: 0 auto;
    padding-top: 40vh;
    z-index: -1;
}

.image-grid .image_cont {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.image-grid img {
    position: absolute;
    top: 0;
    width: 100%;
    height: 150%;
    object-fit: cover;
}

.image-grid .image_cont:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.image-grid .image_cont:nth-child(2) {
    grid-column: 3;
    grid-row: 2;
}

.image-grid .image_cont:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
}

.parallax-images {
    margin-top: 10vh;
    padding: 10rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 20vh;
    align-items: center;
    justify-items: center;
}

.parallax-images .image_cont {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.parallax-images img {
    position: absolute;
    bottom: 0;
    margin: 0 auto;
    height: 140%;
    width: 100%;
    object-fit: cover;
}

.parallax-images .parallax-text {
    grid-column: 2;
    grid-row: 1;
}

.stagger {
    font-size: 8vw;
}

.parallax-slab {
    position: relative;
    height: 300px;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin-top: -30px;
}

.parallax-slab img {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 180%;
    object-fit: cover;
}

.v-center {
    display: flex;
    align-items: center;
    min-height: 30vh;
}

/* Marquee Animation Styles */
.marquee-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
    min-height: 8vh;
    overflow: hidden;
    margin: 0.2rem 0 0.5rem 0;
    background-color: #000000;
    position: relative;
    transform: translateY(-20px);
}

.marquee {
    padding: 0.2vw;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
  
.marquee:first-child {
    background-color: var(--marquee-dark);
    transform: rotateZ(-2deg);
}

.marquee:last-child {
    background-color: var(--marquee-darker);
    transform: rotateZ(-1deg);
}

.marquee__inner {
    display: flex;
    gap: 8px;
}

.marquee__content {
    color: #fff;
    font-size: clamp(18px, 2vw, 35px);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    padding: 0 8px;
    line-height: 1;
}

/* ===========================================
   NEW NAVIGATION MENU STYLES
   =========================================== */
.osmo-ui {
    z-index: 110;
    pointer-events: none;
    flex-flow: column;
    justify-content: space-between;
    align-items: stretch;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

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

.nav-logo-row {
    pointer-events: auto;
    justify-content: space-between;
    align-items: center;
    width: 13em;
    display: flex;
    text-decoration: none;
    color: white;
}

.nav-logo__wordmark {
    width: 4em;
}

.nav-logo__icon {
    width: 1.5em;
    height: 1.5em;
}

.container.is--full {
    max-width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.nav-row__right {
    grid-column-gap: .625rem;
    grid-row-gap: .625rem;
    pointer-events: auto;
    justify-content: flex-end;
    align-items: center;
    display: flex;
}

.header {
    z-index: 110;
    padding-top: var(--gap);
    position: relative;
    inset: 0% 0% auto;
}

.nav {
    z-index: 100;
    width: 100%;
    height: 100vh;
    margin-left: auto;
    margin-right: auto;
    display: none;
    position: fixed;
    inset: 0%;
}

.overlay {
    z-index: 0;
    cursor: pointer;
    background-color: #13131366;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0%;
}

.menu {
    padding-bottom: var(--menu-padding);
    grid-column-gap: 5em;
    grid-row-gap: 5em;
    padding-top: calc(3 * var(--menu-padding));
    flex-flow: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 35em;
    height: 100%;
    margin-left: auto;
    position: relative;
    overflow: visible;
    --menu-padding: 2em;
}

.menu-bg {
    z-index: 0;
    position: absolute;
    inset: 0%;
}

.menu-inner {
    z-index: 1;
    grid-column-gap: 5em;
    grid-row-gap: 5em;
    flex-flow: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
    display: flex;
    position: relative;
    overflow: visible;
}

.bg-panel {
    z-index: 0;
    background-color: var(--color-neutral-300);
    border-top-left-radius: 1.25em;
    border-bottom-left-radius: 1.25em;
    position: absolute;
    inset: 0%;
}

.bg-panel.first {
    background-color: var(--color-primary);
}

.bg-panel.second {
    background-color: var(--color-neutral-100);
}

.menu-list {
    flex-flow: column;
    width: 100%;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
}

.menu-list-item {
    position: relative;
    overflow: hidden;
}

.menu-link-heading{ 
    text-shadow: 0px 1em 0px var(--color-neutral-200); 
}

.menu-link {
    padding-top: .75em;
    padding-bottom: .75em;
    padding-left: var(--menu-padding);
    grid-column-gap: .75em;
    grid-row-gap: .75em;
    width: 100%;
    text-decoration: none;
    display: flex;
    color: white;
    position: relative;
}

.menu-link-heading {
    z-index: 1;
    text-transform: uppercase;
    font-family: 'PP Neue Corp Tight', Arial, sans-serif;
    font-size: 5.625em;
    font-weight: 700;
    line-height: .75;
    transition: transform .55s cubic-bezier(.65, .05, 0, 1);
    position: relative;
}

.eyebrow {
    z-index: 1;
    color: var(--color-primary);
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    position: relative;
}

.menu-link-bg {
    z-index: 0;
    background-color: var(--color-neutral-800);
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.65, .05, 0, 1);
    position: absolute;
    inset: 0%;
    transform: scale3d(1, 0, 1);
}

.menu-details {
    padding-left: var(--menu-padding);
    grid-column-gap: 1.25em;
    grid-row-gap: 1.25em;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    display: flex;
}

.p-small {
    font-size: .875em;
    font-family: 'Open Sans', sans-serif;
    color: white;
}

.socials-row {
    grid-column-gap: 1.5em;
    grid-row-gap: 1.5em;
    flex-flow: row;
    display: flex;
}

.p-large {
    font-size: 1.125em;
    font-family: 'Open Sans', sans-serif;
}

.text-link {
    text-decoration: none;
    position: relative;
    color: white;
}

.menu-button {
    grid-column-gap: .625em;
    grid-row-gap: .625em;
    background-color: transparent;
    justify-content: flex-end;
    align-items: center;
    margin: -1em;
    padding: 1em;
    display: flex;
    border: none;
    color: white;
    cursor: pointer;
}

.menu-button-icon {
    width: 1em;
    height: 1em;
}

.menu-button-text {
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-end;
    height: 1.125em;
    display: flex;
    overflow: hidden;
}

.icon-wrap {
    transition: transform .4s cubic-bezier(.65, .05, 0, 1);
}

@media (hover:hover){
   /* Menu toggle button*/
  .menu-button:hover .icon-wrap{transform: rotate(90deg); }

  /* Menu Large Links */
  .menu-link:hover .menu-link-heading{ transform: translate(0px, -1em); transition-delay: 0.1s; }
  .menu-link:hover .menu-link-bg{ transform: scale(1,1) }

  /* Menu Smaller Links */
  .text-link::after{
    content: '';
    position:absolute;
    left: 0;
    bottom: 0;
    width:100%;
    height:1px;
    background: var(--color-primary);
    transform-origin: right center;
    transform: scale(0,1);
    transition: transform 0.4s var(--cubic-default)
  }

  .text-link:hover::after{
    transform-origin: left center;
    transform: scale(1,1);	
  }
}

@media screen and (max-width: 767px) {
  .menu{
    --menu-padding: 1em;
  }
  
  .nav-logo-row {
    grid-column-gap: 2.5em;
    grid-row-gap: 2.5em;
    width: auto;
  }

  .nav-row__right {
    grid-column-gap: 0rem;
    grid-row-gap: 0rem;
  }

  .menu {
    padding-top: calc(6 * var(--menu-padding));
    width: 100%;
  }

  .bg-panel {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .menu-list-item {
    height: 4.5em;
  }

  .menu-link-heading {
    font-size: 4em;
  }

  .socials-row {
    grid-column-gap: 1em;
    grid-row-gap: 1em;
  }

  .p-large.text-link {
    font-size: 1em;
  }
}

@media screen and (max-width: 479px) {
  .menu {
    padding-top: calc(7 * var(--menu-padding));
    padding-bottom: calc(2 * var(--menu-padding));
  }
}

/* ===========================================
   SCROLL TO TOP BUTTON
   =========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top:hover svg {
    transform: translateY(-2px);
}

/* ===========================================
   DESKTOP LAYOUT (ORIGINAL)
   =========================================== */

/* About Section - Desktop */
.about-dark {
    background: #000;
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 80vh;
    margin-top: 40px;
}

.about-spacer {
    height: 90px;
    width: 100%;
    background: transparent;
}

.about-static-container {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    margin-bottom: 30px;
    position: relative;
    margin-top: 0;
    padding: 15px 0;
}

.static-about-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5rem);
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 5px;
}

.about-content-wrapper {
    background: #000;
    padding: 0;
    position: relative;
    margin-bottom: -8px;
    transform: translateX(2px) translateY(0);
}

.about-full-width {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 12px 0 12px;
}

/* Name Animation Container */
.name-animation-container {
    flex: 0 0 40%;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    position: relative;
}

.name-animation {
    width: 100%;
    max-width: 460px;
    height: 420px;
    background: transparent;
    border-radius: 10px;
    padding: 18px;
    overflow: hidden;
    position: relative;
    font-family: 'LeagueSpartanVariable', Courier, monospace;
    color: #fff;
    font-size: 28px;
    line-height: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-40px) translateY(0);
    white-space: pre;
    word-wrap: break-word;
    word-break: keep-all;
}

.name-animation .line {
    display: block;
    width: 100%;
    white-space: pre;
    overflow: hidden;
    line-height: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
}

.name-animation br {
    display: none;
}

#name-animation {
    min-height: 420px;
    width: 100%;
    transform: translateX(-40px) translateY(0);
    background-color: transparent;
}

.about-paragraph-full {
    flex: 1;
    min-width: 300px;
    padding: 20px 0 0 0;
    position: relative;
}

.paragraph-wrapper {
    max-width: 800px;
    width: 100%;
}

.about-paragraph-full p {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    max-width: 700px;
    opacity: 1 !important;
    visibility: visible !important;
}

.about-details-full {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.detail-item-full {
    background: rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-item-full:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.detail-item-full:hover .detail-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--accent-color);
}

.detail-content {
    flex: 1;
}

.detail-item-full h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.detail-item-full p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Skills Section - Desktop */
.skills-section {
    background: #000;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 5px 0 0 0;
}

.skills-heading-container {
    width: 100%;
    background: #000;
    padding: 0 0 5px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    transform: translateY(-74px);
}

.skills-main-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5rem);
    color: white !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
}

.skills-icons-wrapper {
    height: 40vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.skills__icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.skills__icon {
    position: absolute;
    opacity: 0;
    width: 50px;
    aspect-ratio: 1/1;
    object-fit: contain;
    pointer-events: none;
}

#skills h1 {
    transform: translateY(335px) !important;
}

/* ===========================================
   SKILLS ACCORDION SECTION
   =========================================== */
.skills-accordion-section {
    background: #000;
    position: relative;
    width: 100%;
}

.accordion-spacer {
    height: 5vh;
}

.accordion-title {
    font-size: max(2.5vw, 28px);
    line-height: 1.1;
    padding-bottom: .4em;
    color: rgb(255, 255, 255);
    text-shadow: 0 2px 2px rgba(0, 0, 0, .1);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.accordion-text {
    font-size: max(1.3vw, 18px);
    line-height: 1.5;
    overflow: hidden;
    padding-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    height: auto;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

.accordions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
    max-height: 80vh;
    height: auto;
}

.accordion {
    background: #1a1a1a;
    width: max(65vw, 320px);
    padding: 15px 30px 5px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 30px 30px -10px rgba(0, 0, 0, .3);
    max-height: fit-content;
}

.accordion:nth-child(1) {
    background: #1a1a1a;
}
.accordion:nth-child(2) {
    background: #222222;
}
.accordion:nth-child(3) {
    background: #2a2a2a;
}
.accordion:nth-child(4) {
    background: #333333;
}
.accordion:nth-child(5) {
    background: #3a3a3a;
}
.accordion:nth-child(6) {
    background: #444444;
}
.accordion:nth-child(7) {
    background: #4d4d4d;
}

@media (max-width: 480px) {
    .accordion {
        padding: 8px 10px 2px;
        width: 95%;
        margin-bottom: 5px;
    }
    .accordion-title {
        font-size: 14px;
        padding-bottom: 0.15em;
    }
    .accordion-text {
        font-size: 10px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding-bottom: 5px;
    }
    .accordions {
        max-height: 45vh;
        height: auto;
        padding-bottom: 0;
    }
    .accordion-spacer {
        height: 1vh;
    }
}

@media (max-width: 768px) {
    .accordion {
        padding: 10px 15px 3px;
        width: 92%;
        margin-bottom: 8px;
    }
    .accordion-title {
        font-size: 18px;
        padding-bottom: 0.2em;
    }
    .accordion-text {
        font-size: 12px;
        line-height: 1.3;
        padding-bottom: 8px;
    }
    .accordions {
        max-height: 55vh;
        height: auto;
        padding-bottom: 0;
    }
}

/* ===========================================
   PROJECTS SECTION - FIXED
   =========================================== */
.projects-heading-container {
    width: 100%;
    background: #000;
    padding: 10px 0 10px 0;
    text-align: center;
    margin-top: 0;
}

.projects-main-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5rem);
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
}

.projects-section {
    width: 100%;
    height: 800vh;
    background: #000;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.projects-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

.projects-column {
    flex: 1 0 50%;
    position: relative;
}

.left-column {
    padding: 0;
}

.right-column {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    background: #000;
}

.project-content {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    font-size: 40px;
    color: white;
}

.project-content .content {
    width: 90%;
    height: 90%;
    max-width: 600px;
    max-height: 600px;
    font-size: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.project-card {
    width: 90%;
    height: 90%;
    max-width: 500px;
    max-height: 500px;
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Gradient backgrounds for cards */
.gradient-green {
    background: linear-gradient(135deg, #374151, #4b5563);
}

.gradient-purple {
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

.gradient-blue {
    background: linear-gradient(135deg, #374151, #4b5563);
}

.gradient-orange {
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

/* Project links */
.project-links {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.github-link, .website-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.github-link {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.website-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.github-link:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.website-link:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.github-link i,
.website-link i {
    font-size: 1.3rem;
}

/* Tooltip for buttons */
.github-link::after,
.website-link::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.github-link:hover::after,
.website-link:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* ===========================================
   RESPONSIVE STYLES - SIMPLIFIED BREAKPOINTS
   =========================================== */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .projects-section {
        height: auto;
        min-height: auto;
        padding: 0;
    }

    .skills-section {
        margin-top: 40px !important; /* Add spacing for tablet layout */
        padding-top: 15px !important;
    }
    
    .project-content {
        height: auto;
        min-height: 60vh;
        padding: 40px 20px;
    }
    
    .project-content .content {
        max-width: 90%;
        max-height: none;
        padding: 30px;
    }
    
    .project-content h1 {
        font-size: 2rem;
    }
    
    .project-content p {
        font-size: 1rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .projects-wrapper {
        flex-direction: column;
        height: auto;
        border: none;
    }
    
    .right-column {
        height: 50vh;
        min-height: 400px;
        position: relative;
        flex: none;
        order: -1;
        margin-bottom: 20px;
    }
    
    .project-card {
        position: relative !important;
        width: 80%;
        height: 80%;
        margin: 0 auto;
        clip-path: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-width: 400px;
        max-height: 400px;
    }
    
    .left-column {
        height: auto;
    }
    
    .project-content {
        height: auto;
        min-height: 50vh;
        padding: 30px 20px;
    }
    
    .project-content .content {
        width: 100%;
        max-width: 100%;
        padding: 25px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .projects-main-heading {
        font-size: clamp(2.5rem, 7vw, 4rem);
        padding: 20px 0;
    }
    /* change right column height and min-height for mobile phone padding after the projects heading */
    .right-column {
        height: 4vh; 
        min-height: 4px; 
    }
    
    .project-card {
        width: 90%;
        height: 90%;
        max-width: 350px;
        max-height: 350px;
    }
    
    .project-content {
        min-height: 45vh;
        padding: 25px 15px;
    }
    
    .project-content .content {
        padding: 20px;
    }
    
    .project-content h1 {
        font-size: 1.8rem;
    }
    
    .project-content p {
        font-size: 0.95rem;
    }
    
    .github-link, .website-link {
        width: 45px;
        height: 45px;
    }
    
    .github-link i,
    .website-link i {
        font-size: 1.2rem;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .right-column {
        height: 35vh;
        min-height: 250px;
    }
    
    .project-card {
        max-width: 300px;
        max-height: 300px;
    }
    
    .project-content h1 {
        font-size: 1.6rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .project-links {
        gap: 10px;
    }
    
    .github-link, .website-link {
        width: 40px;
        height: 40px;
    }
}

/* ===========================================
   ENHANCED CONTACT SECTION (SIMPLIFIED)
   =========================================== */
.contact-section {
    background: #000;
    padding: 90px 0 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.contact-header {
    text-align: center;
    margin-bottom: 80px;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 20px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.contact-highlight {
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 24px;
    align-items: stretch;
}


.contact-highlight-card {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, background 0.3s ease;
    will-change: transform, opacity;
}

.contact-highlight-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(107, 114, 128, 0.3);
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.12);
    color: var(--primary-color);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.highlight-title {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

.highlight-text {
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.6;
    margin: 0;
}

.contact-cta-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.contact-cta {
    position: relative;
    display: inline-block;
    color: var(--highlight);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    line-height: 1;
    transition: transform 0.3s ease;
}

.contact-cta span,
.contact-cta i {
    position: relative;
    z-index: 1;
}

.contact-cta i {
    margin-left: 0.5em;
    font-size: 1em;
}

.contact-cta-color {
    position: absolute;
    top: 50%;
    left: -0.65em;
    width: 2em;
    height: 2em;
    border-radius: 2em;
    background: rgba(187, 187, 187, 0.18);
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.contact-cta:hover,
.contact-cta:focus-visible {
    transform: translateY(-1px);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-self: stretch;
    width: 100%;
}

.contact-info-card {
    background: rgba(20, 20, 20, 0.7);
    border-radius: 20px;
    padding: 22px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(107, 114, 128, 0.3);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-card:hover::before {
    opacity: 1;
}

.contact-icon-wrapper {
    flex-shrink: 0;
}

.contact-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    background: rgba(107, 114, 128, 0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon-circle {
    background: rgba(107, 114, 128, 0.2);
    transform: scale(1.1);
}

.contact-content {
    flex: 1;
}

.contact-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
    margin-top: 0.4rem;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.contact-social-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: stretch;
    width: 100%;
}

.social-section {
    background: rgba(20, 20, 20, 0.7);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.social-section h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.social-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.social-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 34px;
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.social-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(107, 114, 128, 0.3);
}

.social-icon {
    width: 72px;
    height: 72px;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.social-card:hover .social-icon {
    background: rgba(107, 114, 128, 0.2);
    transform: scale(1.1);
}

.social-info {
    font-size: 1.1rem;
}

.social-info h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.social-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.social-arrow {
    color: var(--accent-color);
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.social-card:hover .social-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===========================================
   MOBILE FIXES FOR CONTACT SECTION
   =========================================== */
@media (max-width: 992px) {
    .contact-section {
        padding: 60px 0 15px !important;
        min-height: auto;
    }
    
    .contact-container {
        padding: 0 20px !important;
    }
    
    .contact-header {
        margin-bottom: 40px !important;
    }
    
    .contact-title {
        font-size: clamp(3rem, 8vw, 5rem) !important;
        margin-bottom: 15px;
    }
    
    .contact-subtitle {
        font-size: 1rem !important;
        padding: 0 10px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        margin-bottom: 24px !important;
    }

    .contact-highlight {
        margin-bottom: 32px;
    }

    .contact-highlight-card {
        padding: 30px !important;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .highlight-badge {
        margin: 0 auto;
    }

    .highlight-text {
        max-width: 520px;
    }

    .contact-cta-wrapper {
        width: 100%;
        justify-content: center;
    }
    
    .contact-info-wrapper {
        gap: 20px !important;
        align-items: stretch;
        width: 100%;
    }

    .contact-info-card {
        padding: 22px !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .contact-icon-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .contact-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-content h3 {
        font-size: 1.3rem !important;
        text-align: center;
        width: 100%;
    }
    
    .contact-link {
        font-size: 0.95rem !important;
        text-align: center;
    }
    
    .contact-description {
        font-size: 0.85rem !important;
        text-align: center;
    }
    
    .contact-social-wrapper {
        gap: 30px !important;
        width: 100%;
    }
    
    .social-section {
        padding: 20px !important;
    }
    
    .social-section h3 {
        font-size: 1.4rem !important;
        text-align: center;
    }
    
    .social-section p {
        font-size: 0.95rem !important;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .social-grid {
        gap: 18px !important;
    }
    
    .social-card {
        padding: 22px !important;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .social-icon {
        width: 58px;
        height: 58px;
        margin: 0 auto;
    }
    
    .social-info h4 {
        font-size: 1.1rem !important;
        text-align: center;
    }
    
    .social-info p {
        font-size: 0.85rem !important;
        text-align: center;
    }
    
    .social-arrow {
        display: none;
    }

    .skills-section {
        margin-top: 40px !important; /* Add spacing for tablet layout */
        padding-top: 15px !important;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 50px 0 12px !important;
    }
    
    .contact-info-card {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 0 10px !important;
    }
    
    .contact-container {
        padding: 0 15px !important;
    }
    
    .contact-title {
        font-size: clamp(2.4rem, 8vw, 5rem) !important;
    }
    
    .contact-info-card {
        padding: 15px !important;
    }

    .contact-cta-wrapper {
        width: 100%;
    }
    
    .contact-icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-content h3 {
        font-size: 1.2rem !important;
    }
    
    .contact-link {
        font-size: 0.95rem !important;
    }
    
    .social-card {
        padding: 20px !important;
    }
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: #000;
    padding: 50px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-logo h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.7rem;
    color: white;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-note {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===========================================
   MOBILE FIXES FOR ABOUT SECTION
   =========================================== */
@media (max-width: 992px) {
    .about-dark {
        margin-top: 0 !important;
        padding: 20px 0 !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    .about-content-wrapper {
        transform: none !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
    }
    
    .about-full-width {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 0 15px !important;
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }
    
    .name-animation-container,
    .about-paragraph-full {
        width: 100% !important;
        min-width: 100% !important;
        padding: 0 !important;
        transform: none !important;
    }
    
    .name-animation {
        width: 100% !important;
        height: 250px !important;
        font-size: 18px !important;
        line-height: 16px !important;
        transform: none !important;
        margin: 0 auto 20px auto !important;
        padding: 15px !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow: hidden !important;
    }
    
    #name-animation {
        transform: none !important;
        height: 250px !important;
        min-height: 250px !important;
    }
    
    .paragraph-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .about-paragraph-full p {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.2rem !important;
    }
    
    .reveal-text {
        width: 100% !important;
        font-size: 1.1rem !important;
        font-weight: 400 !important;
    }
    
    .about-details-full {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 20px !important;
    }

    .detail-item-full {
        padding: 16px !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .detail-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
    }

    .detail-content {
        flex: 1 !important;
        min-width: 0 !important; /* Prevents flex item from overflowing */
    }

    .detail-item-full h3 {
        font-size: 0.95rem !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }

    .detail-item-full:hover {
        transform: none !important; /* Disable hover transform on mobile */
    }

    .skills-heading-container {
        transform: translateY(-74px);
    }
}

@media (max-width: 768px) {
    .about-static-container {
        padding: 10px 0 !important;
        margin-bottom: 20px !important;
    }

    .static-about-heading {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
    }

    .about-paragraph-full p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    .reveal-text {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .about-full-width {
        padding: 0 15px !important;
    }

    .skills-section {
        margin-top: 50px !important; /* Add top margin on mobile to prevent overlap */
        padding-top: 20px !important;
    }
    
    .name-animation {
        font-size: 16px !important;
        line-height: 14px !important;
        height: 200px !important;
        min-height: 200px !important;
        padding: 10px !important;
    }
    
    #name-animation {
        height: 200px !important;
        min-height: 200px !important;
    }
    
    .about-paragraph-full p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
}

/* Keep original body overflow */
body {
    overflow-x: hidden;
}

/* ===========================================
   HEIGHT-BASED MEDIA QUERIES
   Fix for screens with height < 850px
   =========================================== */

/* For screens with limited height */
@media (max-height: 850px) {
    /* Make navigation menu scrollable */
    .menu {
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 1.5em;
    }
    
    .menu-inner {
        overflow-y: visible;
        overflow-x: visible;
        min-height: 100%;
        height: auto;
    }
    
    /* Adjust menu link heading size */
    .menu-link-heading {
        font-size: 4em;
    }
    
    /* Reduce accordion max-height */
    .accordions {
        max-height: 50vh;
        overflow-y: auto;
    }
    
    /* Ensure about section cards are visible */
    .about-details-full {
        margin-top: 20px;
        gap: 20px;
    }
    
    .about-dark {
        min-height: auto;
        padding-bottom: 40px;
    }
    
    /* Reduce menu padding for better space utilization */
    .menu {
        padding-top: calc(2 * var(--menu-padding));
        grid-row-gap: 3em;
    }
}

/* For very small height screens */
@media (max-height: 700px) {
    /* Further compress navigation menu */
    .menu-link-heading {
        font-size: 3.5em;
    }
    
    .menu {
        padding-top: calc(1.5 * var(--menu-padding));
        grid-row-gap: 2em;
    }
    
    /* Reduce card padding */
    .detail-item-full {
        padding: 15px;
    }
    
    /* Further reduce accordion height */
    .accordions {
        max-height: 40vh;
    }
    
    /* Compact about section spacing */
    .about-details-full {
        margin-top: 15px;
        gap: 15px;
    }
}

/* For extremely small height screens */
@media (max-height: 600px) {
    .menu-link-heading {
        font-size: 3em;
    }
    
    .menu {
        padding-top: var(--menu-padding);
        padding-bottom: 1em;
        grid-row-gap: 1.5em;
    }
    
    .menu-link {
        padding-top: .5em;
        padding-bottom: .5em;
    }
    
    .accordions {
        max-height: 35vh;
    }
    
    .detail-item-full {
        padding: 12px;
        gap: 12px;
    }
    
    .detail-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}