:root {
  /* Brand Colors */
  --brand-green: #4a9960;
  --brand-dark: #3a3a3a;

  /* Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #3a3a3a;
  --text-secondary: #6c757d;
  --accent: #4a9960;
  --border: #e9ecef;
  --shadow: rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-primary: "Manrope", sans-serif;
  --font-size-xl: 3.5rem;
  --font-size-lg: 2rem;
  --font-size-md: 1.25rem;
  --font-size-sm: 1rem;
  --font-size-xs: 0.875rem;
}

[data-theme="dark"] {
  /* Dark Mode */
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #4a9960;
  --border: #333333;
  --shadow: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--brand-green) 0%, #2d5a3d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-container {
  text-align: center;
  position: relative;
}

/* Logo Animation */
.logo-animation {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 3rem;
}

.logo-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.logo-mark {
  width: 80px;
  height: 80px;
  opacity: 0;
  transform: scale(0.5) rotate(-180deg);
}

.logo-rings {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ring {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 140px;
  height: 140px;
  animation: rotate 4s linear infinite;
}

.ring-2 {
  width: 170px;
  height: 170px;
  animation: rotate 6s linear infinite reverse;
}

.ring-3 {
  width: 200px;
  height: 200px;
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Loading Text */
.loading-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
}

.loading-word {
  opacity: 0;
}

.loading-dots {
  display: flex;
  gap: 0.2rem;
}

.dot {
  opacity: 0;
  animation: dotPulse 1.5s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%,
  60%,
  100% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
}

/* Progress Bar */
.progress-container {
  width: 300px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  transform: scaleY(0);
  transform-origin: bottom;
}

/* Main Content */
.main-content {
  opacity: 0;
  visibility: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(var(--bg-primary), 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  width: 40px;
  height: 40px;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  font-size: var(--font-size-sm);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 25px;
  padding: 4px;
  cursor: pointer;
  width: 60px;
  height: 32px;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  transition: left 0.3s ease;
}

[data-theme="dark"] .toggle-thumb {
  left: calc(100% - 24px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 3px 0;
  transform-origin: center;
}

/* Hamburger Animation - Enhanced */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: var(--accent);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: var(--accent);
}

/* Mobile Navigation - Enhanced and Fixed */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    padding: 2rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.35s;
  }

  .nav-links a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
    position: relative;
    display: block;
  }

  .nav-links a:hover {
    color: var(--accent);
    background: rgba(74, 153, 96, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 153, 96, 0.2);
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after {
    width: 60%;
  }
}

/* Menu backdrop */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
  display: inline-block;
}

.language-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
  min-width: 70px;
  justify-content: center;
}

.language-toggle:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.language-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.language-dropdown.active .language-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 180px;
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.language-option:hover {
  background: var(--bg-secondary);
}

.language-option.active {
  background: var(--accent);
  color: white;
}

.language-option:first-child {
  border-radius: 13px 13px 0 0;
}

.language-option:last-child {
  border-radius: 0 0 13px 13px;
}

.language-code {
  font-weight: 600;
  font-size: 0.8rem;
}

.language-name {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
  .language-switcher {
    order: -1;
  }

  .language-toggle {
    padding: 0.4rem 0.8rem;
    min-width: 60px;
  }

  .language-dropdown {
    right: 0;
    min-width: 160px;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 2rem;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-logo {
  margin-bottom: 2rem;
  opacity: 1; /* Changed from 0 to 1 */
}

.hero-logo-img {
  height: 60px;
  object-fit: contain;
}

.hero-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.line {
  display: block;
  overflow: hidden;
}

.hero-title .line {
  opacity: 1; /* Ensure text is visible */
  transform: none; /* Remove initial transform */
}

.hero-subtitle {
  font-size: var(--font-size-md);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: var(--font-size-sm);
  font-family: var(--font-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button.primary {
  background: var(--accent);
  color: white;
}

.cta-button.primary:hover {
  background: #3d7a52;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 153, 96, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.cta-button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.dot-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.dot-2 {
  top: 60%;
  right: 15%;
  animation-delay: -2s;
}

.dot-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: -4s;
}

.dot-4 {
  top: 40%;
  right: 30%;
  animation-delay: -1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }
}

/* Responsive Design */
/* @media (max-width: 768px) {
  .nav-links {
    display: none;
  } */

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-logo-img {
    height: 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    min-width: 200px;
  }

  .progress-container {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero {
    padding: 0 1rem;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Styles */
section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--font-size-md);
  font-style: italic;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start; /* Changed from center to start */
}

.about-text {
  /* Removed opacity and transform - content is now visible by default */
}

.about-description {
  font-size: var(--font-size-md);
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.skills {
  margin-top: 3rem;
}

.skills-title {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: var(--font-size-xs);
  font-weight: 500;
}

/* Project Actions */
.project-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.view-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}

.view-button:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 153, 96, 0.3);
}

