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

html {
    scroll-behavior: smooth;
}

/* Foil Stamping Background Animation */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Symbols+2&display=swap");

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-primary);
  background-image: url(https://images.unsplash.com/photo-1615800098779-1be32e60cca3?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTUyNDAwMTN8&ixlib=rb-4.0.3&q=85);
  background-size: cover;
  background-repeat: no-repeat;
  user-select: none;
  pointer-events: none;
  z-index: -2; /* Keep behind your content */
}
#background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85); /* Light overlay */
  z-index: -1;
}
#background > div {
  --size: 3vw; /* Smaller for subtle background */
  --symbol: "✽";
  --pos_x: 0vw;
  --duration_move: 7s;
  --delay_move: 0s;
  --duration_rotate: 1.5s;
  --delay_rotate: 0s;
  --duration_clip: 10s;
  --delay_clip: 0s;
  --hue: 0deg;

  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(10px, var(--size), 60px);
  font-family: "Noto Sans Symbols 2", sans-serif;
  transform-origin: center top;
  animation: move var(--duration_move) var(--delay_move) linear infinite normal both;
}

#background span {
  display: block;
  position: relative;
  transform-origin: center;
  transform: rotate(0deg);
  animation: rotate var(--duration_rotate) var(--delay_rotate) ease-in-out infinite alternate both;
}

#background span:after {
  content: var(--symbol);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.1);
  text-stroke: 0.5px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
  position: relative;
  display: block;
  color: transparent;
  background-clip: text;
  filter: brightness(1.1) hue-rotate(var(--hue));
  background-image: url(https://images.unsplash.com/photo-1580822115965-0b2532068eff?&ixid=M3wzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2OTUxNDUzNzJ8&ixlib=rb-4.0.3&q=100&w=200&dpr=2);
  background-position: center;
  background-size: 200px auto;
  background-repeat: repeat;
  transform: translateZ(0);
  animation: bg1 var(--duration_clip) var(--delay_clip) linear infinite alternate both;
  opacity: 0.6; /* Make it more subtle as background */
}

#background > div:nth-child(even) span:after {
  animation-name: bg2;
}

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

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

@keyframes rotate {
  0% {
    transform: rotate(115deg);
  }
  100% {
    transform: rotate(245deg);
  }
}

@keyframes move {
  0% {
    transform: translate3d(var(--pos_x), calc(0vh - var(--size)), 0);
  }
  100% {
    transform: translate3d(var(--pos_x), 100vh, 0);
  }
}

/* Symbol variations */
#background > div:nth-child(23n + 1) { --symbol: "🟄"; }
#background > div:nth-child(23n + 2) { --symbol: "❉"; }
#background > div:nth-child(23n + 3) { --symbol: "🟉"; }
#background > div:nth-child(23n + 4) { --symbol: "❈"; }
#background > div:nth-child(23n + 5) { --symbol: "✣"; }
#background > div:nth-child(23n + 6) { --symbol: "🞯"; }
#background > div:nth-child(23n + 7) { --symbol: "🟎"; }
#background > div:nth-child(23n + 8) { --symbol: "♦"; }
#background > div:nth-child(23n + 9) { --symbol: "✢"; }
#background > div:nth-child(23n + 10) { --symbol: "🞵"; }
#background > div:nth-child(23n + 11) { --symbol: "✤"; }
#background > div:nth-child(23n + 12) { --symbol: "✦"; }
#background > div:nth-child(23n + 13) { --symbol: "❇"; }
#background > div:nth-child(23n + 14) { --symbol: "🞻"; }
#background > div:nth-child(23n + 15) { --symbol: "✶"; }
#background > div:nth-child(23n + 16) { --symbol: "✳"; }
#background > div:nth-child(23n + 17) { --symbol: "❊"; }
#background > div:nth-child(23n + 18) { --symbol: "🟄"; }
#background > div:nth-child(23n + 19) { --symbol: "✻"; }
#background > div:nth-child(23n + 20) { --symbol: "❋"; }
#background > div:nth-child(23n + 21) { --symbol: "✷"; }
#background > div:nth-child(23n + 22) { --symbol: "✴"; }

