/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, rgba(209, 31, 38, 0.1) 0%, rgba(15, 15, 17, 1) 100%);
  overflow: hidden;
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, rgba(209, 31, 38, 0.05) 0%, rgba(245, 245, 245, 1) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-top: 5rem;
}

.hero-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(209, 31, 38, 0.1);
  border-radius: 50px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-desc {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Services Overview */
.services-overview {
  background-color: var(--bg-color);
}

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

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glass-shadow);
  border-color: var(--primary-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(209, 31, 38, 0.1);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: #fff;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.learn-more i {
  transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
  transform: translateX(5px);
}

/* About Snippet */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
}

.about-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(209,31,38,0.2), transparent);
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1.5rem; opacity: 0.8; }

/* Contact CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #7a1116 100%);
  color: #fff;
  text-align: center;
  border-radius: 2rem;
  padding: 4rem 2rem;
  margin: 4rem auto;
  box-shadow: 0 20px 40px rgba(209, 31, 38, 0.2);
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section .btn { background: #fff; color: var(--primary-color); }
.cta-section .btn:hover { background: var(--bg-color); color: var(--text-color); box-shadow: none;}

@media (max-width: 768px) {
  .about-snippet { grid-template-columns: 1fr; gap: 2rem; }
  .hero-buttons { flex-direction: column; }
}

/* Coastal Watermark */
.coastal-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1505118380757-91f5f5632de0?q=80&w=2500&auto=format&fit=crop') center calc(50% + 50px) / cover no-repeat;
  opacity: 0.03; /* Extremely faint so it doesn't disturb text */
  pointer-events: none;
  z-index: -1;
  filter: grayscale(100%); /* Keeps it matching theme */
}

[data-theme="light"] .coastal-watermark {
  opacity: 0.05;
  filter: none;
}

/* Features Banner */
.features-banner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
}

.feature-pill i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-pill h5 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.feature-pill p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

/* 4 Step Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-bottom: 4rem;
}

.process-step {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    position: relative;
    transition: var(--transition);
    margin-top: 30px;
}

.process-step:hover {
    border-color: rgba(209, 31, 38, 0.2);
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: -50px auto 1.5rem;
    border: 6px solid var(--bg-color);
}

/* Modern Hero Layering */
.modern-hero {
    position: relative;
    width: 100%;
    height: 95vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.modern-hero .hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay-container {
    position: absolute;
    top: calc(5rem + 0.5rem); /* just below fixed header */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* Sits above swiper images */
    width: min(95%, 980px);
    max-width: 980px;
    pointer-events: none; /* click-through outside card */
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(48, 166, 255, 0.15), rgba(20, 75, 140, 0.25));
    box-shadow: inset 0 2px 8px rgba(48, 166, 255, 0.15), 0 25px 60px rgba(20, 75, 140, 0.2);
    filter: drop-shadow(0 8px 16px rgba(20, 75, 140, 0.1));
}

#rippleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    border-radius: 24px;
}

.hero-glass-card {
    position: relative;
    z-index: 2;
}

.hero-overlay-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(48, 166, 255, 0.25);
    border-radius: 24px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(48, 166, 255, 0.2), inset 0 0 40px rgba(20, 75, 140, 0.1);
}
/* Glass Foreground Text Card */
.hero-glass-card {
    position: relative; /* for water ripple nodes */
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(48, 166, 255, 0.4);
    box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.3), inset 0 -2px 8px rgba(20, 75, 140, 0.15), 0 20px 50px rgba(20, 75, 140, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 5rem 4rem;
    width: 100%;
    pointer-events: auto; /* Re-enable clicks inside the card */
    filter: brightness(1.08) saturate(1.1);
}

