/* ============================================
   1. FONTS & VARIABLES
   ============================================ */

/* Custom Rostex Font */
@font-face {
    font-family: 'Rostex';
    src: url('assets/fonts/rostex/Rostex-Regular.otf') format('opentype'),
         url('assets/fonts/rostex/Rostex-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Color Palette */
:root {
    --bg: #121214;            /* Dark grey page background */
    --card-bg: #1f1f21;       /* Slightly lighter card background */
    --silver: #c0c0c0;        /* Main silver text */
    --muted-silver: #9e9e9e;  /* Secondary silver */
    --accent: #e03a3a;        /* Red accent */
    --black: #000000;
    --white: #ffffff;
}

/* Light Mode Colors */
body.light-mode {
    --bg: #f5f5f5;
    --card-bg: #ffffff;
    --silver: #333333;
    --muted-silver: #666666;
    --black: #ffffff;
    --white: #000000;
}


/* ============================================
   2. ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.1s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-3 {
    animation-delay: 0.3s;
}

.fade-in-up.delay-4 {
    animation-delay: 0.4s;
}

/* ============================================
   3. BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Trebuchet MS', sans-serif;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--silver);
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Mobile-specific scroll fixes */
@media (max-width: 768px) {
    html {
        scroll-snap-type: y proximity;
    }
    
    section {
        min-height: 100vh;
        min-height: 100dvh;
        height: auto !important;
    }

    /* Global heading overrides for tablet */
    h2, .display-4 {
        font-size: 2rem !important;
        text-align: center !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }
}

/* Phone-specific global overrides */
@media (max-width: 480px) {
    /* Global heading overrides for phone */
    h2, .display-4 {
        font-size: 1.75rem !important;
        text-align: center !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }
}


/* ============================================
   2.5. ACCESSIBILITY
   ============================================ */

/* Skip to main content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: bold;
    border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================
   3. NAVIGATION
   ============================================ */

.custom-navbar {
    background-color: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.custom-navbar .navbar-brand {
    color: var(--white) !important;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Rostex', sans-serif;
}

.custom-navbar .nav-link {
    color: var(--silver) !important;
    text-decoration: none;
    padding: 0.5rem 1rem !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

.custom-navbar .nav-link:hover {
    background-color: rgba(224, 58, 58, 0.08);
    color: var(--white) !important;
}

.custom-navbar .navbar-toggler {
    border-color: var(--silver);
    padding: 0.5rem 0.75rem;
}

.custom-navbar .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(224, 58, 58, 0.25);
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c0c0c0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 1px solid var(--muted-silver);
}

/* Navigation - Tablet & Mobile */
@media (max-width: 991px) {
    .custom-navbar {
        width: 95%;
        padding: 0.5rem 1rem !important;
        border-radius: 15px;
        top: 10px;
    }

    .custom-navbar .navbar-brand {
        font-size: 0.9rem;
    }

    .custom-navbar .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .custom-navbar .navbar-nav {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .custom-navbar .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 5px;
        text-align: center;
        width: 100%;
    }
}

/* Navigation - Phone */
@media (max-width: 480px) {
    .custom-navbar {
        width: 98%;
        top: 10px;
        border-radius: 20px;
    }

    .custom-navbar .navbar-brand {
        font-size: 0.85rem;
    }
}

/* Navigation - Extra small devices */
@media (max-width: 320px) {
    .custom-navbar {
        width: 96%;
        top: 5px;
        border-radius: 15px;
        padding: 0.5rem 0.75rem;
    }

    .custom-navbar .navbar-brand {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .custom-navbar .navbar-brand span {
        display: none;
    }

    .nav-profile-pic {
        width: 30px !important;
        height: 30px !important;
    }

    .custom-navbar .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }

    .custom-navbar .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    /* Hide theme toggle text if any */
    .switch {
        transform: scale(0.8);
    }
}


/* ============================================
   4. HEADER
   ============================================ */

header {
    background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.6));
    color: var(--white);
    padding: 6rem 2rem 4rem 2rem;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: visible;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Banner Container */
.banner-container {
    position: absolute;
    display: flex;
    z-index: 1;
    top: 40%;
    transform: translateY(-50%);
    width: 100%;
    justify-content: center;
    padding: 0 2rem;
}

/* Hero Name Banner - Responsive Typography */
.name-banner {
    font-weight: normal;
    font-family: 'Rostex', 'Rajdhani', sans-serif;
    color: var(--silver);
    white-space: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: clamp(2rem, 8vw, 6rem);
    max-width: 90%;
    text-align: center;
    line-height: 1.2;
}

/* Scroll Down Button - From Uiverse.io by ArturCodeCraft */
.main__action {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.main__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.main__scroll-box {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main__scroll-box svg {
  width: 100%;
  height: 100%;
}

.main__scroll-text {
  color: rgba(28, 28, 30, 1);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main__action:hover .main__scroll-box {
  animation: scroll-down 3s infinite;
}

/* Animate scroll icon */
@keyframes scroll-down {
  0%,
  100% {
    transform: translateY(0rem);
    opacity: 1;
  }

  35% {
    transform: translateY(1rem);
    opacity: 0;
  }

  70% {
    transform: translateY(-1rem);
    opacity: 0;
  }
}

/* Light mode adjustments for scroll button */
body.light-mode .main__scroll-text {
  color: rgba(28, 28, 30, 1);
}

body:not(.light-mode) .main__scroll-text {
  color: rgba(255, 255, 255, 0.9);
}

body:not(.light-mode) .main__scroll-box svg path:last-child {
  fill: rgba(255, 255, 255, 0.9);
}

/* Header Info (Bottom Left) */
.header-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    font-size: 1rem;
    color: var(--white);
    background-color: transparent;
    padding: 0;
}

/* CV Button (Bottom Left) */
.cv-button-container {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 3;
}

/* CV Button Wrapper */
.cv-button-wrapper {
  background-color: #000;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 11rem;
}

@media (min-width: 992px) {
  .cv-button-wrapper {
    margin-top: 11rem;
  }
}

/* Mobile alignment */
@media (max-width: 991px) {
  .cv-button-wrapper {
    margin-top: 4rem;
  }
}

/* CV Button Link Styling */
.cv-button-wrapper a {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid #fff;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-family: 'Rostex', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
}

.cv-button-wrapper a::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% - 12px);
  background-color: #000;
  transition: 0.3s ease-in-out;
  transform: scaleY(1);
}

.cv-button-wrapper a:hover::before {
  transform: scaleY(0);
}

.cv-button-wrapper a::after {
  content: '';
  position: absolute;
  left: 6px;
  top: -2px;
  height: calc(100% + 4px);
  width: calc(100% - 12px);
  background-color: #000;
  transition: 0.3s ease-in-out;
  transform: scaleX(1);
  transition-delay: 0.5s;
}

.cv-button-wrapper a:hover::after {
  transform: scaleX(0);
}

.cv-button-wrapper a span {
  position: relative;
  z-index: 3;
}

/* Light mode adjustments for CV button */
body.light-mode .cv-button-wrapper {
  background-color: #f8f9fa;
}

body.light-mode .cv-button-wrapper a {
  border-color: #000;
  color: #000;
}

body.light-mode .cv-button-wrapper a::before,
body.light-mode .cv-button-wrapper a::after {
  background-color: #f8f9fa;
}

/* CV Modal */
.cv-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cv-modal-content {
  position: relative;
  margin: 2% auto;
  width: 90%;
  max-width: 900px;
  max-height: 95%;
  background-color: #ffffff;
  border-radius: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  padding: 20px;
}

.cv-close {
  position: absolute;
  top: 10px;
  right: 25px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background-color: rgba(0,0,0,0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.3s ease;
}

.cv-close:hover,
.cv-close:focus {
  background-color: var(--accent);
  transform: rotate(90deg);
}

#cvFrame {
  border: none;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  pointer-events: none;
}

/* Profile Image (Bottom Center) */
.profile-image {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(250px, 60vw, 600px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.profile-image.fade-in-up {
    opacity: 0;
    animation: fadeInUpCentered 0.6s ease-out forwards;
    animation-delay: 0.1s;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    display: block;
}

/* Header - Tablet */
@media (max-width: 768px) {
    header {
        min-height: 550px;
        padding: 5rem 1rem 3rem 1rem;
    }

    .banner-container {
        padding: 0 1.5rem;
    }

    .name-banner {
        font-size: clamp(1.5rem, 6vw, 4rem);
        max-width: 95%;
    }

    .profile-image {
        width: 60%;
    }

    .cv-button-container {
        bottom: 1.5rem;
        left: 1.5rem;
    }

    .cv-button {
        font-size: 1.3rem;
    }

    .cv-modal-content {
        width: 95%;
        height: 85%;
        margin: 5% auto;
    }
}

/* Header - Phone */
@media (max-width: 480px) {
    header {
        min-height: 400px;
        padding: 4rem 1rem 2rem 1rem;
    }

    .banner-container {
        padding: 0 1rem;
    }

    .name-banner {
        font-size: clamp(1rem, 5vw, 2.5rem);
        max-width: 100%;
        letter-spacing: 0.1em;
    }

    .cv-button-container {
        bottom: 1rem;
        left: 1rem;
    }

    .cv-button {
        font-size: 1.2rem;
    }

    .animated-button svg {
        width: 18px;
    }

    .cv-modal-content {
        width: 98%;
        height: 90%;
        margin: 5% auto;
    }

    .cv-close {
        width: 40px;
        height: 40px;
        font-size: 30px;
        right: 15px;
        top: 5px;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    header {
        min-height: 350px;
        padding: 3rem 0.5rem 1.5rem 0.5rem;
    }

    .banner-container {
        padding: 0 0.5rem;
    }

    .name-banner {
        font-size: clamp(0.9rem, 4.5vw, 2rem);
        letter-spacing: 0.05em;
    }

    .profile-image {
        width: 70%;
    }

    .cv-button-container {
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .cv-button-wrapper {
        margin-top: 3rem;
    }

    .cv-button-wrapper a {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}


/* ============================================
   5. ABOUT SECTION
   ============================================ */

.about-section {
    background-color: black;
    color: white;
    padding: 4rem 2rem;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: block;
}

.about-section .container {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

.about-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Rostex', sans-serif;
}

.about-section h3.subsection-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-family: 'Rostex', sans-serif;
    font-weight: 600;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: left;
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: 400;
}

.about-section a:not(.cv-button-wrapper a) {
    color: #0066CC;
    text-decoration: none;
}

.about-section a:not(.cv-button-wrapper a):hover {
    text-decoration: underline;
}

/* Socials Section */
.socials-section {
    text-align: left;
}

.socials-section h3.subsection-heading {
    font-size: 1.5rem;
    font-family: 'Rostex', sans-serif;
    font-weight: 600;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-link {
    color: var(--silver);
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'Trebuchet MS', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* About Banner (Subtle Background Text) */
.about-banner-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 120%;
    pointer-events: none;
    z-index: 1;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0.08;
}

.about-name-banner {
    font-family: 'Rostex', 'Rajdhani', sans-serif;
    font-size: 6rem;
    color: var(--white);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    animation: slide 60s linear infinite;
}

@media (max-width: 768px) {
    .skills-section {
        padding: 2rem 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .skills-section h2,
    .skills-section .display-4 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .skill-card-title {
        font-size: 1.1rem;
    }
}

/* About Section - Tablet */
@media (max-width: 768px) {
    .about-section {
        padding: 2rem 1rem;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .about-section .container {
        padding-top: 1rem;
    }

    .about-section h2 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .about-section h3.subsection-heading {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .about-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .about-banner-container {
        opacity: 0.06;
    }

    .about-name-banner {
        font-size: 2.2rem;
        animation-duration: 90s;
    }
}

/* About Section - Phone */
@media (max-width: 480px) {
    .about-section {
        padding: 1.5rem 1rem;
        padding-top: 10rem !important;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .about-section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .about-section h3.subsection-heading {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .about-section p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .skills-section {
        padding: 1.5rem 1rem;
        padding-top: 10rem !important;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .skills-section h2,
    .skills-section .display-4 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .skill-card {
        min-height: 350px;
        padding: 1.5rem 1rem;
    }

    .skill-card-title {
        font-size: 1rem;
    }
}

/* Extra small devices - About & Skills sections */
@media (max-width: 320px) {
    .about-section,
    .skills-section {
        padding: 1rem 0.5rem;
        padding-top: 8rem !important;
    }

    .about-section h2,
    .skills-section h2,
    .about-section .display-4,
    .skills-section .display-4 {
        font-size: 1.5rem !important;
    }

    .about-section h3.subsection-heading {
        font-size: 1.1rem;
    }

    .about-section p {
        font-size: 0.85rem;
    }

    .skill-card {
        min-height: 300px;
        padding: 1.25rem 0.75rem;
    }

    .skill-card-title {
        font-size: 0.95rem;
    }
}


/* ============================================
   6. SKILLS SECTION
   ============================================ */

.skills-section {
    background-color: black;
    color: white;
    padding: 4rem 2rem;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: auto;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-section .container {
    position: relative;
    z-index: 2;
}

.skills-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    font-family: 'Rostex', sans-serif;
}

.skills-container {
    margin-top: 3rem;
    padding: 2rem;
    background-color: transparent;
    border-radius: 15px;
    border: none;
}

.skills-title {
    font-size: 2rem;
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Rostex', sans-serif;
    text-align: center;
    margin-bottom: 2rem;
}

/* Skill Cards */
.skill-card {
    background-color: rgba(31, 31, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.skill-card:hover {
    border-color: var(--accent);
    background-color: rgba(31, 31, 33, 1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(224, 58, 58, 0.2);
}

/* Disable hover lift on smaller screens to prevent overlap */
@media (max-width: 992px) {
    .skill-card:hover {
        transform: none;
    }
}

.skill-card-icon {
    margin-bottom: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.skill-icon-img.white-icon {
    filter: brightness(0) invert(1);
}

.skill-card:hover .skill-icon-img {
    filter: brightness(1.1);
}

/* Multi-Icon Display (HTML/CSS/JS Card) */
.skill-multi-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.skill-icon-small {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.skill-card:hover .skill-icon-small {
    filter: brightness(1.1);
}

.skill-card-title {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0;
    font-weight: 600;
    font-family: 'Trebuchet MS', sans-serif;
}

/* Skill Progress Bars */
.skill-card-progress {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    flex: 1;
    justify-content: center;
}

.skill-percentage {
    font-size: 0.75rem;
    color: #d0d0d0;
    font-weight: 500;
    margin-top: 0.25rem;
    font-family: 'Orbitron', sans-serif;
}

/* Multi-Skill Progress (HTML/CSS/JS Card) */
.multi-skill {
    gap: 1rem;
}

.skill-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.skill-row label {
    font-size: 0.8rem;
    color: var(--silver);
    text-align: left;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

.skill-row .progress {
    width: 100%;
}

.skill-percentage-small {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: bold;
    text-align: right;
    font-family: 'Orbitron', sans-serif;
}

/* Progress Bar Base */
.progress {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    height: 8px;
    display: block;
    overflow: hidden;
}

.progress-bar {
    display: block;
    background-color: #e03a3a !important;
    border-radius: 10px;
    transition: width 0.6s ease;
    box-shadow: 0 2px 8px rgba(224, 58, 58, 0.8);
    height: 100%;
    min-width: 1%;
}

/* Skill Badges */
.badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
}

.bg-danger-soft {
    background-color: rgba(224, 58, 58, 0.2) !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
}

.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    border: 1px solid #ffc107;
}

.bg-info-soft {
    background-color: rgba(23, 162, 184, 0.2) !important;
    color: #17a2b8 !important;
    border: 1px solid #17a2b8;
}

.bg-success-soft {
    background-color: rgba(40, 167, 69, 0.2) !important;
    color: #28a745 !important;
    border: 1px solid #28a745;
}

.bg-secondary-soft {
    background-color: rgba(158, 158, 158, 0.2) !important;
    color: var(--muted-silver) !important;
    border: 1px solid var(--muted-silver);
}


/* Skills - Tablet */
@media (max-width: 768px) {
    .skill-card {
        min-height: 350px;
        padding: 1.5rem 1rem;
    }
}

/* Skills - Phone */
@media (max-width: 480px) {
    .skill-card {
        min-height: 300px;
        padding: 1rem;
    }
}


/* ============================================
   7. PROJECTS SECTION
   ============================================ */

.projects-section {
    background-color: black;
    color: white;
    padding: 4rem 2rem;
    margin: 0;
    border-radius: 0;
    border: none;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: auto;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-section .container {
    position: relative;
    z-index: 2;
}

.projects-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Rostex', sans-serif;

}

.projects-section .lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: normal;
    font-family: 'Trebuchet MS', sans-serif;
}

/* Project Cards */
.project-card-link {
    text-decoration: none;
    color: inherit;
}

.project-card {
    padding: 2rem;
    background-color: rgba(31, 31, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 0;
}

.project-card-link:hover .project-card {
    border-color: var(--accent);
    background-color: rgba(31, 31, 33, 1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(224, 58, 58, 0.2);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.project-card p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: normal;
    font-family: 'Trebuchet MS', sans-serif;
    text-align: center;
}

/* Project Link Button */
.project-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--silver);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.project-card-link:hover .project-link {
    background-color: rgba(224,58,58,0.08);
    color: var(--white);
    transform: translateX(5px);
    border-color: var(--accent);
}

/* Projects - Tablet */
@media (max-width: 768px) {
    .projects-section {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 0;
    }

    .projects-section h2,
    .projects-section .display-4 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .projects-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Projects - Phone */
@media (max-width: 480px) {
    .projects-section {
        padding: 1.5rem 1rem;
        padding-top: 10rem !important;
        margin: 0;
        border-radius: 0;
    }

    .projects-section h2,
    .projects-section .display-4 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .projects-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}


/* ============================================
   8. TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    background-color: black;
    color: white;
    padding: 4rem 2rem;
    margin: 0;
    border-radius: 0;
    position: relative;
    overflow: auto;
    transition: all 0.3s ease;
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: block;
    box-sizing: border-box;
}

.testimonials-section .container {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

.testimonials-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    font-family: 'Rostex', sans-serif;
}

.testimonials-section .lead {
    font-size: 1rem;
    text-align: center;
    color: var(--silver);
    font-family: 'Trebuchet MS', sans-serif;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: rgba(31, 31, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    min-height: 500px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    overflow: visible;
}

.testimonial-card:hover {
    border-color: var(--accent);
    background-color: rgba(31, 31, 33, 1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(224, 58, 58, 0.2);
}

.testimonial-text {
    margin-bottom: 2rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.testimonial-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--silver);
    font-family: 'Trebuchet MS', sans-serif;
    font-style: italic;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    margin: auto;
}

.testimonial-text p::before {
    content: '"';
    font-size: 2rem;
    color: var(--accent);
    margin-right: 0.5rem;
}

.testimonial-text p::after {
    content: '"';
    font-size: 2rem;
    color: var(--accent);
    margin-left: 0.5rem;
}

.testimonial-author h5 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #d0d0d0;
    font-family: 'Orbitron', sans-serif;
}

/* Carousel Customization */
.carousel-indicators [data-bs-target] {
    background-color: var(--muted-silver);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 8px;
    border: none;
    opacity: 0.5;
}

.carousel-indicators .active {
    background-color: var(--accent);
    opacity: 1;
    transform: scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--accent);
    border-radius: 50%;
    padding: 0.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Testimonials - Tablet */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 2rem 1rem;
        padding-top: 10rem !important;
        margin: 0;
        border-radius: 0;
    }

    .testimonials-section h2,
    .testimonials-section .display-4 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
        min-height: 350px;
        height: auto;
    }

    .testimonial-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .testimonial-author h5 {
        font-size: 1.1rem;
    }

    .carousel-indicators {
        bottom: -40px;
    }
}

/* Testimonials - Phone */
@media (max-width: 480px) {
    .testimonials-section {
        padding: 1.5rem 1rem;
        padding-top: 10rem !important;
        margin: 0;
        border-radius: 0;
    }

    .testimonials-section h2,
    .testimonials-section .display-4 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .testimonial-card {
        padding: 2rem 1.25rem;
        min-height: 300px;
        height: auto;
    }

    .testimonial-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .testimonial-text p::before,
    .testimonial-text p::after {
        font-size: 1.5rem;
    }
}

/* Extra small devices - Testimonials & Contact */
@media (max-width: 320px) {
    .testimonials-section,
    .contact-section {
        padding: 1rem 0.5rem;
        padding-top: 8rem !important;
    }

    .testimonials-section h2,
    .testimonials-section .display-4,
    .contact-section h2 {
        font-size: 1.5rem !important;
    }

    .testimonial-card {
        padding: 1.5rem 1rem;
        min-height: 280px;
    }

    .testimonial-text p,
    .testimonial-text p.fs-5 {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    .testimonial-text p::before,
    .testimonial-text p::after {
        font-size: 1rem;
        margin: 0 0.2rem;
    }

    .testimonial-author h5,
    .testimonial-author h3 {
        font-size: 0.9rem !important;
    }

    .testimonial-role {
        font-size: 0.7rem !important;
    }

    .carousel-indicators [data-bs-target] {
        width: 40px;
        height: 40px;
        margin: 0 6px;
    }

    .contact-form .form-control,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .contact-form .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
}


/* ============================================
   9. CONTACT SECTION
   ============================================ */

.contact-section {
    background-color: black;
    color: white;
    padding: 4rem 2rem;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: auto;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.contact-section .container {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Rostex', sans-serif;
}

.contact-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: normal;
    font-family: 'Trebuchet MS', sans-serif;
}

/* Contact Form */
.contact-form {
    background-color: rgba(31, 31, 33, 0.8);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-form:hover {
    border-color: var(--accent);
    background-color: rgba(31, 31, 33, 1);
    box-shadow: 0 10px 30px rgba(224, 58, 58, 0.2);
}

.contact-form .form-label {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.75rem;
    display: block;
}

.form-control-custom {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--white) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease !important;
    font-size: 0.95rem;
}

.form-control-custom:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(224, 58, 58, 0.25) !important;
    color: var(--white) !important;
}

.form-control-custom::placeholder {
    color: rgba(192, 192, 192, 0.6) !important;
    font-style: italic;
}

/* Submit Button */
.btn-submit {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Orbitron', sans-serif;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #c92d2d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(224, 58, 58, 0.3);
    color: var(--white);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Contact Info */
.contact-info {
    padding-top: 2rem;
}

.contact-info h6 {
    color: var(--accent);
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.contact-link {
    color: var(--silver);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
}

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

/* Form Alerts */
.alert {
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.alert-danger {
    background-color: rgba(224, 58, 58, 0.1) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* Contact - Tablet */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 0;
    }

    .contact-section h2,
    .contact-section .display-4 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form .form-label {
        font-size: 0.85rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
    }
}

/* Contact - Phone */
@media (max-width: 480px) {
    .contact-section {
        padding: 1.5rem 1rem;
        padding-top: 10rem !important;
        margin: 0;
        border-radius: 0;
    }

    .contact-section h2,
    .contact-section .display-4 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }

    .contact-form {
        padding: 1rem;
    }

    .contact-form .form-label {
        font-size: 0.85rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }
}


/* ============================================
   10. FOOTER
   ============================================ */

footer.footer {
    background-color: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    color: var(--silver);
    margin-top: 0;
    min-height: 100vh;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

footer.footer .back-to-top-btn {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.footer-copyright {
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Trebuchet MS', sans-serif;
    color: var(--muted-silver);
}

/* Back to Top Button */
.back-to-top-btn {
  width: 140px;
  height: 56px;
  overflow: hidden;
  border: none;
  color: #fff;
  background: none;
  position: relative;
  padding-bottom: 2em;
  cursor: pointer;
}

.back-to-top-btn > div,
.back-to-top-btn > svg {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
}

.back-to-top-btn:before {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: bottom right;
  background: currentColor;
  transition: transform 0.25s ease-out;
}

.back-to-top-btn:hover:before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.back-to-top-btn .clone > *,
.back-to-top-btn .text > * {
  opacity: 1;
  font-size: 0.75rem;
  transition: 0.2s;
  margin-left: 4px;
  font-family: 'Rostex', sans-serif;
}

.back-to-top-btn .clone > * {
  transform: translateY(60px);
}

.back-to-top-btn:hover .clone > * {
  opacity: 1;
  transform: translateY(0px);
  transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

.back-to-top-btn:hover .text > * {
  opacity: 1;
  transform: translateY(-60px);
  transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

.back-to-top-btn:hover .clone > :nth-child(1) {
  transition-delay: 0.15s;
}

.back-to-top-btn:hover .clone > :nth-child(2) {
  transition-delay: 0.2s;
}

.back-to-top-btn:hover .clone > :nth-child(3) {
  transition-delay: 0.25s;
}

.back-to-top-btn svg {
  width: 20px;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-50deg);
  transition: 0.2s ease-out;
}

.back-to-top-btn:hover svg {
  transform: translateY(-50%) rotate(-90deg);
}

/* Light mode adjustments for back to top button */
body.light-mode .back-to-top-btn {
  color: #000;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

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

.social-link:hover {
    background-color: rgba(224, 58, 58, 0.15);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Footer - Tablet */
@media (max-width: 768px) {
    footer.footer {
        padding: 2rem 1.5rem;
    }
}

/* Footer - Phone */
@media (max-width: 480px) {
    footer.footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
}


/* ============================================
   11. PROJECT DETAIL PAGES
   ============================================ */

.project-detail-section {
    background-color: black;
    color: white;
    padding: 4rem 2rem;
    margin: 3rem 2rem;
    border-radius: 30px;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-detail-container h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Rostex', sans-serif;
}

.project-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
    font-family: 'Rostex', sans-serif;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-family: 'Rostex', sans-serif;
}

.project-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-content ul {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.project-content li {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Back Button */
.back-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--silver);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.06);
}

.back-button:hover {
    background-color: rgba(224,58,58,0.08);
    color: var(--white);
    transform: translateX(-5px);
    border-color: var(--accent);
}

/* Project Detail - Tablet */
@media (max-width: 768px) {
    .project-detail-section {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
}

/* Project Detail - Phone */
@media (max-width: 480px) {
    .project-detail-section {
        padding: 1.5rem 1rem;
        padding-top: 10rem !important;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .army-card {
        margin-top: 2rem;
    }
}

/* Military Lanyard ID Card */
.lanyard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  position: relative;
  perspective: 1000px;
}

.lanyard-string {
  width: 6px;
  height: 60px;
  background: repeating-linear-gradient(
    90deg,
    #555 0px,
    #666 2px,
    #777 4px,
    #666 6px,
    #555 8px
  );
  border-radius: 3px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: lanyard-sway 3s ease-in-out infinite;
  transform-origin: top center;
}

.lanyard-string::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #444;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes lanyard-sway {
  0%, 100% {
    transform: rotateZ(0deg);
  }
  25% {
    transform: rotateZ(2deg);
  }
  75% {
    transform: rotateZ(-2deg);
  }
}

.lanyard-card {
  width: 350px;
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: grab;
  animation: lanyard-swing 3s ease-in-out infinite;
  transform-origin: top center;
}

.lanyard-card:hover {
  animation-play-state: paused;
  transform: rotateY(5deg) translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lanyard-card:active {
  cursor: grabbing;
  transform: rotateY(0deg) translateY(-5px);
}

@keyframes lanyard-swing {
  0%, 100% {
    transform: rotateZ(0deg) rotateY(0deg);
  }
  25% {
    transform: rotateZ(1deg) rotateY(-3deg);
  }
  75% {
    transform: rotateZ(-1deg) rotateY(3deg);
  }
}

.lanyard-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--accent);
}

.lanyard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lanyard-info {
  padding: 1.5rem 1rem;
  background: #333;
}

.lanyard-name {
  font-family: 'Rostex', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
  letter-spacing: 1.5px;
  text-align: center;
}

.lanyard-role {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  color: #aaa;
  margin: 0 0 0.3rem 0;
  text-align: center;
}

.lanyard-status {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  margin: 0;
  letter-spacing: 1px;
}

.lanyard-barcode {
  background: #1a1a1a;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #444;
}

.barcode-badge {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.barcode-line:nth-child(2) {
  width: 5px;
}

.barcode-line:nth-child(4) {
  width: 4px;
}

/* Light mode adjustments */
body.light-mode .lanyard-card {
  background: #f5f5f5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body.light-mode .lanyard-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

body.light-mode .lanyard-photo {
  background: #e0e0e0;
}

body.light-mode .lanyard-info {
  background: #fff;
}

body.light-mode .lanyard-name {
  color: #000;
}

body.light-mode .lanyard-role {
  color: #555;
}

body.light-mode .lanyard-barcode {
  background: #e8e8e8;
  border-top: 1px solid #ccc;
}

body.light-mode .barcode-line {
  background: #000;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .lanyard-container {
    padding: 1rem 0;
  }

  .lanyard-card {
    width: 280px;
  }

  .lanyard-name {
    font-size: 1.1rem;
  }

  .lanyard-role {
    font-size: 0.85rem;
  }

  .lanyard-status {
    font-size: 0.75rem;
  }
}


/* ============================================
   12. THEME TOGGLE SWITCH
   ============================================ */

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch #input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#input:checked + .slider {
  background-color: black;
}

#input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#input:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

#input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% {
    transform: translateX(0px);
  }
  40% {
    transform: translateX(4px);
  }
  80% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0px);
  }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

#input:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
  80% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

/* Align switch in navbar */
.navbar-nav .nav-item .switch {
  margin-left: 1rem;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
  pointer-events: auto;
}

.navbar-nav {
  align-items: center;
}

@media (max-width: 991px) {
  .navbar-nav .nav-item .switch {
    margin: 0.5rem auto;
  }
}

/* Light Mode Adjustments */
body.light-mode .custom-navbar {
  background-color: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .custom-navbar .navbar-brand {
  color: var(--white) !important;
}

body.light-mode .custom-navbar .nav-link {
  color: #333333 !important;
}

body.light-mode .custom-navbar .nav-link:hover {
  background-color: rgba(224, 58, 58, 0.1);
  color: #000000 !important;
}

body.light-mode header {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.8));
}

body.light-mode .name-banner {
  color: #333333;
}

body.light-mode .about-section,
body.light-mode .skills-section,
body.light-mode .projects-section,
body.light-mode .testimonials-section,
body.light-mode .contact-section,
body.light-mode .project-detail-section {
  background-color: #faf9f6;
  color: #000000;
  border: none;
}

body.light-mode .skill-card,
body.light-mode .project-card,
body.light-mode .testimonial-card,
body.light-mode .contact-form {
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  color: #000000;
}

body.light-mode .skill-card:hover,
body.light-mode .project-card:hover,
body.light-mode .testimonial-card:hover,
body.light-mode .contact-form:hover {
  background-color: #ffffff;
  border-color: var(--accent);
}

body.light-mode .skill-card-title,
body.light-mode .project-card h3,
body.light-mode .testimonial-author h5,
body.light-mode h2,
body.light-mode h3 {
  color: #000000 !important;
}

body.light-mode .project-card p,
body.light-mode .testimonial-text p {
  color: #333333 !important;
}

body.light-mode .form-control-custom {
  background-color: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  color: #000000 !important;
}

body.light-mode .form-control-custom::placeholder {
  color: #999999 !important;
}

body.light-mode footer.footer {
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
}

body.light-mode .social-link {
  background-color: #e8e8e8;
  border: 1px solid #d0d0d0;
}

body.light-mode .social-icon {
  filter: brightness(0);
}

body.light-mode .skill-icon-img.white-icon {
  filter: brightness(0);
}

body.light-mode .skill-percentage {
  color: #333333;
}

/* ============================================
   13. UTILITIES & ANIMATIONS
   ============================================ */

/* Logo Loop Animation (About Section) */
.logo-loop {
    margin-top: 2rem;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0.75rem 0;
}

.logo-track {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    will-change: transform;
    animation: scroll-logos 24s linear infinite;
}

.tech-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: none;
    opacity: 0.98;
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.tech-logo:hover {
    transform: scale(1.08);
    opacity: 1;
}

/* Keyframe Animations */
@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Logo Loop - Tablet */
@media (max-width: 768px) {
    .logo-track {
        animation-duration: 36s;
        gap: 1.5rem;
    }

    .tech-logo {
        width: 44px;
        height: 44px;
    }
}


/* ============================================
   13. ULTRA-SMALL SCREENS (386px and below)
   ============================================ */

@media (max-width: 386px) {
    /* Navbar */
    .navbar {
        width: 98%;
        margin: 0.5rem auto;
        padding: 0.75rem;
    }

    .nav-profile-pic {
        width: 30px !important;
        height: 30px !important;
    }

    .navbar-brand span {
        font-size: 0.85rem;
    }

    /* Header */
    header {
        min-height: 350px;
        padding: 3rem 0.5rem 1.5rem 0.5rem;
    }

    .name-banner {
        font-size: clamp(0.9rem, 4vw, 2rem);
        letter-spacing: 0.05em;
        max-width: 100%;
    }

    /* Section Headings */
    .about-section h2,
    .projects-section h2,
    .testimonials-section h2,
    .contact-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .skills-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.25rem;
    }

    /* About Section */
    .about-section p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    /* Project Content */
    .project-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .project-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .contact-form h3 {
        font-size: 1.5rem;
    }

    /* Section Containers */
    .about-section,
    .projects-section,
    .testimonials-section,
    .contact-section {
        margin: 1rem 0.25rem;
        padding: 1.25rem 0.75rem;
    }

    /* Skill Cards */
    .skill-card {
        padding: 1.5rem 0.5rem;
        min-height: 280px;
    }

    .skill-card-title {
        font-size: 0.95rem;
    }

    /* Testimonial Cards */
    .testimonial-card {
        padding: 1.25rem 0.75rem;
        min-height: 260px;
        height: auto;
    }

    .testimonial-text {
        margin-bottom: 1rem;
    }

    .testimonial-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* ========================================
   Animated Social Icons
   ======================================== */
ul.example-2 {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

ul.example-2 .icon-content {
  margin: 0;
  position: relative;
}

ul.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}

ul.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}

ul.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

ul.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

ul.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}

ul.example-2 .icon-content a:hover {
  color: white;
}

ul.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}

ul.example-2 .icon-content a:hover .filled {
  height: 100%;
}

ul.example-2 .icon-content a[data-social="linkedin"] .filled,
ul.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
  background-color: #0274b3;
}

ul.example-2 .icon-content a[data-social="github"] .filled,
ul.example-2 .icon-content a[data-social="github"] ~ .tooltip {
  background-color: #24262a;
}
ul.example-2 .icon-content a[data-social="instagram"] .filled,
ul.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}

ul.example-2 .icon-content a[data-social="twitter"] .filled,
ul.example-2 .icon-content a[data-social="twitter"] ~ .tooltip {
  background-color: #000000;

    .testimonial-text p::before,
    .testimonial-text p::after {
        font-size: 1.25rem;
    }

    .testimonial-author h5 {
        font-size: 0.95rem;
    }

    /* Contact Form */
    .contact-form {
        padding: 1rem;
    }

    .form-control,
    .btn {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    /* Project Detail */
    .project-detail-section {
        margin: 1rem 0.25rem;
        padding: 1.25rem 0.75rem;
        border-radius: 10px;
    }

    .project-detail-container {
        padding: 1rem !important;
    }

    .back-button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem !important;
    }
}