/* Position variations */
#background > div:nth-child(21n + 1) { --pos_x: 5vw; }
#background > div:nth-child(21n + 2) { --pos_x: 10vw; }
#background > div:nth-child(21n + 3) { --pos_x: 15vw; }
#background > div:nth-child(21n + 4) { --pos_x: 20vw; }
#background > div:nth-child(21n + 5) { --pos_x: 25vw; }
#background > div:nth-child(21n + 6) { --pos_x: 30vw; }
#background > div:nth-child(21n + 7) { --pos_x: 35vw; }
#background > div:nth-child(21n + 8) { --pos_x: 40vw; }
#background > div:nth-child(21n + 9) { --pos_x: 45vw; }
#background > div:nth-child(21n + 10) { --pos_x: 50vw; }
#background > div:nth-child(21n + 11) { --pos_x: 55vw; }
#background > div:nth-child(21n + 12) { --pos_x: 60vw; }
#background > div:nth-child(21n + 13) { --pos_x: 65vw; }
#background > div:nth-child(21n + 14) { --pos_x: 70vw; }
#background > div:nth-child(21n + 15) { --pos_x: 75vw; }
#background > div:nth-child(21n + 16) { --pos_x: 80vw; }
#background > div:nth-child(21n + 17) { --pos_x: 85vw; }
#background > div:nth-child(21n + 18) { --pos_x: 90vw; }
#background > div:nth-child(21n + 19) { --pos_x: 95vw; }
#background > div:nth-child(21n + 20) { --pos_x: 100vw; }

/* Color variations */
#background > div:nth-child(12n + 1) { --hue: 30deg; }
#background > div:nth-child(12n + 2) { --hue: 270deg; }
#background > div:nth-child(12n + 3) { --hue: 90deg; }
#background > div:nth-child(12n + 4) { --hue: 150deg; }
#background > div:nth-child(12n + 5) { --hue: 330deg; }
#background > div:nth-child(12n + 6) { --hue: 180deg; }
#background > div:nth-child(12n + 7) { --hue: 60deg; }
#background > div:nth-child(12n + 8) { --hue: 210deg; }
#background > div:nth-child(12n + 9) { --hue: 120deg; }
#background > div:nth-child(12n + 10) { --hue: 240deg; }
#background > div:nth-child(12n + 11) { --hue: 300deg; }

/* Animation timing variations */
#background > div:nth-child(8n + 1) { --delay_move: -4s; }
#background > div:nth-child(8n + 2) { --delay_move: -5s; }
#background > div:nth-child(8n + 3) { --delay_move: -6s; }
#background > div:nth-child(8n + 4) { --delay_move: -1s; }
#background > div:nth-child(8n + 5) { --delay_move: -2s; }
#background > div:nth-child(8n + 6) { --delay_move: -3s; }
#background > div:nth-child(8n + 7) { --delay_move: -7s; }

#background > div:nth-child(9n + 1) { --duration_move: 7.5s; }
#background > div:nth-child(9n + 2) { --duration_move: 8s; }
#background > div:nth-child(9n + 3) { --duration_move: 8.5s; }
#background > div:nth-child(9n + 4) { --duration_move: 9s; }
#background > div:nth-child(9n + 5) { --duration_move: 5.5s; }
#background > div:nth-child(9n + 6) { --duration_move: 6s; }
#background > div:nth-child(9n + 7) { --duration_move: 6.5s; }
#background > div:nth-child(9n + 8) { --duration_move: 7.8s; }

#background > div:nth-child(7n + 1) { --delay_rotate: 0.3s; }
#background > div:nth-child(7n + 2) { --delay_rotate: 0.6s; }
#background > div:nth-child(7n + 3) { --delay_rotate: 0.9s; }
#background > div:nth-child(7n + 4) { --delay_rotate: -0.3s; }
#background > div:nth-child(7n + 5) { --delay_rotate: -0.6s; }
#background > div:nth-child(7n + 6) { --delay_rotate: -0.9s; }

#background > div:nth-child(6n + 1) { --duration_rotate: 1s; }
#background > div:nth-child(6n + 2) { --duration_rotate: 1.6s; }
#background > div:nth-child(6n + 3) { --duration_rotate: 1.1s; }
#background > div:nth-child(6n + 4) { --duration_rotate: 1.2s; }
#background > div:nth-child(6n + 5) { --duration_rotate: 1.3s; }

#background > div:nth-child(5n + 1) { --size: 2vw; }
#background > div:nth-child(5n + 2) { --size: 3vw; }
#background > div:nth-child(5n + 3) { --size: 4vw; }
#background > div:nth-child(5n + 4) { --size: 5vw; }

/* Make sure your content is readable over the background */
.main-content {
  position: relative;
  z-index: 1;
}

.navbar {
  position: relative;
  z-index: 1000;
}

