/* Global Variables*/
:root { 
  --primary-color: #0f172a; 
  --primary-dark: #020617;
  --accent-color: #00b0ff; 
  --accent-hover: #059de4;

  --text-main: #333333;
  --text-light: #666666;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  /* Modern, Geometic, "Beautiful" */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 100px;
  --radius: 12px;
  /* More modern, softer rounded corners than sharp 2px */

  /* Effects */
  --transition: all 0.4s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
  --image-filter: grayscale(100%) contrast(1.1);
  --image-filter-hover: grayscale(0%) contrast(1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.8;
  background-color: var(--white);
  font-size: 16px;
  overflow-x: hidden;
  /* Prevent horizontal scroll from animations */
}

/* Image Unification */
img {
  filter: var(--image-filter);
  transition: var(--transition);
}

img:hover {
  filter: var(--image-filter-hover);
}

/* Hero image should always be color */
.hero img,
.hero {
  filter: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.text-center {
  text-align: center;
}

.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-outline-dark {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-dark:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.03em;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6)), url('../images/hero.webp');
  background-size: cover;
  background-position: top bottom;
  /* Anchor to bottom for skyline */
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: var(--white);
  margin-top: -1px;
  position: relative;
  z-index: 1;
}

/* Hero Separator (CSS Only "Beauty") */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-content {
  max-width: 900px;
  padding-top: 4rem;
  /* Balance */
}

.hero h1 {
  color: var(--white);
  font-size: 4.5rem;
  /* Larger */
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  margin-bottom: 3rem;
  max-width: 700px;
  font-weight: 300;
}

/* Diagonal Separators for Sections */
.section-diagonal {
  position: relative;
  padding: 8rem 0;
  background-color: var(--bg-light);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  margin: -4rem 0;
  /* Overlap to hide gaps */
  z-index: 10;
}

/* Process / Stepper Section */
.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(19, 27, 46, 0.2); 
  line-height: 1;
  font-family: var(--font-heading);
}

.step-content h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}


/* Cards & Services */
.service-card {
  background: var(--white);
  padding: 3rem 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

/* Feature List */
.feature-list {
  display: grid;
  gap: 0.8rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
}

.check-icon {
  color: var(--accent-color);
  font-weight: bold;
}

/* Portfolio / Project Card */
.project-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
}

.project-img-container {
  height: 250px;
  overflow: hidden;
  background-color: #eee;
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-container img {
  transform: scale(1.05);
}

.project-body {
  padding: 2rem;
}

.project-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.tech-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: var(--bg-light);
  color: var(--text-light);
  border: 1px solid var(--border-color);
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  border-radius: var(--radius);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(194, 157, 89, 0.1);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: var(--header-height);
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2.2rem;
    /* Smaller for mobile */
  }

  .glass-card {
    padding: 1.5rem;
    /* Less padding on mobile */
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Adjust Marquee for mobile */
  .marquee-item {
    font-size: 1rem;
    margin-right: 2rem;
  }

  /* Adjust Stats spacing */
  .stat-item {
    margin-bottom: 2rem;
  }
}

/* --- TRENDY ADDITIONS --- */

/* 1. Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 1.5rem;
}

.bento-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1.5rem;
  /* Rounds are trendy again for Bento */
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(194, 157, 89, 0.3);
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-row-2 {
  grid-row: span 2;
}

/* Mobile fallback for Bento */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-col-2,
  .bento-row-2 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* 2. Infinite Marquee */
.marquee-container {
  background: var(--primary-color);
  color: var(--white);
  padding: 1.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-right: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 3. Decorative Blobs */
.blob-cont {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: #e0f2fe;
  /* Light Blue */
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: #fef3c7;
  /* Light Gold */
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(30px, 50px) rotate(10deg);
  }
}

/* 4. Glass Hero Card */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}