:root {
  --bg-main: #050505;
  --bg-alt: #141414;
  --bg-card: #1f1f1f;
  --bg-card-soft: #262626;
  --accent: #ffffff;
  --accent-subtle: #00c3ff;
  --text-main: #f5f5f5;
  --text-muted: #b0b0b0;
  --border-soft: rgba(255, 255, 255, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --container-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ========== LAYOUT HELPERS ========== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.section-intro {
  max-width: 640px;
  color: var(--text-muted);
}

/* ========== HEADER ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.96),
    rgba(5, 5, 5, 0.76),
    transparent
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.0em;
    font-weight: 700;
    color: #fff;
    text-decoration: none; /* important */
    cursor: pointer;
}
.logo:hover {
    opacity: 0.8;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent-subtle);
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  width: 100%;
}

/* ========== HERO  ========== */
.hero {
  background: #000;
  padding-top: 4rem;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;   /* center children horizontally */
}

/* override container behaviour just for the hero */
.hero-overlay {
  width: 90%;            /* same as the video */
  max-width: 1400px;     /* optional, to match your container max-width */
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0 3rem;  /* no left/right padding so edges match video */
}

/* title animation + appearance */
.hero-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(3rem, 12vw, 14rem);
  line-height: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease-out forwards;
}

.hero-video {
  display: block;
  width: 90%;      /* same width as .hero-overlay */
  height: auto;
  object-fit: cover;
  margin: 0 auto;  /* center */
}


@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========== PROJECT CARDS ========== */
.project-cards {
    display: flex;
    flex-direction: column;   
    gap: 2rem;                
}

.project-card {
    background: radial-gradient(circle at top left, #2b2b2b, #151515 60%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: row;      
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: transform 0.4s ease-out;
    will-change: transform;
    align-items: center;      
}

.project-thumb {
    width: 40%;                
    max-width: 420px;          
    border-radius: calc(var(--radius-lg) - 8px);
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.project-content {
    flex: 1;                  
    display: flex;
    flex-direction: column;
    justify-content: center;  
    gap: 0.35rem;
}

.project-title {
  margin: 0;
  font-size: 1.2rem;
}

.project-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent-subtle);
}

.project-desc {
  margin: 0.2rem 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== ALL PROJECTS BUTTON ========== */
.all-projects-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-all-projects {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-all-projects:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, #00e5ff 0%, #00aaff 100%);
}

.btn-all-projects svg {
    transition: transform 0.3s ease;
}

.btn-all-projects:hover svg {
    transform: translateX(4px);
}

/* ========== ALL PROJECTS PAGE ========== */
.all-projects-page {
    padding-top: 6rem;
    min-height: 100vh;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    text-decoration: none;
}

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

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #00d4ff;
}

.footer {
    background: #0a0a0a;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer p {
    color: #888;
    margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .all-projects-btn-wrapper {
        margin-top: 2rem;
    }
    
    .btn-all-projects {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .all-projects-page {
        padding-top: 5rem;
    }
}


/* ========== BUTTONS ========== */

.btn-primary,
.btn-outline,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease-out, box-shadow 0.15s ease-out,
    background 0.15s ease-out, border-color 0.15s ease-out;
}

.btn-primary {
  background: var(--accent-subtle);
  color: #021018;
  box-shadow: 0 10px 30px rgba(0, 195, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 195, 255, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--accent-subtle);
  border-color: var(--accent-subtle);
}

.btn-outline:hover {
  background: rgba(0, 195, 255, 0.08);
}

.btn-link {
  padding: 0;
  border-radius: 0;
  border: none;
  color: var(--accent-subtle);
}

.btn-link::after {
  content: " →";
  font-size: 0.9em;
}

/* ========== ABOUT ========== */

.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-grid p {
  color: var(--text-muted);
}

/* Center About Me section */
#about .about-grid {
    display: flex;
    justify-content: center;
    text-align: center;
}

#about .about-grid > div {
    max-width: 800px; /* keeps it nicely readable */
}

#about p {
    margin-bottom: 1.2rem; /* adjust spacing as you like */
    line-height: 1.7;     /* cleaner paragraph spacing */
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0e1a;
    color: #e4e6eb;
    line-height: 1.6;
}

/* ========== SECTION STYLES ========== */
/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0e1a;
    color: #e4e6eb;
    line-height: 1.6;
}

/* ========== SECTION STYLES ========== */
.section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #0a0e1a 0%, #0f1420 100%);
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d9ff 0%, #0080ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 0.8s ease-out;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #a0a8b8;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ========== PROJECT GRID ========== */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* ========== PROJECT CARD ========== */
.project-card {
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.8) 0%, rgba(15, 20, 35, 0.9) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
    display: flex;
    flex-direction: column;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(0, 128, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 20px 60px rgba(0, 217, 255, 0.15),
        0 0 40px rgba(0, 217, 255, 0.1);
}

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

/* ========== PROJECT IMAGE ========== */
.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; 
    overflow: hidden;
    background: #0f1420;
}

