@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-dark: #090807;
  --bg-panel: #141210;
  --bg-panel-hover: #1b1816;
  --accent-tan: #aa6e38;
  --accent-tan-hover: #c58145;
  --accent-tan-rgb: 170, 110, 56;
  --accent-gold: #c39c63;
  --accent-gold-hover: #d7b27a;
  --accent-gold-rgb: 195, 156, 99;
  --text-light: #f5f2eb;
  --text-muted: #a69c8f;
  --border-color: #26221d;
  --border-color-glow: #4a3e30;
  --shadow-color: rgba(0, 0, 0, 0.6);
  
  /* Fonts */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Spacing & Utilities */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 12px;
  --border-radius-lg: 20px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(170, 110, 56, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(195, 156, 99, 0.03) 0%, transparent 40%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border: 2px solid var(--bg-dark);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-tan);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

p {
  color: var(--text-muted);
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Saddle Stitch Line decoration - inspired by premium leathercraft */
.saddle-stitch-horizontal {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    var(--accent-tan) 4px,
    var(--accent-tan) 12px
  );
  opacity: 0.6;
  margin: 2rem 0;
  position: relative;
}

.saddle-stitch-horizontal::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background-color: var(--bg-dark);
  border: 1px solid var(--accent-tan);
  border-radius: 3px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.saddle-stitch-card-border {
  position: relative;
}

.saddle-stitch-card-border::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px dashed rgba(var(--accent-tan-rgb), 0.4);
  border-radius: calc(var(--border-radius) - 4px);
  pointer-events: none;
}

/* Common Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-header h2 span {
  color: var(--accent-tan);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: var(--border-radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--accent-tan);
  color: var(--text-light);
  border: 1px solid var(--accent-tan);
  box-shadow: 0 4px 15px rgba(var(--accent-tan-rgb), 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-tan-hover);
  border-color: var(--accent-tan-hover);
  box-shadow: 0 6px 20px rgba(var(--accent-tan-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-color-glow);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  background-color: rgba(var(--accent-gold-rgb), 0.05);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-gold {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(var(--accent-gold-rgb), 0.1);
}

.btn-gold:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  box-shadow: 0 6px 20px rgba(var(--accent-gold-rgb), 0.3);
  transform: translateY(-2px);
}

/* Floating Navbar */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
}

.header-nav.scrolled {
  background-color: rgba(9, 8, 7, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 48px;
  width: auto;
  border-radius: 50%;
  border: 1.5px solid var(--accent-gold);
  transition: var(--transition-smooth);
}

.header-nav.scrolled .logo-img {
  height: 40px;
}

.logo-link span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.logo-link span span {
  color: var(--accent-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-item a {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--text-light);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-tan);
  transition: var(--transition-smooth);
}

.nav-item a:hover::after,
.nav-item a.active::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  position: relative;
  background-color: #050404;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(9, 8, 7, 0.95) 40%, rgba(9, 8, 7, 0.3) 100%),
    url('images/banner.png');
  background-size: cover;
  background-position: right center;
  opacity: 0.85;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  color: var(--accent-gold);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  font-weight: 700;
}

