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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for the sticky navbar */
}

/* === THEME VARIABLES (LIGHT MODE ONLY) === */
body {
  --primary-bg: #FFFFFF;
  --secondary-bg: #F5F5F5;
  --accent-purple: #7000FF;
  --accent-purple-hover: #5a00d0;
  --text-light: #333333;
  --text-medium: #666666;
  --text-dark: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow-color: rgba(0,0,0,0.1);
  --primary-bg-rgb: 255,255,255;
}

/* === GENERAL STYLES === */
body {
  font-family: 'Inter', sans-serif;
  background: var(--primary-bg);
  color: var(--text-medium);
  font-size: 16px;
  line-height: 1.6;
}

/* === FLOATING ICONS BACKGROUND === */
.icon-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.floating-icon {
    position: absolute;
    width: 50px; /* Base size */
    height: auto;
    opacity: 0.2;
    user-select: none;
    pointer-events: none;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(15px) rotate(10deg); }
    50% { transform: translateY(0) translateX(0) rotate(0deg); }
    75% { transform: translateY(20px) translateX(-15px) rotate(-10deg); }
    100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

/* Positioning and animation variations for each icon */
.floating-icon:nth-child(1) { top: 15%; left: 10%; animation-duration: 25s; width: 60px; }
.floating-icon:nth-child(2) { top: 30%; left: 85%; animation-duration: 22s; animation-delay: 3s; width: 70px; }
.floating-icon:nth-child(3) { top: 80%; left: 20%; animation-duration: 28s; animation-delay: 1s; }
.floating-icon:nth-child(4) { top: 50%; left: 50%; animation-duration: 19s; animation-delay: 5s; width: 40px; }
.floating-icon:nth-child(5) { top: 10%; left: 60%; animation-duration: 26s; animation-delay: 2s; }
.floating-icon:nth-child(6) { top: 90%; left: 90%; animation-duration: 21s; animation-delay: 4s; width: 65px; }
.floating-icon:nth-child(7) { top: 65%; left: 5%; animation-duration: 29s; }
.floating-icon:nth-child(8) { top: 5%; left: 30%; animation-duration: 23s; animation-delay: 6s; width: 45px; }


.section-title {
  font-family: 'Jost', sans-serif;
  color: var(--text-light);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--accent-purple);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  position: sticky;
  top: 0;
  background-color: rgba(var(--primary-bg-rgb), 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-family: 'Jost', sans-serif;
  color: var(--text-light);
  font-size: 2rem;
  font-weight: 700;
}
.logo::after { content: "."; color: var(--accent-purple); }

.navbar nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; list-style: none; gap: 2rem; }
.nav-links a { color: var(--text-medium); text-decoration: none; font-weight: 500; transition: color 0.3s ease; position: relative; }
.nav-links a:hover { color: var(--accent-purple); }
.nav-links a.active { color: var(--accent-purple); font-weight: 600; }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-purple);
}

.menu-toggle { display: none; font-size: 2rem; color: var(--text-light); cursor: pointer; }

/* === HERO & PAGE SECTIONS === */
.hero.centered-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 2rem;
  text-align: center;
}

.page-section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-content { max-width: 800px; margin: 0 auto; }
.hero-intro { color: var(--accent-purple); margin-bottom: 1rem; font-size: 1.1rem; }
.hero-title { font-family: 'Jost', sans-serif; color: var(--text-light); font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title strong { color: var(--accent-purple); }
.hero-subtitle { font-size: 1.1rem; max-width: 700px; margin: 0 auto 2rem auto; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; }
.btn { padding: 0.8rem 1.8rem; border-radius: 4px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; border: 1px solid transparent; text-align: center; display: inline-block;} /* Added text-align and display */
.btn-primary { background-color: var(--accent-purple); color: var(--text-dark); }
.btn-primary:hover { background-color: var(--accent-purple-hover); border-color: var(--accent-purple-hover); }
.btn-secondary { color: var(--accent-purple); border-color: var(--accent-purple); }
.btn-secondary:hover { background-color: rgba(112, 0, 255, 0.1); color: var(--accent-purple-hover); }

/* === CARDS & GRIDS === */
.about-card, .project-card, .skills-category, .cert-card, .contact-card { /* Added .contact-card here */
  background-color: var(--secondary-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: all 0.3s ease;
}
.about-card { max-width: 800px; margin: 0 auto; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(112, 0, 255, 0.2); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.card-header i { font-size: 2.5rem; color: var(--accent-purple); }
.external-link { font-size: 1.2rem; color: var(--text-medium); }
.external-link:hover { color: var(--accent-purple); }
.project-card h3 { color: var(--text-light); margin-bottom: 1rem; }
.project-card p { font-size: 0.95rem; }
.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; padding: 0; }
.tech-list li { background-color: rgba(112, 0, 255, 0.1); color: var(--accent-purple); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.skills-category h3 { color: var(--accent-purple); margin-bottom: 1rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
.skills-category ul { list-style: none; padding: 0; }
.skills-category li { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; color: var(--text-light); }
.skills-category li i { color: var(--accent-purple); font-size: 1.2rem; }
.certifications-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cert-card h3 { color: var(--accent-purple); margin-bottom: 1rem; }
.cert-card ul { list-style: none; padding: 0; }
.cert-card li { margin-bottom: 0.5rem; }

/* === CONTACT SECTION STYLES === */
.contact-section { 
    text-align: center; 
}

.social-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Ensures icons wrap on very small screens */
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-bg);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--accent-purple);
    font-size: 1.8rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-purple);
    color: var(--text-dark); /* This variable is white */
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(112, 0, 255, 0.2);
}

/* Responsive adjustments for the new contact grid */
@media (min-width: 600px) {
    /* No specific changes needed, flexbox handles it */
}

@media (min-width: 1024px) {
    /* Increase gap for wider screens */
    .social-icons-container {
        gap: 2.5rem;
    }
}
/* Responsive adjustments for the new contact grid */

/* On tablets and medium screens, display 2 columns */
@media (min-width: 600px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On desktops and wide screens, display all 4 in a single line */
@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === RESPONSIVE STYLES === */
@media (max-width: 900px) {
  .page-section { padding: 4rem 2rem; }
  .certifications-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } /* Adjusted for smaller screens */
}

@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }
  .navbar { padding: 1rem 1.5rem; }
  .nav-links { display: none; position: fixed; top: 0; right: -100%; height: 100vh; width: min(75vw, 400px); background-color: var(--secondary-bg); flex-direction: column; align-items: center; justify-content: center; gap: 3rem; box-shadow: -10px 0px 30px -15px var(--shadow-color); transition: transform 0.3s ease-in-out; }
  .nav-links.active { display: flex; transform: translateX(-100%); }
  .menu-toggle { display: block; z-index: 101; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
}