.project-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========== PROJECT OVERLAY ========== */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 217, 255, 0) 0%,
        rgba(0, 217, 255, 0.4) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 217, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d9ff;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.project-card:hover .overlay-icon {
    transform: scale(1);
    animation: pulse 2s ease-in-out infinite;
}


/* ========== PROJECT CONTENT ========== */
.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: #00d9ff;
}

/* ========== PROJECT TAGS ========== */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #00d9ff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    background: rgba(0, 217, 255, 0.2);
    border-color: rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}

/* ========== PROJECT DESCRIPTION ========== */
.project-desc {
    color: #a0a8b8;
    font-size: 0.938rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ========== PROJECT BUTTON ========== */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 128, 255, 0.1) 100%);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    color: #00d9ff;
    font-weight: 600;
    font-size: 0.938rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 128, 255, 0.2) 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-link:hover {
    border-color: rgba(0, 217, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
    transform: translateX(4px);
}

.btn-link:hover::before {
    transform: translateX(0);
}

.btn-link span {
    position: relative;
    z-index: 1;
}

.btn-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-link:hover svg {
    transform: translateX(4px);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 217, 255, 0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .project-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-image-wrapper {
        padding-bottom: 56.25%; /* Maintain 16:9 on mobile */
    }
    
    .project-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 15px;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .btn-link {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}


/* ========== SKILLS ========== */

.skills-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.skill-card {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(0, 195, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-subtle), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-subtle);
  box-shadow: 0 16px 48px rgba(0, 195, 255, 0.3),
              0 0 60px rgba(0, 195, 255, 0.15);
}

.skill-card:hover::before {
  opacity: 1;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skill-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 195, 255, 0.15), rgba(0, 195, 255, 0.05));
  border: 1px solid rgba(0, 195, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(45deg, var(--accent-subtle), transparent, var(--accent-subtle));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(8px);
}

.skill-card:hover .skill-icon-wrapper {
  transform: rotate(10deg) scale(1.1);
  background: linear-gradient(135deg, rgba(0, 195, 255, 0.25), rgba(0, 195, 255, 0.1));
  box-shadow: 0 0 30px rgba(0, 195, 255, 0.4);
}

.skill-card:hover .skill-icon-wrapper::before {
  opacity: 1;
  animation: rotate-glow 3s linear infinite;
}

@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.skill-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-subtle);
  transition: all 0.4s ease;
}

.skill-card:hover .skill-icon {
  color: #ffffff;
  filter: drop-shadow(0 0 8px var(--accent-subtle));
}

.skill-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.skill-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.3s ease;
}

.skill-card:hover .skill-title {
  color: var(--accent-subtle);
}

.skill-description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Staggered animation on page load */
.skill-card {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }

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

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skill-card {
    padding: 1.5rem;
  }
  
  .skill-title {
    font-size: 1.2rem;
  }
}

/* ========== RESUME ========== */

.resume-section {
  text-align: center;
}

.resume-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;   /* add spacing */
}


/* ========== CONTACT / FOOTER ========== */

.site-footer {
  background: #070707;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  text-align: center;
}
/* ========== CONTACT SECTION STYLES ========== */

.site-footer {
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  color: white;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  letter-spacing: -0.02em;
}

.contact-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0 auto 3rem;
  max-width: 900px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
 
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: #1a1a2e;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.contact-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;

}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #667eea;
  font-weight: 600;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* Responsive adjustments */
@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-description {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-item {
    padding: 1.5rem 1.25rem;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .contact-icon svg {
    width: 24px;
    height: 24px;
  }
}
/* ========== PROJECT PAGES ========== */

.meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.meta-value {
  font-weight: 500;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.two-column-reverse {
  direction: rtl;
}

.two-column-reverse > * {
  direction: ltr;
}

.two-column-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.two-column-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .two-column,
  .two-column-reverse {
    grid-template-columns: 1fr;
  }

  .project-hero-overlay {
    padding-bottom: 2.25rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 380px;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-image-wrapper img {
    width: 220px;
  }

  .project-card {
    border-radius: 18px;
  }
}



 /* ========== BASE ========== */

:root {
  --bg-main: #050505;
  --bg-alt: #141414;
  --bg-card: #1f1f1f;
  --bg-card-soft: #262626;
  --accent: #ffffff;
  --accent-subtle: #00c3ff;
  --text-main: #f5f5f5;
  --text-muted: #b0b0b0;
  --border-soft: rgba(255, 255, 255, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --container-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}



/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .two-column,
  .two-column-reverse {
    grid-template-columns: 1fr;
  }

  .project-hero-overlay {
    padding-bottom: 2.25rem;
  }
  
  /* Added responsive styles for notes and blog */
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 380px;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-image-wrapper img {
    width: 220px;
  }

  .project-card {
    border-radius: 18px;
  }
  
  /* Added mobile styles for notes and blog */
  .note-card {
    padding: 1.5rem;
  }
  
  .note-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .note-tags {
    justify-content: flex-start;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .blog-title {
    font-size: 1.2rem;
  }
}
