/* ----------------------
   Variables & Theme
---------------------- */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-secondary: #0c0c0c;
    --accent-primary: #ff3b3b;
    --accent-secondary: #ff7a7a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    
    /* Glassmorphism */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    /* Glows & Gradients */
    --neon-glow: rgba(255, 59, 59, 0.5);
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --border-glow: 1px solid rgba(255, 59, 59, 0.3);
    
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Removed cursor: none; so your normal system mouse cursor is fully visible */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.glow-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.glow-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--neon-glow);
}

.glow-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.2);
}

.section-padding {
    padding: 2.5rem 2rem 5rem 2rem;
}

.section-padding-top {
    padding-top: 6rem;
}

/* ----------------------
   Custom Cursor
---------------------- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 59, 59, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    transition: transform 0.1s ease-out;
    mix-blend-mode: screen;
}

/* ----------------------
   Utilities
---------------------- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-normal);
}

.glass-card:hover {
    border: var(--border-glow);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.1);
    transform: translateY(-5px);
}

.glow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer; /* Restored the normal clicking cursor for buttons */
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 59, 59, 0.2);
}

.glow-btn:hover {
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.3);
    transform: translateY(-2px);
}

.glow-btn.outline-btn {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: none;
    transition: all 0.3s ease; /* Added smooth transition for the color fill */
}

.glow-btn.outline-btn:hover {
    background: var(--accent-primary);
    color: #ffffff; /* Text turns white so it's readable on red background */
    box-shadow: 0 0 20px var(--neon-glow);
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ----------------------
   Particles Background
---------------------- */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-primary);
}

/* ----------------------
   Navbar
---------------------- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(12, 12, 12,0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 59, 59, 0.15);
    border-radius: 50px;
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 59, 59, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.7rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-mark {
    background: rgba(255, 59, 59, 0.1);
    border: 2px solid var(--accent-primary);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 8px 0px 8px 8px; /* Replicates a stylish cut-corner square */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 0 10px var(--neon-glow);
}

.logo-separator {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

.logo-text {
    font-family: 'Permanent Marker', cursive;
    font-size: 1rem;
    letter-spacing: 0.7px;
    color: rgba(255, 255, 255, 0.85); /* softer white */
    text-transform: uppercase;
    transform: translateY(1px);

    text-shadow: none; /* remove thickness effect */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-normal);
    box-shadow: 0 0 10px var(--neon-glow);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* ----------------------
   Hero Section
---------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 1;
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.name {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.subtitle-container {
    height: 40px;
    margin-bottom: 1.5rem;
}

.typing-text {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
}

.description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 59, 59, 0.4);
}

/* Terminal Window */
.terminal-window {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 59, 59, 0.1);
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255, 59, 59, 0.05) 1px, transparent 1px);
    background-size: 100% 3px;
    pointer-events: none;
    z-index: 10;
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.mac-btns {
    display: flex;
    gap: 8px;
}

.mac-btns span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.terminal-title {
    margin: 0 auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #888;
    transform: translateX(-20px);
}

.terminal-body {
    padding: 1.5rem;
    min-height: 250px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

/* Terminal Input */

.terminal-input-line{
display:flex;
align-items:center;
margin-top:10px;
gap:8px;
}

#terminal-input{
background:transparent;
border:none;
outline:none;
color:white;
font-family:var(--font-mono);
font-size:0.95rem;
width:100%;
}

#terminal-output div{
margin-bottom:5px;
}
.terminal-prompt {
    color: #27c93f;
}

.typed-terminal {
    color: var(--text-primary);
}

.terminal-prompt{
color:#27c93f;
white-space:nowrap;
}

.terminal-input-line{
display:flex;
align-items:center;
gap:8px;
flex-wrap:nowrap;
}

.terminal-input-line{
display: none;
}

#terminal-input{
flex:1;
min-width:0;
}

/* Scroll Indication */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* ----------------------
   About Section
---------------------- */
/* REPLACE YOUR EXISTING "About Section" CSS WITH THIS */

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Enhanced Text Styling */
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  font-size: 1.15rem;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.about-text p:hover {
  color: #ffffff; /* Brightens text when hovering over the paragraph */
}