.view-button svg {
  transition: transform 0.3s ease;
}

.view-button:hover svg {
  transform: translateX(2px);
}

/* Dark mode adjustments */
[data-theme="dark"] .view-button:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}


/* Ensure grids are properly centered on all devices */
.work-grid,
.design-grid,
.testimonials-grid,
.mixed-gallery,
.contact-content {
  justify-content: center;
  align-items: center;
}

/* Adjust min-width for very small screens */
@media (max-width: 480px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .design-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .project-actions {
    justify-content: center;
    margin-top: 1.25rem;
  }

  .view-button {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .view-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .view-button svg {
    width: 14px;
    height: 14px;
  }
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow);
  width: 100%;
  max-width: 400px;
}

.profile-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent), transparent);
  opacity: 0.1;
  transition: opacity 0.3s ease;
}

.image-container:hover .profile-image {
  transform: scale(1.05);
}

.image-container:hover .image-overlay {
  opacity: 0.2;
}

/* Responsive fix for about section */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    align-items: center;
  }

  .about-image {
    order: -1;
    justify-content: center;
  }

  .image-container {
    max-width: 300px;
  }

  .profile-image {
    height: 300px;
  }

  .about-text {
    text-align: left;
  }

  .skills-grid {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 4rem 0;
  }

  .about-content {
    gap: 2rem;
  }

  .image-container {
    max-width: 250px;
  }

  .profile-image {
    height: 250px;
  }

  .about-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .skills-title {
    font-size: 1.1rem;
  }

  .skill-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 320px) {
  .about-content {
    gap: 1.5rem;
  }

  .image-container {
    max-width: 200px;
  }

  .profile-image {
    height: 200px;
  }

  .about-description {
    font-size: 0.9rem;
  }

  .skills-grid {
    gap: 0.5rem;
  }

  .skill-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Work Section */
.work {
  background: var(--bg-primary);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.work-item {
  background: var(--bg-secondary);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Removed opacity and transform - content is now visible by default */
}

.work-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow);
}

.work-image {
  height: 200px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-item:hover .work-image img {
  transform: scale(1.1);
}

.work-content {
  padding: 1.5rem;
}

.work-content h3 {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.work-content p {
  color: var(--text-secondary);
  font-style: italic;
}

.tech-stack {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.tech-tag:hover {
  opacity: 1;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Visual Design Section */
.visual-design {
  background: var(--bg-secondary);
  padding: 6rem 0;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.design-item {
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  aspect-ratio: 4 / 3;
}

.design-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow);
}

.design-showcase {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.design-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.design-item:hover .design-showcase img {
  transform: scale(1.05);
}

/* Design Overlay */
.design-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 153, 96, 0.95) 0%, rgba(58, 122, 76, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  padding: 2rem;
}

.design-item:hover .design-overlay {
  opacity: 1;
}

.design-info {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-width: 100%;
}

.design-item:hover .design-info {
  transform: translateY(0);
}

.design-info h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.design-info p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-style: italic;
}

.design-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.design-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Design for Visual Design Section */
@media (max-width: 1200px) {
  .design-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .design-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .design-item {
    aspect-ratio: 3 / 2;
  }

  .design-overlay {
    padding: 1.5rem;
  }

  .design-info h4 {
    font-size: 1.25rem;
  }

  .design-info p {
    font-size: 0.9rem;
  }

  .design-tags {
    gap: 0.25rem;
  }

  .design-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .design-grid {
    gap: 1rem;
  }

  .design-overlay {
    padding: 1rem;
  }

  .design-info h4 {
    font-size: 1.1rem;
  }

  .design-info p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
}

/* Enhanced border effect for design items */
.design-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.design-item:hover::before {
  opacity: 1;
}

/* Logo Project Styles - Enhanced with Slide Animation */
.logo-project {
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.logo-project:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow);
}

.logo-showcase {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2rem;
  transition: transform 0.4s ease;
}

[data-theme="dark"] .logo-showcase {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.logo-showcase img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-project:hover .logo-showcase img {
  transform: scale(1.05);
}

/* Logo Slide-up Overlay */
.logo-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent) 0%, #3d7a52 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  padding: 2rem;
}

.logo-project:hover .logo-overlay {
  top: 0;
}

.logo-project:hover .logo-showcase {
  transform: translateY(-100%);
}

.logo-info {
  text-align: center;
  color: white;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.logo-project:hover .logo-info {
  transform: translateY(0);
  opacity: 1;
}

.logo-info h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.logo-info p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  font-style: italic;
  line-height: 1.4;
}

