:root {
  --bg: #0a1224;
  --bg-secondary: #0c0d11;
  --border: #202229;
  --text: #f1f1f3;
  --text-secondary: #8d909a;
  --text-muted: #686b75;
  --accent: #6675ff;
  --accent-light: #7c8aff;
  --green: #31d98b;
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color:#6675ff ;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}
/*Loading CSS*/
#websiteLoader {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100vh;

    /* Theme background overlay with blur using var(--bg) */
    background: rgba(10, 18, 36, 0.88); /* #0a1224 background tone */

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    opacity: 1;
    visibility: visible;
    pointer-events: all;

    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#websiteLoader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-signature {
    width: min(92vw, 1100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-signature svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

#signaturePath {
    fill: none;
    
    /* Root theme accent color (#6675ff) */
    stroke: var(--accent, #6675ff);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: var(--signature-length, 6000);
    stroke-dashoffset: var(--signature-length, 6000);

    /* Infinite drawing loop */
    animation: drawAndLoop 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Continuous writing animation loop */
@keyframes drawAndLoop {
    0% {
        stroke-dashoffset: var(--signature-length, 6000);
    }
    75% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    88% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    96% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: var(--signature-length, 6000);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .loader-signature {
        width: 96vw;
    }

    #signaturePath {
        stroke-width: 5;
    }
}
/* Header */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    padding: 12px 24px;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    box-sizing: border-box;
}

.nav-container {
    width: fit-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand {
    position: sticky;
    top: 12px;
    z-index: 10001;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(18, 25, 38, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
    white-space: nowrap;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.brand-icon {
    font-family: "Fira Code", monospace;
    font-size: 20px;
    font-weight: 700;
    color: #61d9ff;
    line-height: 1;
    white-space: nowrap;
}

.brand-name {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.brand:hover {
    background: rgba(25, 38, 55, 0.8);
    border-color: rgba(97, 217, 255, 0.35);
}

.brand:hover .brand-name {
    color: #61d9ff;
}

@media (max-width: 600px) {
    .navbar {
        padding: 10px 12px;
    }

    .brand {
        gap: 9px;
        padding: 7px 10px;
    }

    .brand-icon {
        font-size: 18px;
    }

    .brand-name {
        font-size: 14px;
    }
}

.floating-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 8px 10px;
    border: 1px solid rgba(155, 184, 220, 0.2);
    border-radius: 14px;
    background: rgba(9, 14, 24, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.floating-nav-drag {
    display: grid;
    grid-template-columns: repeat(2, 3px);
    align-content: center;
    justify-content: center;
    gap: 3px;
    width: 20px;
    height: 34px;
    flex-shrink: 0;
    padding: 5px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: grab;
    touch-action: none;
}

.floating-nav-drag span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #8494aa;
}

.floating-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.floating-links a,
.floating-resume {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 35px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #c0cada;
    background: transparent;
    font: 500 12px "Inter", sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s ease;
}

.floating-links a:hover,
.floating-links a.active {
    color: #61d9ff;
    background: rgba(97, 217, 255, 0.09);
}

.floating-links a.active {
    border-color: rgba(97, 217, 255, 0.18);
}

.floating-divider {
    width: 1px;
    height: 23px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
}

.floating-icon-link {
    display: grid;
    place-items: center;
    width: 34px;
    height: 35px;
    flex-shrink: 0;
    border-radius: 8px;
    color: #c0cada;
    transition: 0.2s ease;
}

.floating-icon-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.floating-icon-link:hover {
    color: #61d9ff;
    background: rgba(97, 217, 255, 0.09);
}

.floating-resume {
    border-color: rgba(155, 184, 220, 0.2);
    color: #f1f5fb;
    background: rgba(255, 255, 255, 0.04);
}

.floating-resume span {
    color: #61d9ff;
    font-size: 15px;
}

.floating-resume:hover {
    border-color: #61d9ff;
    color: #61d9ff;
}
/* Keep floating navbar above all page sections */
.floating-nav {
    position: fixed !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

/* Keep drag handle interactive */
.floating-nav-drag {
    position: relative;
    z-index: 100000;
    pointer-events: auto !important;
    cursor: grab;
    touch-action: none;
}

.floating-nav-drag:active {
    cursor: grabbing;
}

.hero-section {
    z-index: auto;
}

.hero-section::before,
.hero-section::after {
    pointer-events: none;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 500px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #06142e;
}

.identity-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 1400px;
    background:
        radial-gradient(ellipse at center, #102b55 0%, #071a38 55%, #030b1c 100%);
}

.identity-tiles {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 18px;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 2;
}

.identity-tile {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden; 
    perspective: 1000px;
    transform-style: preserve-3d;
}

.tile-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.tile-face {
    width: 100%;
    height: 100%;
}

.identity-tile {
    --tile-depth-half: calc(50% - 5px);
}

.identity-tile {
    position: relative;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    transform-style: preserve-3d;
    overflow: visible;
    opacity: 0;
    transform: scale(0.7) translateZ(-80px);
    box-sizing: border-box;
}

.identity-tile.tile-visible {
    animation: tilePop 750ms cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes tilePop {
    0% {
        opacity: 0;
        transform: scale(.65) translateZ(-100px);
        filter: blur(8px);
    }
    65% {
        opacity: 1;
        transform: scale(1.06) translateZ(25px);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
        filter: blur(0);
    }
}

.tile-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    transform-style: preserve-3d;
    transform: rotateY(0deg);

    will-change: transform;
}

.tile-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: clamp(8px, 1.3vw, 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 1px solid rgba(116, 190, 255, .35);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(24, 65, 112, .96), rgba(5, 19, 43, .98));
    color: #eaf5ff;
    text-align: center;
    box-shadow:
        inset 0 0 30px rgba(52, 145, 255, .12),
        0 0 22px rgba(20, 110, 220, .12);
    
}
.identity-tile {
    --tile-depth-half: 100px;
}

.tile-face {
    transform-origin: center;
}

.tile-front {
    transform: rotateY(0deg) translateZ(var(--tile-depth-half));
}

.tile-right {
    transform: rotateY(90deg) translateZ(var(--tile-depth-half));
}

.tile-back {
    transform: rotateY(180deg) translateZ(var(--tile-depth-half));
}

.tile-left {
    transform: rotateY(-90deg) translateZ(var(--tile-depth-half));
}
.tile-icon {
    font-size: clamp(24px, 3.2vw, 48px);
    line-height: 1;
    color: #70c4ff;
    text-shadow: 0 0 18px rgba(65, 164, 255, .65);
}

.tile-title {
    font-size: clamp(11px, 1.15vw, 17px);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffffff;
}

.tile-subtitle {
    font-size: clamp(8px, .75vw, 12px);
    line-height: 1.5;
    color: #a9c9e9;
    max-width: 95%;
}

.tile-code {
    width: 100%;
    max-width: 180px;
    padding: 9px;
    border: 1px solid rgba(91, 171, 255, .2);
    border-radius: 7px;
    background: rgba(0, 8, 22, .65);
    color: #9ce4ff;
    font-family: Consolas, monospace;
    font-size: clamp(6px, .6vw, 10px);
    line-height: 0.9;
    text-align: left;
    overflow: hidden;
}

.tile-bars {
    width: 80%;
    height: 65px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 7px;
}

.tile-bars span {
    flex: 1;
    max-width: 20px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, #1688ff, #77d9ff);
    box-shadow: 0 0 12px rgba(44, 153, 255, .3);
}

.tile-network {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tile-network span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #6dcaff;
    box-shadow: 0 0 12px #269cff;
}


.identity-photo {
    position: absolute;
    left: 25%;
    top: 25%;
    width: 50%;
    height: 75%;
    z-index: 8;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    border-radius: 5px;
}

.identity-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit:cover;
    object-position: center;
}

.identity-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(124, 194, 255, .35);
    box-shadow: inset 0 0 35px rgba(0, 15, 40, .15);
}

.identity-caption {
    position: absolute;
    z-index: 12;
    left: 50%;
    bottom: 2.5%;
    width: min(90%, 850px);
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    pointer-events: none;
    text-shadow: 0 2px 15px rgba(0, 0, 0, .7);
}

.identity-caption span {
    display: block;
    margin-bottom: 7px;
    color: #a9d8ff;
    font-size: clamp(8px, .85vw, 12px);
    font-weight: 700;
    letter-spacing: .2em;
}

.identity-caption h1 {
    margin: 0;
    font-size: clamp(23px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: .04em;
}

.identity-caption p {
    margin: 8px 0 0;
    color: #c5e4ff;
    font-size: clamp(8px, .85vw, 12px);
    letter-spacing: .12em;
}
@media (max-width: 700px) {
    .hero-section {
        min-height: 480px;
    }

    .tile-face {
        padding: 5px;
        gap: 6px;
    }

    .tile-icon {
        font-size: clamp(18px, 5vw, 30px);
    }

    .tile-title {
        font-size: clamp(8px, 2vw, 12px);
        letter-spacing: .02em;
    }

    .tile-subtitle {
        font-size: 7px;
    }

    .tile-code {
        font-size: 7px;
        padding: 4px;
    }

    .tile-bars {
        height: 35px;
        gap: 3px;
    }

    .tile-network {
        gap: 5px;
    }

    .tile-network span {
        width: 7px;
        height: 7px;
    }

    .identity-caption {
        bottom: 1%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .identity-tile.tile-visible {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .identity-opening {
        transition: none;
    }
}

/* Keep navbar links clickable */
.floating-nav a,
.floating-nav button {
    pointer-events: auto;
}
/* Mobile floating navbar: two rows */
@media (max-width: 700px) {
    .floating-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: calc(100vw - 32px);
        max-width: 360px;
        gap: 4px;
        padding: 8px 10px;
        overflow: visible;
        white-space: normal;
    }
    .floating-nav-drag {
        order: 1;
        flex: 0 0 16px;
    }

    .floating-links {
        order: 2;
        display: flex;
        flex: 1 1 auto;
        justify-content: space-around;
        flex-wrap: nowrap;
        gap: 0;
    }

    .floating-links a {
        padding: 0 5px;
        min-height: 28px;
        font-size: 14px;
        flex: 0 0 auto;
    }

    /* Second row: GitHub, LinkedIn, Resume */
    .floating-divider {
        display: none;
    }

    .floating-icon-link,
    .floating-resume {
        order: 3;
        flex: 0 0 auto;
        min-height: 28px;
    }

    .floating-icon-link {
        width: 32px;
    }

    .floating-icon-link svg {
        width: 15px;
        height: 15px;
    }

    .floating-resume {
        padding: 0 10px;
        font-size: 10px;
    }
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 100px;
}

.footer-container {
  width: min(100% - 40px, var(--container));
  margin: auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
}

section {
  scroll-margin-top: 90px;
}

.section-container {
  width: min(100% - 40px, var(--container));
  margin: auto;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 55px;
}

.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.section-heading h2 {
  margin-bottom: 14px;
  color: #f4f4f5;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 14px;
}

.hero-placeholder {
  min-height: 90px;
}

.skills-section,
.projects-section,
.journey-section,
.education-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
/* =========================
   FULL-SCREEN HERO
========================= */

.hero-section {
    --hero-accent: #61d9ff;
    --hero-bg: #080b12;

    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;

    margin: 0;
    padding: clamp(16px, 2.5vh, 28px)
             clamp(20px, 5vw, 76px)
             16px;

    overflow: hidden;
    box-sizing: border-box;

    color: #f4f7fc;

    background:
        radial-gradient(
            ellipse at 78% 48%,
            rgba(15, 49, 99, 0.65),
            transparent 43%
        ),
        linear-gradient(
            115deg,
            #070a10,
            #0a1020 65%,
            #070b13
        );
}

.hero-section *,
.hero-section *::before,
.hero-section *::after {
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 900px) {
    .hero-section {
        padding-right: 28px;
        padding-left: 28px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero-section {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* Short screens: still fill the viewport */
@media (max-height: 768px) {
    .hero-section {
        height: 100vh;
        height: 100svh;
        min-height: 0;
        overflow: hidden;
    }
}
/*AboutArea*/
.about-section {
  padding: 90px 0 110px;
  border-bottom: 1px solid var(--border);
}

.about-content {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 70px;
  align-items: center;
}

.about-profile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.profile-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 0.82;
  padding: 10px;
  border: 1px solid #252832;
  border-radius: 15px;
  background: #0b0d11;
  overflow: hidden;
}

.profile-image-wrapper::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 35%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}

.profile-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 9px;
}

.profile-status {
  position: relative;
  left: 28px;
  right: 28px;
  bottom: 27px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d4d5da;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(49, 217, 139, 0.5);
}

.about-text {
  max-width: 620px;
}

.about-text::before {
  display: block;
  margin-bottom: 24px;
  color: var(--accent-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
}

.about-text h3 {
  max-width: 600px;
  margin: 0 0 25px;
  color: #f3f3f5;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -1.8px;
}

.about-text > p {
  margin: 0 0 7px;
  color: #9296a3;
  font-size: 14px;
  line-height: 1.75;
}

.about-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 35px;
  border: 1px solid #20232b;
  border-radius: 12px;
  overflow: hidden;
}

.info-card {
  min-height: 70px;
  padding: 17px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.info-card:nth-child(1),
.info-card:nth-child(2) {
  border-bottom: 1px solid #20232b;
}

.info-card:nth-child(odd) {
  border-right: 1px solid #20232b;
}

.info-label {
  margin-bottom: 5px;
  color: #686d7a;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 1.2px;
}

.info-card strong {
  color: #e1e2e6;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 300px 1fr;
    gap: 45px;
  }

  .about-text h3 {
    font-size: 34px;
  }
}

@media (max-width: 700px) {
  .about-section {
    padding: 70px 0 80px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-profile {
    max-width: 330px;
    margin: auto;
  }

  .about-text {
    max-width: none;
  }

  .about-text h3 {
    font-size: 35px;
  }
}

@media (max-width: 500px) {
  .about-info-grid {
    grid-template-columns: 1fr;
  }

  .info-card:nth-child(odd) {
    border-right: 0;
  }

  .info-card:nth-child(1),
  .info-card:nth-child(2),
  .info-card:nth-child(3) {
    border-bottom: 1px solid #20232b;
  }

  .info-card:nth-child(4) {
    border-bottom: 0;
  }

  .about-text h3 {
    font-size: 31px;
  }

  .about-text > p {
    font-size: 13px;
  }
}
.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.skill-category,
.education-card {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0b1d3b;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.skill-number {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.skill-category h3 {
  font-size: 15px;
}

.skill-list,
.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag,
.project-technologies span {
  padding: 6px 9px;
  border: 1px solid #242731;
  border-radius: 6px;
  background: #101217;
  color: #aeb0b9;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0b0d11;
}

.project-preview {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #07080b;
}

.preview-browser-bar {
  height: 36px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #0e1015;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b3e47;
}

.preview-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666a75;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
}

.project-image-container {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f535e;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.project-content {
  padding: 24px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.project-category {
  color: var(--accent-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #777b86;
  font-size: 9px;
}

.project-status span {
  width: 5px;
  height: 5px;
}

.project-title {
  margin-bottom: 9px;
  font-size: 21px;
}

.project-description {
  min-height: 68px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.75;
}

.project-technologies {
  margin: 18px 0;
}

.project-actions,
.contact-actions {
  display: flex;
  gap: 8px;
}

.project-btn,
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
}

.project-btn.primary,
.contact-btn.primary {
  background: #e9e9ec;
  color: #0a0b0e;
}

.project-btn.secondary,
.contact-btn.secondary {
  border: 1px solid #292c35;
  background: #101217;
  color: #bfc1c9;
  margin: 20px;
}
.project-btn.primary{
    margin: 20px;
}

.journey-timeline {
  max-width: 850px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 30px 1fr;
  min-height: 125px;
}

.timeline-year {
  color: var(--accent-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.timeline-line {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 0;
  width: 1px;
  background: #272a33;
}

.timeline-line span {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-content {
  padding-left: 25px;
}

.timeline-content h3 {
  margin-bottom: 7px;
  font-size: 15px;
}

.timeline-organization {
  display: block;
  margin-bottom: 7px;
  color: #777b86;
  font-size: 10px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 12px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.education-period {
  color: var(--accent-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}

.education-card h3 {
  margin-top: 25px;
  font-size: 21px;
}

.education-card h4 {
  margin-top: 4px;
  color: #b4b6be;
  font-size: 13px;
  font-weight: 500;
}

.education-card p {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 11px;
}

.education-status {
  display: inline-block;
  margin-top: 15px;
  padding: 5px 8px;
  border: 1px solid #252934;
  border-radius: 5px;
  color: #777b86;
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
}

.contact-section {
  padding: 120px 0;
}

.contact-card {
  padding: 70px 50px;
  text-align: center;
  border: 1px solid #252936;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(102, 117, 255, 0.1),
      transparent 55%
    ),
    #0b0d11;
}

.contact-card h2 {
  margin-bottom: 15px;
  font-size: clamp(30px, 4vw, 46px);
}

.contact-card p {
  max-width: 550px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
  font-size: 13px;
}

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

@media (max-width: 850px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .availability {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-profile {
    align-items: flex-start;
  }

  .profile-image-wrapper {
    width: 190px;
    height: 190px;
  }

  .skills-grid,
  .projects-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container,
  .section-container,
  .footer-container {
    width: min(100% - 28px, var(--container));
  }

  .social-link {
    display: none;
  }

  .about-info-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 18px;
  }

  .timeline-item {
    grid-template-columns: 55px 20px 1fr;
  }

  .timeline-content {
    padding-left: 15px;
  }

  .about-section,
  .skills-section,
  .projects-section,
  .journey-section,
  .education-section,
  .contact-section {
    padding: 80px 0;
  }

  .contact-card {
    padding: 50px 20px;
  }

  .contact-actions,
  .project-actions {
    flex-direction: column;
  }

  .contact-btn,
  .project-btn {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 20px 0;
  }
  .project-btn.secondary,.contact-btn.secondary, .project-btn.primary{
  margin: 10px;
  margin-right: 10px;
  width: 70%;
}
}

/* SkillsCSS*/
.skills-section {
  padding: 100px 0 110px;
  border-bottom: 1px solid var(--border);
}

.skills-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.skills-overview-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 25px;
  background: #0b0d11;
}

.skills-overview-card + .skills-overview-card {
  border-left: 1px solid var(--border);
}

.overview-number {
  color: #f1f1f3;
  font-size: 27px;
  font-weight: 600;
}

.overview-label {
  color: var(--text-secondary);
  font-size: 11px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-category {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0b1d3b;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.skill-category:hover {
  border-color: #353b59;
  transform: translateY(-3px);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.skill-number {
  color: var(--accent-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.skill-category-header h3 {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.skill-count {
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 7px 10px;
  border: 1px solid #252832;
  border-radius: 6px;
  background: #101217;
  color: #bfc1ca;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.skills-approach-section {
  padding: 75px 0;
  border-bottom: 1px solid var(--border);
}

.skills-approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 25px;
}

.skills-approach h2 {
  max-width: 450px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.skills-approach p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.9;
}

.about-journey-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #e5e5e9;
  font-size: 12px;
  font-weight: 600;
}

.about-journey-link span {
  color: var(--accent-light);
  font-size: 17px;
  transition: transform 0.2s;
}

.about-journey-link:hover span {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .skills-section {
    padding: 70px 0 80px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-overview-card {
    padding: 16px 12px;
  }

  .overview-number {
    font-size: 22px;
  }

  .overview-label {
    font-size: 10px;
  }

  .skills-approach {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 400px) {
  .skills-overview-card {
    padding: 14px 8px;
  }

  .overview-number {
    font-size: 19px;
  }

  .overview-label {
    font-size: 9px;
  }

  .skill-category {
    padding: 20px;
  }
}

/*ProjectsCSS*/

.projects-section {
  padding: 100px 0 110px;
  border-bottom: 1px solid var(--border);
}

.projects-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.projects-summary > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 22px 25px;
  background: #0b0d11;
}

.projects-summary > div + div {
  border-left: 1px solid var(--border);
}

.summary-number {
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
}

.summary-label {
  color: var(--text-secondary);
  font-size: 11px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #0b1d3b;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #353b59;
}

.project-image-container {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #08090c;
}

.project-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s;
}

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

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.project-content {
  padding: 24px;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.project-features li {
  color: var(--text-secondary);
  font-size: 11px;
}

.project-features li::before {
  content: "↗";
  margin-right: 7px;
  color: var(--accent-light);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.project-btn {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
}

.project-btn.primary {
  background: #e9e9ec;
  color: #0a0b0e;
}

.project-btn.secondary {
  border: 1px solid #292c35;
  background: #101217;
  color: #c4c6ce;
}

.project-btn:hover {
  opacity: 0.85;
}

.projects-contact {
  padding: 80px 0;
}

@media (max-width: 700px) {
  .projects-section {
    padding: 70px 0 80px;
  }

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

  .projects-summary > div {
    padding: 16px 12px;
  }

  .summary-number {
    font-size: 21px;
  }

  .summary-label {
    font-size: 10px;
  }

  .project-content {
    padding: 19px;
  }
}

@media (max-width: 400px) {
  .projects-summary > div {
    padding: 13px 8px;
  }

  .summary-number {
    font-size: 18px;
  }

  .summary-label {
    font-size: 9px;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-btn {
    width: 100%;
  }
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #0b0d11;
  color: var(--text-secondary);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #e9e9ec;
  border-color: #e9e9ec;
  color: #08090c;
}

.project-card.hidden {
  display: none;
}

@media (max-width: 500px) {
  .project-filters {
    gap: 7px;
  }

  .filter-btn {
    padding: 8px 11px;
  }
}

/*specific Project*/

.project-card-link {
  display: block;
  color: inherit;
}

.project-details-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: #dfe0e6;
  font-size: 11px;
  font-weight: 600;
}

.project-details-link span {
  color: var(--accent-light);
  font-size: 17px;
}

.project-more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: #dfe0e6;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.project-more-link span {
  color: var(--accent-light);
  font-size: 17px;
}


.back-projects {
  display: inline-block;
  margin-bottom: 35px;
  color: var(--text-secondary);
  font-size: 12px;
}

.back-projects:hover {
  color: white;
}

.specific-project-section {
  padding: 65px 0 100px;
}

.specific-project-header {
  max-width: 800px;
  margin-bottom: 45px;
}

.specific-project-header h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.specific-project-header > p,
.project-detail-block > p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.9;
}

.specific-project-header .project-technologies {
  margin: 24px 0;
}

.specific-project-cover {
  overflow: hidden;
  margin-bottom: 55px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0b0d11;
}

.specific-project-cover img {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.specific-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 60px;
  align-items: start;
}

.specific-project-main {
  min-width: 0;
}

.project-detail-block {
  margin-bottom: 55px;
}

.project-detail-block h2 {
  margin: 8px 0 18px;
  font-size: 27px;
}

.detail-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-feature {
  display: flex;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0b0d11;
}

.detail-feature span {
  color: var(--accent-light);
}

.detail-feature p {
  color: #c6c8d0;
  font-size: 12px;
}

.specific-project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.specific-project-gallery figure {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0b0d11;
}

.specific-project-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.specific-project-gallery figcaption {
  padding: 12px;
  color: var(--text-secondary);
  font-size: 11px;
}

.project-info-card {
  position: sticky;
  top: 100px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0b0d11;
}

.project-info-card > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.project-info-card > div:last-child {
  border-bottom: 0;
}

.project-info-card > div span {
  color: var(--text-muted);
  font-size: 10px;
}

.project-info-card > div strong {
  color: #e4e5e9;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 750px) {
  .specific-project-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .specific-project-sidebar {
    grid-row: 1;
  }

  .project-info-card {
    position: static;
  }

  .specific-project-gallery,
  .detail-feature-list {
    grid-template-columns: 1fr;
  }

  .specific-project-section {
    padding-top: 40px;
  }
}

/*Contact*/

.contact-section {
  min-height: 80vh;
  padding: 80px 24px 100px;
  color: #f4f5f7;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-header {
  max-width: 700px;
  margin-bottom: 55px;
}

.section-label {
  color: #65aaff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.contact-header h1 {
  margin: 16px 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -2px;
}

.contact-header h1 span {
  color: #65aaff;
}

.contact-header > p,
.contact-info-heading > p {
  color: #9298a6;
  font-size: 14px;
  line-height: 1.9;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 55px;
  align-items: start;
}

.contact-info-heading h2,
.contact-form-wrapper h2 {
  margin: 12px 0;
  font-size: 25px;
  letter-spacing: -0.6px;
}

.contact-info-heading {
  margin-bottom: 25px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #242730;
  color: inherit;
  text-decoration: none;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid #293b60;
  border-radius: 10px;
  background: #101726;
  color: #65aaff;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.contact-info-card > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-info-card > div:nth-child(2) > span {
  color: #8e94a2;
  font-size: 11px;
}

.contact-info-card strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 500;
}

.contact-arrow {
  color: #65aaff;
}

.contact-info-card:hover strong {
  color: #65aaff;
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 17px;
  border: 1px solid #242730;
  border-radius: 10px;
  background: #0c0e12;
}

.availability-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #54d69a;
  box-shadow: 0 0 10px #54d69a55;
}

.contact-availability strong {
  font-size: 12px;
}

.contact-availability p {
  margin-top: 5px;
  color: #8e94a2;
  font-size: 11px;
  line-height: 1.6;
}

.contact-form-wrapper {
  padding: 30px;
  border: 1px solid #252832;
  border-radius: 14px;
  background: #0b0d11;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.form-group label {
  color: #d7dae2;
  font-size: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #292c36;
  border-radius: 8px;
  outline: none;
  background: #08090c;
  color: #f4f5f7;
  font: inherit;
  font-size: 13px;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #626876;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #5798ff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  padding: 14px 17px;
  border: 1px solid #5798ff;
  border-radius: 8px;
  background: #5798ff;
  color: #080b11;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-submit:hover {
  background: #79b0ff;
}

.contact-submit span:last-child {
  font-size: 18px;
}

.form-note {
  color: #777e8d;
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .contact-section {
    padding: 55px 20px 70px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-header {
    margin-bottom: 35px;
  }

  .contact-form-wrapper {
    padding: 23px;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding-inline: 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 19px;
  }

  .contact-header h1 {
    letter-spacing: -1px;
  }
}


/*Gallery*/
/* =================================
   COLLEGE-STYLE PHOTO COLLAGE
================================= */

.photo-collage {
    width: 100%;
    min-height: 100vh;
    padding: 110px 24px 40px;
    box-sizing: border-box;

    background:
        radial-gradient(
            ellipse at 78% 20%,
            rgba(15, 49, 99, 0.22),
            transparent 45%
        ),
        linear-gradient(115deg, #070a10, #0a1020 65%, #070b13);
}

.collage-grid {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 10px;

    grid-auto-flow: dense;
}

.collage-item {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 12px;

    background: #111827;
}

.collage-item img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.collage-item:hover img {
    transform: scale(1.04);
}

/* Different collage sizes */

.collage-large {
    grid-column: span 2;
    grid-row: span 2;
}

.collage-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.collage-small {
    grid-column: span 1;
    grid-row: span 1;
}

.collage-wide {
    grid-column: span 2;
    grid-row: span 1;
}

/* Tablet */

@media (max-width: 900px) {
    .photo-collage {
        padding: 110px 18px 30px;
    }

    .collage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 170px;
        gap: 8px;
    }

    .collage-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .collage-wide {
        grid-column: span 2;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .photo-collage {
        padding: 125px 10px 20px;
    }

    .collage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 145px;
        gap: 6px;
    }

    .collage-item {
        border-radius: 8px;
    }

    .collage-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .collage-medium,
    .collage-small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .collage-wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .collage-item img {
        transition: none;
    }
}

/* =================================
   ABOUT PAGE PHOTO PREVIEW
================================= */

.about-photo-preview {
    padding: 90px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 12, 22, 0.35);
}

.photo-preview-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.photo-preview-heading h2 {
    margin: 8px 0 0;
    color: #f4f7fc;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.photo-preview-heading h2 span {
    color: #61d9ff;
}

/* Asymmetric photo collage */

.about-photo-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: repeat(2, 180px);
    grid-template-areas:
        "large college life"
        "large people life";
    gap: 12px;
}

.about-photo {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: #111827;
}

.about-photo-large {
    grid-area: large;
}

.about-photo:nth-child(2) {
    grid-area: college;
}

.about-photo:nth-child(3) {
    grid-area: life;
}

.about-photo:nth-child(4) {
    grid-area: people;
}

.about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.about-photo:hover img {
    transform: scale(1.04);
}

/* Gallery button */

.photo-preview-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.view-gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px 20px;
    border: 1px solid rgba(97, 217, 255, 0.3);
    border-radius: 9px;
    color: #61d9ff;
    background: rgba(97, 217, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

.view-gallery-btn span {
    font-size: 17px;
}

.view-gallery-btn:hover {
    transform: translateY(-2px);
    border-color: #61d9ff;
    background: rgba(97, 217, 255, 0.12);
}

/* Tablet */

@media (max-width: 900px) {
    .about-photo-grid {
        grid-template-columns: 1.15fr 1fr;
        grid-template-rows: repeat(3, 170px);
        grid-template-areas:
            "large college"
            "large life"
            "people people";
    }

    .about-photo:nth-child(4) {
        grid-area: people;
    }
}

/* Mobile */

@media (max-width: 560px) {
    .about-photo-preview {
        padding: 60px 0;
    }

    .photo-preview-heading {
        margin-bottom: 22px;
    }

    .about-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 180px 125px 150px;
        grid-template-areas:
            "large large"
            "college life"
            "people people";
        gap: 9px;
    }

    .about-photo {
        border-radius: 9px;
    }

    /* Keep the main photo horizontal on mobile */
    .about-photo-large img {
        object-position: center 40%;
    }

    .view-gallery-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-photo img,
    .view-gallery-btn {
        transition: none;
    }

    .about-photo:hover img,
    .view-gallery-btn:hover {
        transform: none;
    }
}
