/* ====== VARIABLES ====== */
:root {
  --primary-color: #4a6cf7;
  --secondary-color: #f75f6c;
  --dark-color: #1d2a3a;
  --light-color: #f9f9f9;
  --text-color: #6b7280;
  --heading-color: #1e293b;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
  --section-bg: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --radius: 12px;
}

/* Dark Theme Variables */
body.dark-mode {
  --primary-color: #5b7dff;
  --secondary-color: #f75f6c;
  --dark-color: #e2e8f0;
  --light-color: #1e1e2c;
  --text-color: #a8b3cf;
  --heading-color: #f1f5f9;
  --bg-color: #0f1419;
  --card-bg: #1a1f2e;
  --section-bg: #151b28;
  --border-color: #2a3548;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ====== RESET & BASE STYLES ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-color);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ====== SCROLL PROGRESS BAR ====== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--light-color), var(--primary-color));
  z-index: 10000;
  transition: width 0.1s ease;
}

/* ====== FLOATING PARTICLES ====== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-200px) translateX(-50px);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0.5;
  }
}

/* ====== PRELOADER ====== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  gap: 5px;
}

.loader span {
  display: inline-block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  animation: pulse 1.5s infinite alternate;
}

.loader span:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* ====== CURSOR ====== */
.cursor,
.cursor-follower {
  display: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    transition: transform 0.1s ease;
  }

  .cursor-follower {
    display: block;
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
  }

  .cursor.hover,
  .cursor-follower.hover {
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* ====== TOP BAR ====== */
.top-bar {
  background-color: var(--section-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.8rem;
  transition: var(--transition);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-left a {
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  font-size: 0.8rem;
}

.top-bar-left a:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.top-bar-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-right a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: var(--transition);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.top-bar-right a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ====== HEADER ====== */
header {
  background-color: var(--bg-color);
  transition: var(--transition);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

body.dark-mode header {
  background-color: rgba(15, 20, 25, 0.95);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary-color);
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  color: var(--heading-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.theme-switch {
  margin-left: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--section-bg);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.theme-switch:hover {
  background-color: var(--primary-color);
  transform: rotate(180deg);
  box-shadow: var(--shadow-md);
}

.theme-switch:hover i {
  color: white;
}

.theme-switch i {
  font-size: 1.2rem;
  color: var(--heading-color);
  transition: var(--transition);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 100%;
  height: 3px;
  background-color: var(--heading-color);
  position: absolute;
  transition: var(--transition);
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  content: "";
  top: -8px;
}

.hamburger::after {
  content: "";
  bottom: -8px;
}

.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ====== HERO SECTION ====== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.hero-text h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.highlight {
  color: var(--primary-color);
}

.typed-text {
  color: var(--primary-color);
  margin-left: 5px;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--primary-color);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-btns {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.primary-btn:hover {
  background-color: #3a5ad6;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.secondary-btn {
  background-color: transparent;
  color: var(--heading-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-container {
  position: relative;
  max-width: 450px;
  width: 100%;
}

.hero-img-container::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary-color);
  border-radius: var(--radius);
  z-index: -1;
  transition: var(--transition);
}

.hero-img-container img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.hero-img-container:hover::before {
  top: -10px;
  left: -10px;
}

.hero-img-container:hover img {
  transform: translateY(-5px);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading-color);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.scroll-down a:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-lg);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* ====== ABOUT SECTION ====== */
.about-section {
  padding: 100px 0;
  background-color: var(--section-bg);
  position: relative;
  z-index: 1;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  position: relative;
  max-width: 450px;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary-color);
  border-radius: var(--radius);
  top: 20px;
  left: 20px;
  z-index: -1;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.about-text h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.about-text p {
  margin-bottom: 15px;
}

.about-details {
  margin: 25px 0;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.detail-item i {
  width: 40px;
  height: 40px;
  background-color: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-right: 15px;
  box-shadow: var(--shadow-md);
}

.download-cv {
  margin-top: 10px;
}

/* ====== SKILLS SECTION ====== */
.skills-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.skills-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.skills-text {
  flex: 1;
}

.skills-text h3 {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.skills-text h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.skills-text p {
  margin-bottom: 20px;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.skills-list li i {
  color: var(--primary-color);
  margin-right: 10px;
}

.skills-bars {
  flex: 1;
}

.skill-item {
  margin-bottom: 25px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.skill-info p {
  font-weight: 500;
  color: var(--heading-color);
}

.skill-bar {
  height: 10px;
  background-color: var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-level {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 5px;
  width: 0;
  transition: width 2s ease;
  box-shadow: 0 2px 8px rgba(74, 108, 247, 0.4);
}

/* ====== PROJECTS SECTION ====== */
.projects-section {
  padding: 100px 0;
  background-color: var(--section-bg);
  position: relative;
  z-index: 1;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 10px;
}

.filter-btn {
  padding: 10px 25px;
  background-color: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.project-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.3rem;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.project-description {
  margin-bottom: 15px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  padding: 5px 10px;
  background-color: rgba(74, 108, 247, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 500;
  gap: 5px;
  transition: var(--transition);
}

.project-link:hover {
  gap: 10px;
  color: #3a5ad6;
}

/* ====== PHOTOGRAPHY SECTION ====== */
.photography-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.photography-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.photo-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-item:hover img {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 30px 20px 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.photo-item:hover .photo-overlay {
  transform: translateY(0);
}

.photo-overlay h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.photo-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}

/* ====== PHOTOGRAPHY SECTION - ALBUM CARDS ====== */
.photo-item.album-card {
  aspect-ratio: auto;
  height: auto;
  min-height: 400px;
  overflow: visible; /* Changed from hidden to visible */
  padding: 0;
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-item.album-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.photo-item.album-card .facebook-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: visible; /* Changed from hidden */
}

.photo-item.album-card iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 650px !important;
  min-height: 500px;
  border: none;
  display: block;
  border-radius: var(--radius);
  margin: 0 auto;
}

/* Remove hover effects for album cards */
.photo-item.album-card img {
  transform: none !important;
}

.photo-item.album-card .photo-overlay {
  display: none;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  .photo-item.album-card iframe {
    height: 600px !important;
  }
}

@media (max-width: 768px) {
  .photo-item.album-card {
    overflow: hidden;
  }

  .photo-item.album-card iframe {
    height: 550px !important;
  }
}

@media (max-width: 576px) {
  .photo-item.album-card {
    min-height: 350px;
  }

  .photo-item.album-card iframe {
    height: 500px !important;
    min-height: 400px;
  }
}

/* ====== SERVICES SECTION ====== */
.services-section {
  padding: 100px 0;
  background-color: var(--section-bg);
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
  opacity: 0.05;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(74, 108, 247, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--heading-color);
  margin-bottom: 15px;
}

/* ====== CONTACT SECTION ====== */
.contact-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-card {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(74, 108, 247, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.contact-details h3 {
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: 5px;
}

.contact-details p {
  word-break: break-word;
}

.contact-form {
  flex: 1;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius);
  background-color: var(--section-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-color);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* ====== FOOTER ====== */
.footer {
  background-color: var(--section-bg);
  padding: 70px 0 0;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-logo p {
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-link-group {
  flex: 1;
  min-width: 150px;
}

.footer-link-group h3 {
  color: var(--heading-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-link-group h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-link-group ul li {
  margin-bottom: 10px;
}

.footer-link-group ul li a {
  transition: var(--transition);
  color: var(--text-color);
}

.footer-link-group ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: var(--text-color);
}

.back-to-top a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top a:hover {
  background-color: #3a5ad6;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ====== RESPONSIVE STYLES ====== */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

  .hero-content,
  .about-content,
  .skills-content,
  .contact-content {
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .top-bar {
    padding: 6px 0;
    font-size: 0.75rem;
  }

  .top-bar-content {
    flex-direction: column;
    gap: 8px;
  }

  .top-bar-left {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .top-bar-left a {
    font-size: 0.75rem;
  }

  .top-bar-right {
    gap: 6px;
  }

  .top-bar-right a {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .theme-switch {
    margin-left: 10px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text h2 {
    justify-content: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-img-container {
    max-width: 350px;
    margin: 0 auto;
  }

  .hero-img-container::before {
    top: -10px;
    left: -10px;
  }

  .about-content,
  .skills-content,
  .contact-content {
    flex-direction: column;
    gap: 40px;
  }

  .about-image {
    max-width: 100%;
    margin: 0 auto;
  }

  .about-image::before {
    top: 10px;
    left: 10px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .photo-gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 30px 20px;
  }
}

@media screen and (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .top-bar {
    font-size: 0.7rem;
    padding: 5px 0;
  }

  .top-bar-left a {
    font-size: 0.7rem;
  }

  .top-bar-right a {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-img-container {
    max-width: 280px;
  }

  .project-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-btn {
    width: 100%;
    text-align: center;
  }

  .projects-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .skills-text h3,
  .about-text h3 {
    font-size: 1.5rem;
  }

  .service-card {
    padding: 30px 20px;
  }

  .contact-form {
    padding: 25px 15px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
  }

  .footer-logo h2 {
    font-size: 24px;
  }

  .footer-link-group h3 {
    font-size: 1.1rem;
  }
}

/* ====== UTILITY CLASSES ====== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}

.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}

/* ====== SOCIAL SECTION ====== */
.social-section {
  padding: 100px 0;
  background-color: var(--section-bg);
  position: relative;
  z-index: 1;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.social-card {
  background-color: var(--card-bg);
  padding: 30px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.social-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color);
}

.social-icon {
  width: 60px;
  height: 60px;
  background-color: var(--section-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color);
  margin-bottom: 5px;
  transition: var(--transition);
}

.social-card:hover .social-icon {
  background-color: var(--color);
  color: white;
  transform: scale(1.1);
}

.social-card h3 {
  font-size: 1.1rem;
  color: var(--heading-color);
  font-weight: 600;
}

.social-card p {
  font-size: 0.8rem;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .social-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