/* Highlighted keywords */
.highlight {
  color: var(--accent-secondary, #ff7a7a);
  font-weight: 500;
  transition: text-shadow 0.3s ease;
}

.about-text p:hover .highlight {
  text-shadow: 0 0 10px rgba(255, 122, 122, 0.4);
}

/* Profile Card - Hover Lift & Glow */
.profile-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.profile-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 59, 59, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 59, 59, 0.15);
}

.profile-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,59,59,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.profile-card:hover .profile-glow {
  opacity: 1;
}

.profile-content h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}

.profile-list li {
  margin-bottom: 1.5rem;
}

/* Fixed Label alignment and spacing */
.profile-list .label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.profile-list .value {
  color: var(--text-primary);
  display: block;
  padding-left: 1.8rem; /* Indents text cleanly under the icon */
}

/* Interests Tags - Redesigned to match Tech Stack tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-left: 1.8rem;
}

.tag {
  background: rgba(255, 59, 59, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 59, 59, 0.15);
  color: #d1d5db;
  transition: all 0.3s ease;
  cursor: default;
}

.tag:hover {
  transform: scale(1.08);
  border-color: rgba(255, 59, 59, 0.8);
  box-shadow: 0 0 10px rgba(255, 59, 59, 0.3);
  color: #ffffff;
  background: rgba(255, 59, 59, 0.15);
}
/* ==========================
   TECHNICAL SKILLS SECTION
========================== */

/* Make sure the section allows sticky elements (overflow hidden breaks sticky) */
.skills-section {
    overflow: visible !important; 
}

.skills-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start; /* CRITICAL: This allows the sphere to stick while cards scroll */
    position: relative;
}

/* GRID */
.modern-skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* CARD */
.modern-skill-card {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem .8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Updated transition to cleanly animate the zoom and border */
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 110px;
    cursor: default;
}

.modern-skill-card:hover {
    /* Added scale(1.05) for the zoom effect and a soft lift */
    transform: scale(1.05) translateY(-5px);
    /* Added thin red theme border matching your project cards */
    border-color: rgba(255, 59, 59, 0.6);
    /* Added matching red theme glow shadow */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 59, 59, 0.2);
}

/* ICON */
.skill-icon-wrapper {
  font-size: 1.8rem;
  margin-bottom: .6rem;
  transition: transform 0.3s ease;
}

.modern-skill-card:hover .skill-icon-wrapper {
  transform: scale(1.1);
}

/* NAME */
.skill-name {
    font-size: .75rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: .8rem;
    text-align: center;
}

