/* Fonts and icon CSS: loaded in <head> via <link rel=preconnect> and non-blocking links to improve render performance */

/* Accessibility: skip-link (visible on keyboard focus) */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: #0f172a;
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 9999;
  border-radius: 6px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

/* Responsive image defaults to avoid layout shift */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.project-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Base Reset & Variables */
:root {
  --primary-color: #38bdf8;
  --primary-dark: #0ea5e9;
  --text-dark: #0f172a;
  --text-light: #cbd5e1;
  --bg-dark: #0f172a;
  --bg-light: #ffffff;
  --border-color: #334155;
  --shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

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

body {
  font-family: "Inter", "Space Grotesk", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Make the main content area flexible so footer can be pushed to the bottom */
.page-content {
  flex: 1 1 auto;
  display: block;
}

/* Prevent any horizontal scroll caused by fullscreen backgrounds */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Header & Navigation */
.header {
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.1);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Logo Section */
.logo-section {
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-small span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  background: linear-gradient(
    135deg,
    var(--text-dark) 0%,
    var(--primary-color) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.slogan {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: var(--text-dark);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropbtn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn {
  color: var(--primary-color);
}

.dropdown:hover .dropbtn i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-light);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.1);
  animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--bg-light);
  padding-left: 1.5rem;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icons a {
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.social-icons a:hover {
  color: var(--bg-light);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: var(--primary-color);
  background: rgba(56, 189, 248, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-nav {
    gap: 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.8rem 1.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .social-icons {
    display: none;
  }

  .social-icons.mobile-visible {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.8rem 1rem;
  }

  .logo-small span {
    font-size: 1.6rem;
  }

  .slogan {
    font-size: 0.7rem;
  }

  .main-nav {
    gap: 1rem;
  }
}

/* Active state for current page */
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-links li a.active::after {
  width: 100%;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 4rem 2rem 0;
  color: #cbd5e1;
  border-top: 1px solid #334155;
  margin-top: auto;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 350px;
  margin: 0;
}

.footer-slogan {
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
  margin-top: 0.5rem;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f8fafc;
  font-weight: 600;
  position: relative;
}

.footer-links h4::after,
.footer-social h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #38bdf8;
  border-radius: 1px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: "▸";
  color: #38bdf8;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-social .social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: #cbd5e1;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  padding: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.footer-social a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
  border-color: transparent;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #64748b;
  padding: 2rem 0;
  border-top: 1px solid #334155;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(15, 23, 42, 0.95);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-copyright {
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #38bdf8;
}

/* Ensure footer stays at bottom */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }

  .footer-brand p {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links h4::after,
  .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-social a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 2rem 1rem 0;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-logo {
    font-size: 1.8rem;
  }

  .footer-brand p {
    font-size: 0.95rem;
  }

  .footer-links h4,
  .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    padding: 0.6rem;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }

  .footer-copyright {
    font-size: 0.85rem;
  }

  .footer-legal {
    gap: 1rem;
  }

  .footer-legal a {
    font-size: 0.8rem;
  }
}

/* Additional utility for very small screens */
@media (max-width: 360px) {
  .footer-social .social-icons {
    gap: 0.5rem;
  }

  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Portfolio Section */

/* Portfolio Item Styles */
.portfolio-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.project-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .project-image img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #3a86ff;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-content {
  padding: 30px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.header-left h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.project-category {
  color: #666;
  font-size: 0.9rem;
}

.tech-stack {
  display: flex;
  gap: 8px;
}

.tech-tag {
  background: #f0f7ff;
  color: #3a86ff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
}

.stat {
  text-align: center;
}

.stat i {
  font-size: 1.5rem;
  color: #3a86ff;
  margin-bottom: 10px;
}

.stat-number {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
}

.features-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-item i {
  color: #3a86ff;
  font-size: 1.2rem;
  margin-top: 2px;
}

.feature-item h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a1a1a;
}

.feature-item p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.project-description h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.project-description p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-highlights {
  background: #f0f9ff;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #3a86ff;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.highlight:last-child {
  margin-bottom: 0;
}

.highlight i {
  color: #00c853;
}

.highlight span {
  color: #333;
  font-size: 0.9rem;
}

.project-cta {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #3a86ff;
  color: white;
}

.btn-primary:hover {
  background: #2667d8;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f0f7ff;
  color: #3a86ff;
}

.btn-secondary:hover {
  background: #e1ecff;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-stats,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
    gap: 10px;
  }

  .project-cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

.portfolio-section {
  padding: 5rem 2rem;
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
  width: 100%;
}

.portfolio-section .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.portfolio-section .section-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
}

.portfolio-section .section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
}

.portfolio-section .section-header p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Portfolio Item */
.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-item.reverse {
  direction: rtl;
}

.portfolio-item.reverse > * {
  direction: ltr;
}

/* Project Image - Improved */
.project-image {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: #f8fafc; /* Fallback background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain */
  object-position: center;
  transition: transform 0.3s ease;
  background: white; /* White background for transparent images */
  padding: 1rem; /* Add some padding around the image */
}

.portfolio-item:hover {
  transform: scale(0.93);
}

.project-overlay {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(56, 189, 248, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Project Content */
.project-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1.5rem;
}

.company-name {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.project-type {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Project Features */
.project-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateX(5px);
}

.feature i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.feature span {
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
}

/* Project Description */
.project-description {
  color: #64748b;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* Project Actions */
.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-actions .btn-primary,
.project-actions .btn-secondary {
  padding: 0.875rem 1.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.project-actions .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  border: none;
}

.project-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.project-actions .btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.project-actions .btn-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

/* Image loading states */
.project-image.loading {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.project-image.loading::after {
  content: "Loading...";
  position: absolute;
  color: #64748b;
  font-size: 0.9rem;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive image adjustments */
@media (max-width: 1024px) {
  .project-image {
    height: 350px;
  }

  .project-image.mobile-app img {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .project-image {
    height: 300px;
  }

  .project-image.mobile-app img {
    max-width: 60%;
  }

  .project-image.dashboard img {
    object-fit: contain; /* Switch to contain on mobile */
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .project-image {
    height: 250px;
  }

  .project-image.mobile-app img {
    max-width: 55%;
  }

  .project-image img {
    padding: 0.5rem;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-item {
    gap: 2rem;
  }

  .project-content {
    padding: 2rem;
  }

  .project-image {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 3rem 1.5rem;
  }

  .portfolio-section .section-header h2 {
    font-size: 2rem;
  }

  .portfolio-container {
    gap: 3rem;
  }

  .portfolio-item {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .portfolio-item.reverse {
    direction: ltr;
  }

  .project-image {
    height: 300px;
    order: -1;
  }

  .project-content {
    padding: 2rem 1.5rem;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions .btn-primary,
  .project-actions .btn-secondary {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .portfolio-section {
    padding: 2rem 1rem;
  }

  .portfolio-section .section-header h2 {
    font-size: 1.75rem;
  }

  .portfolio-section .section-header p {
    font-size: 1rem;
  }

  .project-content {
    padding: 1.5rem;
  }

  .company-name {
    font-size: 1.3rem;
  }

  .project-type {
    font-size: 0.9rem;
  }

  .project-image {
    height: 250px;
  }

  .feature {
    padding: 0.6rem;
  }

  .feature span {
    font-size: 0.85rem;
  }

  .project-description {
    font-size: 0.9rem;
  }
}

/* Animation for scroll reveal */
.portfolio-item {
  opacity: 1; /* Changed from 0 to 1 for testing */
  transform: translateY(0); /* Changed from 30px to 0 for testing */
  transition: all 0.6s ease;
}

.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
}
