@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body.light-mode .skills,
body.light-mode .about {
  background: #f7f7f7 !important;
}
body.light-mode .skills .section-title,
body.light-mode .about .section-title {
  color: #181818 !important;
}
body.light-mode .skills .section-subtitle,
body.light-mode .about .section-subtitle {
  color: #444 !important;
}

body.light-mode,
body.light-mode p,
body.light-mode span,
body.light-mode li,
body.light-mode .bio-text,
body.light-mode .category-tag,
body.light-mode .project-features li,
body.light-mode .card-content p,
body.light-mode .section-header,
body.light-mode .section-title,
body.light-mode .section-subtitle,
body.light-mode .project-title,
body.light-mode .project-description,
body.light-mode .card-title,
body.light-mode .skill-name,
body.light-mode .contact-details h4,
body.light-mode .contact-details a,
body.light-mode .form-input,
body.light-mode .btn-outline,
body.light-mode .btn-submit {
  color: #181818 !important;
}

body.light-mode .project-features li {
  color: #222 !important;
}

body.light-mode .project-features li::before {
  color: #181818 !important;
}

body.light-mode .card-content p,
body.light-mode .section-subtitle,
body.light-mode .project-description,
body.light-mode .skill-name {
  color: #444 !important;
}

body.light-mode .category-tag {
  background: rgba(0,0,0,0.07);
  color: #181818 !important;
}

body.light-mode .btn-outline {
  border: 1px solid #181818;
  background: #fff;
  color: #181818 !important;
}
body.light-mode .btn-outline:hover {
  background: #181818;
  color: #fff !important;
}
body.light-mode .btn-submit {
  background: #181818;
  color: #fff !important;
}
body.light-mode .btn-submit:hover {
  background: #181818;
  color: #fff !important;
}

body.light-mode .project-features li::before {
  color: #181818;
}

body.light-mode .navbar {
  background: rgba(240, 240, 240, 0.85);
  border-bottom: 1px solid #e0e0e0;
}
body.light-mode .nav-logo .logo-text,
body.light-mode .nav-link,
body.light-mode .nav-link.active {
  color: #181818;
}
body.light-mode .nav-link.active {
  font-weight: 700;
}
body.light-mode .nav-link.active::after {
  background: #181818;
}
body.light-mode .hero-title {
  background: none !important;
  color: #181818 !important;
  -webkit-text-fill-color: #181818 !important;
}