/* CSS Variables for Theme */
:root {
    /* Light Theme Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Rainbow Colors */
    --color-rainbow-red: #ef4444;
    --color-rainbow-orange: #f97316;
    --color-rainbow-yellow: #eab308;
    --color-rainbow-green: #22c55e;
    --color-rainbow-blue: #3b82f6;
    --color-rainbow-indigo: #6366f1;
    --color-rainbow-purple: #8b5cf6;
    --color-rainbow-pink: #ec4899;

    /* Light Theme */
    --bg-primary: rgba(255, 248, 248, 0.95);
    --bg-secondary: rgba(249, 250, 251, 0.8);
    --text-primary: var(--color-gray-900);
    --text-secondary: var(--color-gray-600);
    --text-accent: linear-gradient(135deg, var(--color-rainbow-red), var(--color-rainbow-purple));
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
}



/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Chessboard Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

.loader .container {
    height: 120px;
    width: 120px;
    position: relative;
}

.loader .square {
    height: 94%;
    width: 94%;
    background: var(--color-white);
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -47% 0 0 -47%;
    border-radius: 2px;
}

.loader .black { 
    background: var(--color-black);  
    animation: rotate 3s infinite linear; 
}

.loader .loading-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 80px;
}

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



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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0 20px;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-logo .logo-container {
    position: relative;
    display: inline-block;
}

.nav-logo .logo-gif {
    height: 80px;
    width: auto;
    border-radius: 50%; /* Optional: make GIF circular too */
}

.nav-logo .profile-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 50px; /* Adjust size as needed */
    width: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-accent);
    transition: width 0.3s ease;
}

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

/* Theme Toggle */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--color-rainbow-blue);
    transform: scale(1.1);
}

.theme-icon {
    display: none;
    color: var(--text-primary);
}

.theme-icon svg {
    width: 20px;
    height: 20px;
}



/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

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

.section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.text-gradient {
    background: var(--text-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn--primary {
    background: var(--text-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn--outline {
    background: transparent;
    color: black;
    border: 2px solid var(--border-color);
}

.btn--outline:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.floating-elements {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.card-icon {
    font-size: 1.5rem;
}

.card-text {
    font-weight: 600;
    color: var(--text-primary);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Skills Section */
.skills-section {
    margin-top: 4rem;
    text-align: center;
}

.skills-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--text-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.skill-icon {
    width: 16px;
    height: 16px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--text-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--text-accent);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--color-rainbow-blue);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--color-rainbow-purple);
}

/* Certificates Section */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background: var(--text-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.certificate-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.certificate-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* About Section Styles */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-text:hover {
    transform: translateY(-5px);
}

.about-text h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.bullet-points {
    list-style: none;
    margin-top: 20px;
}

.bullet-points li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.bullet-points li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 1.2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1rem;
}

.highlight {
    color: #3498db;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.contact-link svg {
    color: var(--color-rainbow-blue);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-rainbow-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--bg-secondary);
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: var(--text-secondary);
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--color-rainbow-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px var(--shadow-medium);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

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

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

/* Scroll Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideInUp 0.6s ease-out forwards;
}

.animate-slide-down {
    animation: slideInDown 0.6s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.6s ease-out forwards;
}

/* Stagger Animation Delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }
/* Samurai Animation Styles */
.samurai-container {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.samurai {
    position: relative;
    width: 96px;
    height: 96px;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    transform: scale(3);
    overflow: hidden;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.samurai.idle {
    background-image: url("https://assets.codepen.io/97137/s__IDLE.png");
    animation: idle 1s steps(10, end) infinite;
}

.samurai.run {
    background-image: url("https://assets.codepen.io/97137/s_RUN.png");
    animation: run 1s steps(16) infinite;
}

.samurai.attack {
    background-image: url("https://assets.codepen.io/97137/s__ATTACK+1.png");
    animation: attack 0.35s steps(7, end) infinite;
}

.controls-hint {
    margin-top: 120px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

@keyframes idle {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -960px;
    }
}

@keyframes run {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -1536px;
    }
}

@keyframes attack {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -672px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .samurai {
        transform: scale(2);
    }
    
    .controls-hint {
        margin-top: 80px;
        font-size: 0.8rem;
    }
}
.controls-hint {
    margin-top: 140px;
    font-family: 'Inter', sans-serif;
}

.control-keys {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-light);
    backdrop-filter: blur(10px);
}

.control-keys kbd {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 4px var(--shadow-light);
    min-width: 32px;
    text-align: center;
    font-family: 'Inter', monospace;
}

.control-keys span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0.25rem;
}

.control-keys kbd:nth-child(1),
.control-keys kbd:nth-child(2) {
    margin-right: 0.25rem;
}

.control-keys kbd:nth-child(4) {
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .controls-hint {
        margin-top: 100px;
    }
    
    .control-keys {
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }
    
    .control-keys kbd {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
        min-width: 28px;
    }
    
    .control-keys span {
        font-size: 0.8rem;
    }
}
/* Animated Mail Certificates */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.certificate-mail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate-mail:hover {
    transform: translateY(-10px);
}

.certificate-info {
    margin-top: 2rem;
    text-align: center;
}

.certificate-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.certificate-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animated Mail Styles */
.letter-image {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
}

.animated-mail {
    position: absolute;
    height: 150px;
    width: 200px;
    transition: .4s;
}

.animated-mail .body {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 100px 200px;
    border-color: transparent transparent var(--color-rainbow-red) transparent;
    z-index: 2;
}

.animated-mail .top-fold {
    position: absolute;
    top: 50px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 100px 0 100px;
    transform-origin: 50% 0%;
    transition: transform .4s .4s, z-index .2s .4s;
    border-color: var(--color-rainbow-orange) transparent transparent transparent;
    z-index: 2;
}

.animated-mail .back-fold {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 100px;
    background: var(--color-rainbow-orange);
    z-index: 0;
}

.animated-mail .left-fold {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 0 50px 100px;
    border-color: transparent transparent transparent var(--color-rainbow-red);
    z-index: 2;
}

.animated-mail .letter {
    left: 20px;
    bottom: 0px;
    position: absolute;
    width: 160px;
    height: 60px;
    background: white;
    z-index: 1;
    overflow: hidden;
    transition: .4s .2s;
}

.animated-mail .letter .letter-border {
    height: 10px;
    width: 100%;
    background: repeating-linear-gradient(
        -45deg,
        var(--color-rainbow-purple),
        var(--color-rainbow-purple) 8px,
        transparent 8px,
        transparent 18px
    );
}

.animated-mail .letter .letter-title {
    margin-top: 10px;
    margin-left: 5px;
    height: 10px;
    width: 40%;
    background: var(--color-rainbow-purple);
}

.animated-mail .letter .letter-context {
    margin-top: 10px;
    margin-left: 5px;
    height: 10px;
    width: 20%;
    background: var(--color-rainbow-purple);
}

.animated-mail .letter .letter-stamp {
    margin-top: 30px;
    margin-left: 120px;
    border-radius: 100%;
    height: 30px;
    width: 30px;
    background: var(--color-rainbow-purple);
    opacity: 0.3;
}

.shadow {
    position: absolute;
    top: 200px;
    left: 50%;
    width: 400px;
    height: 30px;
    transition: .4s;
    transform: translateX(-50%);
    border-radius: 100%;
    background: radial-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.0), rgba(0,0,0,0.0));
}

