html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #fff;
}

section[id] {
  scroll-margin-top: 120px;
}

/* Particle Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place it behind all other content */
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(17, 17, 17, 0.85); /* Semi-transparent */
  backdrop-filter: blur(10px); /* Glass effect */
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  border-radius: 50px; /* Pill shape */
  box-shadow: 0 4px 20px rgba(0, 255, 213, 0.15); /* Subtle neon glow */
  border: 1px solid rgba(0, 255, 213, 0.2);
}

nav .logo {
  font-weight: bold;
  font-size: 24px;
}

nav .logo span {
  color: #00ffd5;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  padding: 8px 12px;
  transition: 0.3s;
}

nav ul li a.active,
nav ul li a:hover {
  background: #00ffd5;
  color: #000;
  border-radius: 5px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 140px 60px 80px; /* Increased top padding to clear floating nav */
}

.hero .text {
  max-width: 600px;
}

.hero .text p {
  font-size: 24px;
  color: #ccc;
}

.hero .text h1 {
  font-size: 48px;
}

.hero .text h1 span {
  color: #00ffd5;
}

.highlight {
  color: #00ffd5;
  font-weight: bold;
  transition: opacity 0.5s ease;
}

.buttons {
  margin-top: 30px;
}

.btn, .btn-outline {
  padding: 10px 20px;
  border-radius: 5px;
  margin-right: 10px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.btn {
  background: #00ffd5;
  color: #000;
  transition: background 0.3s;
}

.btn:hover {
  background-color: #66fff2;
}

.btn-outline {
  border: 2px solid #00ffd5;
  color: #00ffd5;
  background: transparent;
}

.btn-outline:hover {
  background-color: #00ffd5;
  color: black;
}

.socials {
  margin-top: 20px;
}

.socials a {
  color: #00ffd5;
  margin-right: 10px;
  font-size: 20px;
  text-decoration: none;
}

.image img {
  max-width: 300px;
  border: 5px solid #00ffd5;
  border-radius: 50%;
  filter: drop-shadow(1px 1px 20px #00ffd5)
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 15px 20px;
    border-radius: 20px;
    gap: 15px;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 180px; /* Extra space for stacked mobile nav */
  }

  .image {
    margin-top: 40px;
  }
}

/* Skills Ticker Line */
.skills-ticker {
  width: 100%;
  overflow: hidden;
  background: rgba(0, 255, 213, 0.05); /* Subtle neon background */
  border-top: 1px solid rgba(0, 255, 213, 0.2);
  border-bottom: 1px solid rgba(0, 255, 213, 0.2);
  padding: 15px 0;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-ticker 20s linear infinite;
}

.ticker-track span {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 15px;
}

.ticker-track span.dot {
  color: #00ffd5;
  font-size: 18px;
}

@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* About Section */
.about-section {
  padding: 80px 60px;
  text-align: center;
}

.about-section h1 {
  font-size: 36px;
  margin-bottom: 40px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.about-text {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.about-image img {
  max-width: 300px;
  border-radius: 10px;
  border: 5px solid #00ffd5;
}

/* --- Footer --- */
:root {
  --footer-bg: #111;
  --text-muted: #ccc;
  --accent-color: #00ffd5;
}

.footer-section {
  position: relative;
  padding-top: 100px;
  margin-top: 80px;
  background-color: #000;
}

/* --- Overlapping CTA Banner --- */
.cta-banner {
  background-color: #1a1a1a;
  border: 1px solid rgba(0, 255, 213, 0.2);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 255, 213, 0.1);
}

.cta-left h2 {
  margin: 0;
  font-size: 2.5rem;
  color: #fff;
}

.cta-right {
  max-width: 400px;
  text-align: right;
}

.cta-right p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* --- Main Dark Footer --- */
.main-footer {
  background-color: var(--footer-bg);
  color: white;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 150px 5% 40px 5%;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Column Styling --- */
.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.brand-col .logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-col .brand-desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Links */
.links-col ul, .contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-col li, .contact-info li {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.links-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.links-col a:hover {
  color: white;
}

.contact-info li {
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-info i {
  color: var(--accent-color);
  margin-top: 4px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.social-circle {
  width: 35px;
  height: 35px;
  background: rgba(0, 255, 213, 0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}

.social-circle:hover {
  background: rgba(0, 255, 213, 0.2);
}

/* --- Bottom Copyright Pill --- */
.footer-bottom {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.copyright-pill {
  background-color: #000;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 10px 30px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* Skills Section */
.skills-section {
  padding: 80px 60px;
  text-align: center;
}

.skills-section h1 {
  font-size: 36px;
  margin-bottom: 40px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.skill-box {
  background: #111;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #00ffd5;
  transition: transform 0.3s;
}

.skill-box:hover {
  transform: translateY(-10px);
}

.skill-box i {
  font-size: 40px;
  color: #00ffd5;
  margin-bottom: 10px;
}

.skill-box h3 {
  font-size: 20px;
  color: #00ffd5;
}

.skill-box p {
  font-size: 14px;
  color: #ddd;
}

/* Projects Section */
.projects-section {
  padding: 80px 60px;
  text-align: center;
}

.projects-section h1 {
  font-size: 36px;
  margin-bottom: 40px;
}

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

.project-card {
  background: #111;
  border: 2px solid #00ffd5;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  transition: transform 0.3s ease;
  
}

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

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

.project-image-container {
  height: 180px; /* Set a fixed height for all image containers */
  overflow: hidden; /* Hide parts of the image that overflow */
  border-radius: 8px;
  margin-bottom: 15px;
  border: 2px solid #00ffd5;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Scale the image to cover the container, cropping if necessary */
  object-position: center; /* Center the image within the container */
  transition: transform 0.3s ease;
}

.project-card h3 {
  color: #00ffd5;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 15px;
}

.project-card .btn-outline {
  border: 2px solid #00ffd5;
  color: #00ffd5;
  background: transparent;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  display: inline-block;
  transition: 0.3s;
}

.project-card .btn-outline:hover {
  background: #00ffd5;
  color: #000;
}

/* Contact Section */
.contact-section {
  padding: 80px 60px;
  text-align: center;
}

.contact-section h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.contact-description {
  font-size: 16px;
  margin-bottom: 40px;
  color: #ccc;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.contact-info {
  max-width: 300px;
  text-align: left;
}

.contact-info p {
  margin: 10px 0;
  font-size: 16px;
  color: #ddd;
}

.contact-info i {
  margin-right: 10px;
  color: #00ffd5;
}

.contact-form {
  max-width: 500px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #00ffd5;
  background: transparent;
  color: #fff;
  font-size: 14px;
  border-radius: 5px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
}

.contact-form button {
  background: #00ffd5;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #00dabd;
}

/* CV Section */
.cv-section {
  padding: 80px 60px;
  text-align: center;
}

.cv-section h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cv-content {
  max-width: 900px;
  margin: auto;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.cv-block {
  background: #111;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 213, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cv-block:hover {
  transform: translateY(-5px);
  border-color: #00ffd5;
  box-shadow: 0 10px 20px rgba(0, 255, 213, 0.1);
}

.cv-block.full-width {
  grid-column: 1 / -1;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 10px 0;
}

.cv-block.full-width:hover {
  transform: none;
}

.cv-block h2 {
  color: #00ffd5;
  margin-bottom: 10px;
}

.cv-block ul {
  list-style: disc;
  margin-left: 20px;
  color: #ccc;
}

/* Scroll Animations */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Footer Design --- */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .brand-col {
    grid-column: 1 / -1;
  }
  .contact-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    width: 90%;
    transform: translate(-50%, -60%);
  }
  .cta-left h2 {
    font-size: 2rem;
  }
  .cta-right {
    text-align: center;
    margin-top: 1.5rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .main-footer {
    padding-top: 220px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }
}