/* BAR BACKGROUND */
.skill-bar-bg {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

/* BAR FILL */
.skill-bar-fill {
    height: 100%;
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: fillBar 1.5s cubic-bezier(.1, .7, .1, 1) forwards;
    animation-delay: .3s;
}

@keyframes fillBar {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* ==========================
   SPHERE CONTAINER (UPDATED)
========================== */
.sphere-container {
    position: sticky;      /* Makes it stay in place */
    top: 150px;           /* Distance from the top of the screen (keeps it below the heading/navbar) */
    align-self: start;    /* Ensures it only takes up as much height as it needs */
    z-index: 10;
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    transform-style: preserve-3d;
}

/* Rotating 3D Rings for attractiveness */
.sphere-container::before, 
.sphere-container::after {
    content: '';
    position: absolute;
    top: -2%; left: -2%; width: 104%; height: 104%;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
}

.sphere-container::before {
    border-top-color: rgba(0, 255, 255, 0.4);
    border-bottom-color: rgba(255, 0, 79, 0.4);
    animation: spinRing 8s linear infinite;
}

.sphere-container::after {
    border-left-color: rgba(247, 223, 30, 0.4);
    border-right-color: rgba(178, 36, 239, 0.4);
    animation: spinRingReverse 12s linear infinite;
}

@keyframes spinRing { 100% { transform: rotate3d(1, 1, 0, 360deg); } }
@keyframes spinRingReverse { 100% { transform: rotate3d(0, 1, 1, -360deg); } }

.tagcloud {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
}

/* Base item styling */
.tagcloud--item {
    transition: all 0.3s ease;
}

/* Assign separate colors to each element dynamically */
.tagcloud--item:nth-child(7n+1) { color: #00d2ff; } /* Cyan */
.tagcloud--item:nth-child(7n+2) { color: #ff004f; } /* Red */
.tagcloud--item:nth-child(7n+3) { color: #f7df1e; } /* Yellow */
.tagcloud--item:nth-child(7n+4) { color: #38ef7d; } /* Green */
.tagcloud--item:nth-child(7n+5) { color: #b224ef; } /* Purple */
.tagcloud--item:nth-child(7n+6) { color: #ff9900; } /* Orange */
.tagcloud--item:nth-child(7n+7) { color: #ff00ea; } /* Pink */

/* Enhanced hover effect with matching neon glow using currentColor */
.tagcloud--item:hover {
    text-shadow: 0 0 15px currentColor, 0 0 30px currentColor;
    transform: scale(1.3);
    z-index: 100;
    opacity: 1 !important;
}


/* ==========================
   FEATURED PROJECTS SECTION (UPDATED)
========================== */

/* ==========================
   FEATURED PROJECTS SECTION (HORIZONTAL CAROUSEL)
========================== */

/* Main Flex Layout for Horizontal Scrolling */
.projects-grid-modern {
    display: flex;
    gap: 1.5rem; /* Reduced gap for smaller cards */
    margin-top: 1rem; /* Adjusted to balance the new top padding */
    padding-top: 1rem; /* ADDED: Gives room for the card to hover up without getting cut off */
    padding-bottom: 2.5rem; /* Breathing room for the custom scrollbar */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* Premium native-app snapping effect */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling on iOS */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide the scrollbar completely but keep scrolling functionality */
.projects-grid-modern::-webkit-scrollbar {
    display: none;
}

/* Modern Project Card Styling */
.modern-project-card {
    flex: 0 0 320px; /* Reduced width for smaller, balanced cards */
    scroll-snap-align: start; /* Snaps exactly to the left edge of each card */
    scroll-snap-stop: always; /* Crucial: Forces scrolling to stop one card at a time */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.2rem; /* Reduced padding for smaller card */
    position: relative;
    overflow: hidden;
    height: auto; 
    align-self: stretch; /* Ensures all cards stretch to match the tallest one */
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.modern-project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 59, 59, 0.4); /* Red border hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 59, 59, 0.15);
}

/* Red Glow Accent on top of the card */
.modern-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient, linear-gradient(135deg, #ff3b3b, #ff7a7a));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-project-card:hover::before {
    opacity: 1;
}

/* Project Image Container */
.project-image-container {
    width: 100%;
    height: 170px; /* Reduced image height to balance the card */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5); /* Placeholder background */
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-project-card:hover .project-image-container img {
    transform: scale(1.1); /* Smooth zoom effect on hover */
}

/* Project Header (Title & Description) */
.project-header {
    margin-bottom: 1.2rem;
}

.project-header h3 {
    font-size: 1.2rem; /* Scaled down heading */
    color: var(--accent-primary, #ff3b3b); /* Red Theme */
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.project-header p {
    font-size: 0.9rem; /* Scaled down paragraph */
    color: var(--text-secondary, #b0b0b0);
    line-height: 1.5;
}

/* Tech Stack Container */
.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem; /* Tighter gap for smaller tags */
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes the buttons to the bottom */
    align-items: flex-start; /* ADDED: Prevents tags from stretching unevenly */
}

.tech-tag {
    background: rgba(255, 59, 59, 0.05); /* Red tint */
    border: 1px solid rgba(255, 59, 59, 0.15); /* Red border */
    color: #d1d5db;
    font-size: 0.75rem; /* Scaled down tag text */
    padding: 0 14px; /* Increased side padding for perfectly balanced pill shape */
    border-radius: 20px;
    display: inline-flex; /* Keeps icon and text tightly grouped */
    align-items: center;
    gap: 6px; /* Slightly increased gap between icon and text */
    height: 28px; /* Forces absolute uniformity across all tags */
    box-sizing: border-box; /* Prevents borders from changing the size */
    white-space: nowrap; /* Prevents text from awkwardly wrapping */
    transition: all 0.3s ease;
}

.modern-project-card:hover .tech-tag {
    border-color: rgba(255, 59, 59, 0.4);
    color: #ffffff;
}

.tech-tag i {
    color: var(--accent-secondary, #ff7a7a); /* Lighter Red */
}

/* Project Action Links */
.project-links {
    display: flex;
    gap: 0.8rem; /* Scaled down gap between buttons */
    margin-top: auto; /* Ensures buttons align at the bottom */
}

/* Shrink standard buttons slightly for these cards */
.project-links .small-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed !important;
    border-color: #555 !important;
    color: #888 !important;
}

.disabled-btn:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ==========================
   HORIZONTAL SCROLL HINT (NEW)
========================== */
.scroll-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    color: var(--text-secondary, #b0b0b0);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.7;
    animation: pulseFade 2.5s infinite ease-in-out;
}

.scroll-hint i {
    color: var(--accent-primary, #ff3b3b);
    font-size: 1rem;
    animation: slideRight 1.5s infinite ease-in-out;
}

/* Animations for the hint */
@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

@keyframes pulseFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ==========================
   RESPONSIVE DESIGN (HORIZONTAL PROJECTS)
========================== */
@media screen and (max-width: 1200px) {
    .modern-project-card {
        flex: 0 0 300px; /* Slightly smaller width for tablets */
    }
}

@media screen and (max-width: 768px) {
    .modern-project-card {
        flex: 0 0 85vw; /* Almost full screen width for mobile */
        scroll-snap-align: center; /* Centers the card on mobile screen for better UX */
    }
    
    .projects-grid-modern {
        gap: 1rem; /* Smaller gap on mobile */
    }
}



/* ==========================
   EXPERIENCE SECTION
========================== */
.experience-section {
  /* Removed text-align: center to fix the heading alignment issue */
  position: relative;
}

.experience-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Image Wrapper Styling */
.experience-image-wrapper {
  max-width: 400px; /* Reduced from 650px to make the image smaller */
  width: 100%;
  padding: 0; /* Remove padding so the image fills the card cleanly */
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  background: rgba(0, 0, 0, 0.2); /* Fallback background */
}

.experience-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Animation matching Project Cards */
.experience-image-wrapper:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 59, 59, 0.6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 59, 59, 0.15);
}

.experience-image-wrapper:hover img {
  transform: scale(1.03); /* Subtle image zoom on hover */
}

/* Quote Text Styling */
.experience-quote {
  max-width: 700px;
  text-align: center; /* Added here to ensure the quote stays centered */
}

.experience-quote p {
  font-size: 1.35rem;
  font-style: italic;
  color: #e0e0e0;
  line-height: 1.8;
  font-family: var(--font-heading); /* Gives it a cleaner, modern look */
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.experience-quote p:hover {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* Soft white glow on hover */
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 768px) {
  .experience-quote p {
    font-size: 1.15rem;
  }
}


/* ----------------------
   Contact Section
---------------------- */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.contact-social {
    margin-top: 3rem;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
}

.contact-social h4 {
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-normal);
}

.input-group label {
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    pointer-events: none;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:not(:placeholder-shown) {
    border-color: rgba(255, 59, 59, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.input-group input:focus ~ label,
.input-group textarea:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 1rem;
    font-size: 0.8rem;
    background: var(--bg-primary);
    padding: 0 0.5rem;
    color: var(--accent-primary);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
    box-shadow: 0 0 10px var(--neon-glow);
}

.input-group input:focus ~ .input-glow,
.input-group textarea:focus ~ .input-glow {
    width: 100%;
}

/* --- UPDATED BUTTON & RESPONSE TIME LAYOUT --- */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.submit-btn {
    align-self: flex-start;
}

.form-response-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-response-time i {
    color: var(--accent-primary);
}

/* ----------------------
   Footer
---------------------- */
.footer {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 59, 59, 0.5), transparent);
    margin-bottom: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-terminal {
    font-family: var(--font-mono);
}

/* ----------------------
   Responsive Design
---------------------- */
@media screen and (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .glow-heading {
        left: 50%;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-container,
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .github-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-dot {
        left: -9px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile hide for now */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .name {
        font-size: 2rem; /* Adjusted down so the single-line name still perfectly fits on small mobile screens */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media screen and (max-width: 768px) {
  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .terminal-window {
    width: 100%;
  }

  .terminal-body {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .terminal-header {
    padding: 0.5rem;
  }
}