:root {
  /* Dark Theme Palette (default) */
  --bg-dark: #050505;
  --bg-card: #0F0F0F;
  --bg-card-hover: #161616;
  --text-white: #FFFFFF;
  --text-gray: #A1A1AA;
  --text-dark: #000000;
  --border-color: #27272A;
  --accent-color: #FFFFFF;
  --accent-glow: rgba(255, 255, 255, 0.15);
  /* Spacing */
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-16: 4rem;
  --space-24: 6rem;
  /* Radius */
  --radius-lg: 16px;
  --radius-pill: 100px;
  /* Fonts */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body.light-mode {
  --bg-dark: #f7f7f7;
  --bg-card: #fff;
  --bg-card-hover: #f1f1f1;
  --text-white: #181818;
  --text-gray: #444;
  --text-dark: #fff;
  --border-color: #e0e0e0;
  --accent-color: #181818;
  --accent-glow: rgba(0,0,0,0.08);
}

body.light-mode {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

body.light-mode .section-title,
body.light-mode .card-title,
body.light-mode .project-title {
  color: #181818;
}

body.light-mode .section-subtitle,
body.light-mode .project-description,
body.light-mode .card-content p,
body.light-mode .skill-name {
  color: #444;
}

body.light-mode .nav-link,
body.light-mode .nav-link.active,
body.light-mode .nav-logo .logo-text {
  color: #181818;
}

body.light-mode .btn-resume,
body.light-mode .btn-primary {
  background: #181818;
  color: #fff;
  border: 1px solid #181818;
}

body.light-mode .btn-resume:hover,
body.light-mode .btn-primary:hover {
  background: #fff;
  color: #181818;
  border: 1px solid #181818;
}

body.light-mode .btn-secondary {
  background: #fff;
  color: #181818;
  border: 1px solid #e0e0e0;
}

body.light-mode .btn-secondary:hover {
  background: #f1f1f1;
  color: #181818;
  border: 1px solid #181818;
}

body.light-mode .project-card,
body.light-mode .experience-card,
body.light-mode .skill-item,
body.light-mode .contact-form-container {
  background: #fff;
  border-color: #e0e0e0;
}

body.light-mode .project-card:hover,
body.light-mode .experience-card:hover,
body.light-mode .skill-item:hover {
  background: #f1f1f1;
  border-color: #bbb;
}

body.light-mode .social-link {
  background: #fff;
  color: #181818;
  border-color: #e0e0e0;
}

body.light-mode .social-link:hover {
  background: #181818;
  color: #fff;
}

body.light-mode .form-input {
  background: #f7f7f7;
  color: #181818;
  border-color: #e0e0e0;
}

body.light-mode .form-input:focus {
  border-color: #181818;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.5s ease-in-out; /* Smooth Page Load */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

.nav-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.5px;
  visibility: hidden;
  pointer-events: none;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link.active {
    color: var(--text-white);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-white);
}

.btn-resume {
  background: var(--text-white);
  color: var(--bg-dark);
  border: 1px solid transparent;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-resume:hover {
  background: #181818;
  color: #f1f1f1;
  border: 1px solid #fff;
  transform: none !important;
  box-shadow: none !important
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  display: block;
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Typing Cursor Animation */
.hero-tagline::after {
  content: '|';
  display: inline-block;
  animation: blink 0.7s infinite;
  color: var(--accent-color);
  margin-left: 4px;
  vertical-align: baseline;
}

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

.hero-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.6;
}

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

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  flex: 1;
  min-width: 150px;
}

/* Button & Interaction Styles */
.btn-primary, .btn-secondary, .btn-submit, .btn-outline {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 500;
  background: var(--text-white);
  color: var(--bg-dark);
  border: 1px solid var(--text-white);
  text-decoration: none;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-white);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* Hero Visual Container */
.hero-visual {
  height: 300px;
  width: 300px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  margin: -80px auto 0 auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  border: 4px solid transparent;
}

body.light-mode .hero-image {
  border: 4px solid #181818;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Experience Cards */
.about {
  padding: var(--space-24) 0;
  background: linear-gradient(to bottom, var(--bg-dark), #0a0a0a);
}

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

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.experience-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.card-content p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.category-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-white);
}

/* Projects */
.projects {
  padding: var(--space-24) 0;
}



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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.project-image {
  height: 220px;
  background: #1a1a1a;
  overflow: hidden;
}

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

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

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.project-features ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.project-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
}

.project-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--text-white);
  font-size: 1.2rem;
  line-height: 1;
}

.btn-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding: 0.9rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--text-white);
  color: var(--bg-dark);
  border-color: var(--text-white);
}

/* Skills */
.skills {
  padding: var(--space-24) 0;
  background: #080808;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

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

.skill-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-gray);
  transform: translateY(-3px);
}

.skill-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.skill-name {
  display: block;
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* Contact */
.contact {
  padding: var(--space-24) 0;
}

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

.contact-details h4 {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-details a {
  color: var(--text-white);
  font-size: 1.1rem;
  text-decoration: none;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-grid {
  display: flex;
  flex-direction: column; 
  gap: 1rem;             
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--text-white);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--text-white);
  color: var(--bg-dark);
}

.contact-form-container {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.form-group.focused .form-input {
    border-color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.light-mode .social-link {
    background: #ffffff; 
    color: #181818 !important; 
    border-color: #181818;
}

body.light-mode .social-link span {
    color: #181818 !important;
}

body.light-mode .social-link:hover {
    background: #181818;
    color: #ffffff !important;
    border-color: #181818;
}

body.light-mode .social-link:hover span {
    color: #ffffff !important;
}

.form-input {
  width: 100%;
  padding: 1rem;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-white);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--text-white);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--text-white);
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

body.light-mode .btn-submit {
    background: #181818 !important;
    color: #ffffff !important;   
}

body.light-mode .btn-submit:hover {
    background: #181818 !important; 
    color: #ffffff !important;    
    opacity: 1;                   
}

.btn-submit:hover {
  opacity: 1;
}



/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--text-white);
    width: 0%;
    animation: progress 4s linear infinite;
}

@keyframes progress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Accessibility */
.keyboard-nav *:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    height: 300px;
    order: -1;
  }

  .hero-buttons {
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
  }

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

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