.hero-glass-card::before,
.hero-glass-card::after,
.hero-glass-card .triplet-ripple {
    content: '';
    position: relative;
    border: 1px solid rgba(243, 95, 9, 0.32);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.hero-glass-card::before {
    width: 200px;
    height: 180px;
    top: 20px;
    left: -60px;
}

.hero-glass-card::after {
    width: 200px;
    height: 120px;
    bottom: 25px;
    right: -45px;
}

.hero-glass-card .triplet-ripple {
    width: 200px;
    height: 140px;
    bottom: -30px;
    left: 30px;
}

.hero-glass-card:hover::before,
.hero-glass-card:hover::after,
.hero-glass-card:hover .triplet-ripple {
    animation: rippleTriple 1.6s ease-out 1;
    opacity: 0.7;
}

/* Gallery Item Ripple Effects */
.gallery-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.gallery-item img {
    transition: transform 0.3s ease-out;
}

.gallery-item .triplet-ripple {
    position: absolute;
    width: 150px;
    height: 100px;
    bottom: -20px;
    left: 20px;
    opacity: 0;
}

.gallery-item:hover .triplet-ripple {
    animation: rippleTriple 1.6s ease-out 1;
    opacity: 0.7;
}

.water-ripple {
    position: absolute;
    border: 2px solid rgba(245, 65, 11, 0.95);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.4);
    animation: waterRipplePulse 0.2s ease-out forwards;
}

@keyframes waterRipplePulse {
    0% { opacity: 0.95; transform: translate(-50%, -50%) scale(0.3); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(7.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(9.6); }
}

@keyframes rippleTriple {
    0% { transform: scale(0.4); opacity: 0.6; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

.overlay-marquee {
    margin-top: 1.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 1rem;
}

.overlay-marquee .marquee-lines {
    display: inline-flex;
    gap: 2rem;
    white-space: nowrap;
    animation: overlayMarquee 15s linear infinite;
    color: #fff;
    font-weight: 700;
    letter-spacing: .05em;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

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

@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    50% { transform: rotate(-1deg); }
    75% { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

@keyframes zoomOut {
    0% { transform: scale(1); }
    100% { transform: scale(0.92); }
}

.gallery-item.wobble {
    animation: wobble 0.3s ease-in-out;
}

.gallery-item.zoom-out {
    animation: zoomOut 0.3s ease-in-out forwards;
}

.gallery-item.zoom-out img {
    transform: scale(0.92);
    transition: transform 0.3s ease-out;
}

/* Digital Footer Styling */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-section {
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.footer-section h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #00ff00;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-section li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.footer-section li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.3s ease;
    z-index: -1;
}

/* Individual link colors */
.footer-section li:nth-child(1) a {
    border-color: #00ff00;
    color: #00ff00;
}

.footer-section li:nth-child(1) a::before {
    background-color: rgba(0, 255, 0, 0.1);
}

.footer-section li:nth-child(1) a:hover {
    background-color: rgba(0, 255, 0, 0.2);
    left: 0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.footer-section li:nth-child(2) a {
    border-color: #00ccff;
    color: #00ccff;
}

.footer-section li:nth-child(2) a::before {
    background-color: rgba(0, 204, 255, 0.1);
}

.footer-section li:nth-child(2) a:hover {
    background-color: rgba(0, 204, 255, 0.2);
    left: 0;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

.footer-section li:nth-child(3) a {
    border-color: #ff00ff;
    color: #ff00ff;
}

.footer-section li:nth-child(3) a::before {
    background-color: rgba(255, 0, 255, 0.1);
}

.footer-section li:nth-child(3) a:hover {
    background-color: rgba(255, 0, 255, 0.2);
    left: 0;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.footer-section li:nth-child(4) a {
    border-color: #ffff00;
    color: #ffff00;
}

.footer-section li:nth-child(4) a::before {
    background-color: rgba(255, 255, 0, 0.1);
}

.footer-section li:nth-child(4) a:hover {
    background-color: rgba(255, 255, 0, 0.2);
    left: 0;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.footer-section li:nth-child(5) a {
    border-color: #ff6600;
    color: #ff6600;
}

.footer-section li:nth-child(5) a::before {
    background-color: rgba(255, 102, 0, 0.1);
}

.footer-section li:nth-child(5) a:hover {
    background-color: rgba(255, 102, 0, 0.2);
    left: 0;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.section-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: block;
}

.swiper-pagination-bullet {
    background: var(--text-color);
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Stats Section */
.stats-section {
    background: var(--card-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem;
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--glass-shadow);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
}

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

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

.portfolio-caption {
    padding: 1.5rem;
    border-top: 2px solid var(--primary-color);
}

.portfolio-caption h4 {
    margin-bottom: 0.5rem;
}

.portfolio-caption p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