.project-year {
  font-size: 0.875rem;
  opacity: 0.8;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Web Project Adjustments for Mixed Gallery */
.web-project {
  grid-column: span 1;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .mixed-gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .mixed-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .logo-showcase {
    padding: 1.5rem;
  }

  .logo-overlay {
    padding: 1.5rem;
  }

  .logo-info h4 {
    font-size: 1.25rem;
  }

  .logo-info p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .mixed-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .logo-showcase {
    padding: 1rem;
  }

  .logo-overlay {
    padding: 1rem;
  }

  .logo-info h4 {
    font-size: 1.1rem;
  }

  .logo-info p {
    font-size: 0.85rem;
  }
}

/* Enhanced hover effects for better visual hierarchy */
.logo-project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-project:hover::before {
  opacity: 1;
}

/* Testimonials Section */
.testimonials {
  background: var(--bg-primary);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(74, 153, 96, 0.03) 50%, transparent 100%);
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.testimonial-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--border);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: var(--accent);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--accent);
  font-family: Georgia, serif;
  opacity: 0.3;
  line-height: 1;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  color: #ffd700;
  font-size: 1.2rem;
}

.star.empty {
  color: var(--border);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
  position: relative;
  z-index: 2;
}

/* Testimonial Animation Effects */
.testimonial-card.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card.animate-on-scroll.prepare-animation {
  opacity: 0;
  transform: translateY(50px);
}

/* Staggered Animation for Testimonials */
.testimonial-card:nth-child(1) {
  transition-delay: 0.1s;
}
.testimonial-card:nth-child(2) {
  transition-delay: 0.2s;
}
.testimonial-card:nth-child(3) {
  transition-delay: 0.3s;
}
.testimonial-card:nth-child(4) {
  transition-delay: 0.4s;
}
.testimonial-card:nth-child(5) {
  transition-delay: 0.5s;
}
.testimonial-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Floating Elements for Testimonials */
.testimonials-floating {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.testimonial-float {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: testimonialFloat 8s ease-in-out infinite;
}

.testimonial-float:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.testimonial-float:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: -3s;
}

.testimonial-float:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: -6s;
}

.testimonial-float:nth-child(4) {
  top: 40%;
  right: 30%;
  animation-delay: -2s;
}

@keyframes testimonialFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-30px) scale(1.2);
    opacity: 0.8;
  }
}

/* Responsive Design for Testimonials */
@media (max-width: 1200px) {
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .testimonial-avatar {
    width: 50px;
    height: 50px;
  }

  .testimonial-card::before {
    font-size: 3rem;
    top: -5px;
    left: 15px;
  }
}

@media (max-width: 480px) {
  .testimonials {
    padding: 4rem 0;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .testimonial-info h4 {
    font-size: 1rem;
  }

  .testimonial-info p {
    font-size: 0.85rem;
  }
}

/* Dark mode adjustments for testimonials */
[data-theme="dark"] .testimonial-card {
  background: var(--bg-secondary);
  border-color: var(--border);
}

[data-theme="dark"] .testimonial-card:hover {
  border-color: var(--accent);
}

[data-theme="dark"] .testimonial-card::before {
  color: var(--accent);
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .cta-button {
  width: 100%;
  justify-self: stretch;
}

.contact-info {
  opacity: 1;
  transform: translateX(0);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: var(--font-size-sm);
}

.contact-link:hover {
  color: var(--accent);
}

/* Enhanced Mobile Responsiveness for Contact */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1rem;
  }

  .contact-form {
    width: 100%;
  }

  .form-group {
    width: 100%;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
    box-sizing: border-box;
  }

  .contact-form .cta-button {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-content {
    padding: 0 0.5rem;
    gap: 2rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 16px;
  }

  .contact-form .cta-button {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Animation Classes - Restored */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.prepare-animation {
  opacity: 0;
  transform: translateY(50px);
}

.animate-slide-left {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-left.prepare-animation {
  opacity: 0;
  transform: translateX(-50px);
}

.animate-slide-right {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-right.prepare-animation {
  opacity: 0;
  transform: translateX(50px);
}

.animate-fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-up.prepare-animation {
  opacity: 0;
  transform: translateY(30px);
}

/* Stagger animation delays */
.animate-stagger-1 {
  transition-delay: 0.1s;
}
.animate-stagger-2 {
  transition-delay: 0.2s;
}
.animate-stagger-3 {
  transition-delay: 0.3s;
}
.animate-stagger-4 {
  transition-delay: 0.4s;
}
.animate-stagger-5 {
  transition-delay: 0.5s;
}
.animate-stagger-6 {
  transition-delay: 0.6s;
}

/* Form Status Styling */
.form-status {
  margin-top: 1rem;
  display: none;
}

.status-message {
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

.status-message.success {
  background: rgba(74, 153, 96, 0.1);
  color: var(--accent);
  border: 1px solid rgba(74, 153, 96, 0.3);
}

.status-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-icon {
  font-size: 1.2rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button loading state */
.cta-button:disabled {
  cursor: not-allowed;
  transform: none !important;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
