:root {
  --bg-color: #0d0d0d;
  --card-bg: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #f9786c; /* Coral as the main accent */
  --accent-gradient: linear-gradient(135deg, #ffbf75 0%, #f9786c 100%);
  --font-main: "Outfit", sans-serif;
  --spacing-section: 4rem;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* Space for fixed navbar */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  margin-top: 1rem;
}

.full-width {
  width: 100%;
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(10px);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links .btn-primary {
  color: var(--bg-color);
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 0;
}

.profile-card-wrapper {
  position: relative;
  text-align: center;
}

.profile-card {
  background: transparent;
  z-index: 2;
  position: relative;
}

.image-wrapper {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-bg-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(249, 120, 108, 0.15) 0%,
    rgba(13, 13, 13, 0) 70%
  );
  z-index: 1;
  pointer-events: none;
}

/* Section */
.section {
  padding: var(--spacing-section) 0;
}

/* About */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.about-short {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

/* Services */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Experience Section - Minimal Single Column */
.experience-list {
  max-width: 900px;
  margin: 1.5rem auto 0;
}

.exp-item {
  display: block;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.exp-item:last-child {
  border-bottom: none;
}

.exp-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.exp-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.exp-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.exp-company {
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 500;
}

.exp-meta-dot {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1;
}

.exp-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.exp-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0.5rem 0 0 0;
}

.exp-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-highlights li {
  font-size: 0.9rem;
  color: #d1d5db;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.exp-highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.exp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-size: 0.75rem;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

/* Skills Marquee */
.skills-wrapper {
  padding: 2rem 0;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills-wrapper::before,
.skills-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px; /* Increased blur width */
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.skills-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.skills-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

.skills-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.skills-content {
  flex-shrink: 0;
  display: flex;
  gap: 4rem; /* Increased gap */
  min-width: 100%;
}

.scroll-left {
  animation: scroll 40s linear infinite;
}

.scroll-right {
  animation: scroll-reverse 40s linear infinite;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: transparent; /* Removed background */
  border-radius: 0;
  border: none; /* Removed border */
  min-width: auto; /* Allow natural width */
  transition: 0.3s;
}

.skill-item img {
  width: 64px; /* Slightly larger icons */
  height: 64px;
  filter: brightness(0) invert(1) opacity(0.6); /* Simple white icons with opacity */
  transition: 0.3s;
}

.skill-item span {
  display: none; /* Hide text as requested "simple items" usually implies just icons, but user said "keep icons simple". 
  Wait, the user said "keep the icons simple". I will comment out the span in HTML but keep CSS just in case, 
  actually I already commented it out in HTML. */
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes scroll-reverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Projects */
.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info .category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
}

/* Contact */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-left h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.email-link {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.footer-right {
  text-align: right;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  justify-content: flex-end;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.social-links a:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive Design */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile and below (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --spacing-section: 4rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* Typography */
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  /* Hero */
  .image-wrapper {
    width: 150px;
    height: 150px;
  }

  /* Experience Cards */
  .exp-item {
    padding: 1.5rem 0;
  }

  .exp-title {
    font-size: 1.1rem;
  }

  .exp-company {
    font-size: 0.95rem;
  }

  .exp-desc {
    font-size: 0.9rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Skills */
  .skills-content {
    gap: 2rem;
  }

  .skill-item {
    min-width: 100px;
    padding: 1rem;
  }

  .skill-item img {
    width: 40px;
    height: 40px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }

  .footer-left h2 {
    font-size: 2rem;
  }

  .footer-right {
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }

  /* Contact Form */
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Notification */
  .notification {
    left: 10px;
    right: 10px;
    top: 10px;
  }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .exp-item {
    padding: 1.25rem 0;
  }

  .exp-title {
    font-size: 1rem;
  }

  .exp-highlights li {
    font-size: 0.85rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
  }

  .footer-left h2 {
    font-size: 1.75rem;
  }
}

/* Loader Spinner */
.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.notification-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Button loading state */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Form Styles */
label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(249, 120, 108, 0.1);
}

input[type="file"] {
  padding: 0.5rem;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: #0d0d0d;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: white;
  color: #0d0d0d;
  border: 2px solid white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

/* Checkbox Styles */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

/* Admin Responsive */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="url"],
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