/* Hover Effects */
.certificate-mail:hover .animated-mail {
    transform: translateY(50px);
}

.certificate-mail:hover .animated-mail .top-fold {
    transition: transform .4s, z-index .2s;
    transform: rotateX(180deg);
    z-index: 0;
}

.certificate-mail:hover .animated-mail .letter {
    height: 180px;
}

.certificate-mail:hover .shadow {
    width: 250px;
}

/* PDF Modal Styles */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.pdf-modal-content {
    position: relative;
    background-color: white;
    margin: 7% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.pdf-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pdf-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pdf-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.pdf-frame-container {
    height: calc(100% - 80px);
    padding: 1.5rem;
    background: #f8fafc;
}

#pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Modal animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        height: 80vh;
        margin: 15% auto;
    }
    
    .pdf-header {
        padding: 0.75rem 1rem;
    }
    
    .pdf-title {
        font-size: 1.1rem;
    }
    
    .pdf-control-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .pdf-frame-container {
        padding: 1rem;
        height: calc(100% - 60px);
    }
    
    .pdf-controls {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pdf-modal-content {
        width: 98%;
        height: 80vh;
        margin: 20% auto;
    }
    
    .pdf-control-btn span {
        display: none; /* Hide text on very small screens */
    }
    
    .pdf-control-btn {
        padding: 0.5rem;
    }
}
/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

#load-more-btn {
    padding: 12px 30px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .pdf-modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .pdf-viewer-container {
        height: 400px;
    }
    
    .pdf-actions {
        flex-direction: column;
    }
}
/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.load-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

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

#load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

/* Animation for button appearance */
.load-btn {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* For image approach */
#certificate-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

/* Ensure image maintains aspect ratio */
.pdf-frame-container img {
    display: block;
    margin: 0 auto;
}