.hero-title span {
  color: var(--accent-tan);
  display: block;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Quick Features Section (The Pillars from the Banner) */
.features-section {
  background-color: var(--bg-panel);
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(var(--accent-tan-rgb), 0.1);
  border: 1px solid rgba(var(--accent-tan-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon-wrapper {
  background-color: var(--accent-tan);
  border-color: var(--accent-tan);
  color: var(--text-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(var(--accent-tan-rgb), 0.3);
}

.feature-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-family: var(--font-serif);
}

.feature-item p {
  font-size: 0.9rem;
}

/* About / Heritage Section */
.about-section {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-logo-wrapper {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 15px 40px var(--shadow-color);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.about-logo-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-tan), var(--accent-gold));
}

.about-logo-wrapper:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-glow);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.about-logo-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  margin-bottom: 1.5rem;
}

.about-logo-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.about-logo-tagline {
  color: var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Portfolio Section */
.portfolio-section {
  background-color: #0b0a09;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.product-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-color-glow);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #1a1816;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background-color: rgba(9, 8, 7, 0.8);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.product-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
}

.product-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-specs {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.product-specs li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.product-specs li span {
  color: var(--text-light);
  font-weight: 500;
}

.product-card-btn {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.85rem;
}

/* Custom Inquiry Card (For custom designs) */
.custom-card {
  background-image: 
    linear-gradient(to bottom, rgba(20, 18, 16, 0.9), rgba(20, 18, 16, 0.97)),
    url('images/belt-brown-shelf.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px dashed var(--accent-tan);
}

.custom-card-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.custom-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.custom-card p {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  max-width: 280px;
}

/* B2B Export Solutions Section */
.export-section {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.export-card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.export-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-glow);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.export-card-icon {
  font-size: 2.2rem;
  color: var(--accent-tan);
  margin-bottom: 1.5rem;
}

.export-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.export-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* B2B Contact Form Section */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-panel {
  padding-right: 2rem;
}

.contact-info-panel h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}

.contact-info-panel p {
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-detail-icon {
  font-size: 1.35rem;
  color: var(--accent-tan);
  padding-top: 0.2rem;
}

.contact-detail-text h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-text p,
.contact-detail-text a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-detail-text a:hover {
  color: var(--accent-gold);
}

/* Contact Form Styling */
.contact-form-wrapper {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem;
  box-shadow: 0 20px 50px var(--shadow-color);
  position: relative;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-tan), var(--accent-gold));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.form-control {
  width: 100%;
  background-color: rgba(9, 8, 7, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.9rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-tan);
  background-color: rgba(9, 8, 7, 0.9);
  box-shadow: 0 0 10px rgba(var(--accent-tan-rgb), 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-group.focused label {
  color: var(--accent-gold);
}

.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Success Overlay for Contact Form */
.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-panel);
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 10;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(var(--accent-gold-rgb), 0.1);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-success-overlay h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.form-success-overlay p {
  font-size: 1.05rem;
  max-width: 450px;
  margin-bottom: 2rem;
}

/* Footer Styling */
.footer {
  background-color: #050404;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-brand h4 span {
  color: var(--accent-gold);
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background-color: rgba(var(--accent-gold-rgb), 0.05);
  transform: translateY(-3px);
}

.footer-links-col h5 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.footer-links-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1.5px;
  background-color: var(--accent-tan);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-item i {
  color: var(--accent-tan);
  padding-top: 0.25rem;
}

.footer-contact-item a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.85rem;
}

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

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--accent-gold);
}

/* Animation Classes (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .about-grid,
  .contact-grid {
    gap: 3rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid .custom-card {
    grid-column: span 2;
    padding: 4rem 2rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  .section {
    padding: 4.5rem 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .hero-section {
    padding-top: 7rem;
    min-height: auto;
    padding-bottom: 5rem;
  }
  .hero-bg-overlay {
    background-image: 
      linear-gradient(to bottom, rgba(9, 8, 7, 0.97) 35%, rgba(9, 8, 7, 0.9) 100%),
      url('images/banner.png');
    background-position: center top;
  }
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-logo-wrapper {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }
  .about-logo-img {
    width: 140px;
    height: 140px;
  }
  .about-logo-text {
    font-size: 1.6rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .portfolio-grid .custom-card {
    grid-column: span 1;
    padding: 3rem 1.5rem;
  }
  .export-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-info-panel {
    padding-right: 0;
  }
  .contact-form-wrapper {
    padding: 2rem 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .form-group {
    margin-bottom: 0;
  }
  .contact-form-wrapper form .form-group:last-of-type {
    margin-bottom: 1.5rem;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-panel);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  .nav-menu.active {
    right: 0;
  }
  .mobile-nav-toggle {
    display: block;
    z-index: 1000;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Layout handled gracefully by 768px stacking queries */
}

/* Keyframe Animations */
@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
