/* Custom Properties - Gnomon x Ashim Style */

:root {
  --bg-color: #0d0d0d;
  --surface-color: #161616;
  --surface-light: #222222;
  --surface-border: #2a2a2a;
  --primary: #ffd40b;
  --secondary: #ffffff;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  --section-padding: 200px 8%;
  
  /* Strict Typographic Scale - 3 Main Sizes */
  --fs-xl: clamp(4rem, 10vw, 8.5rem);   /* Display Headings */
  --fs-large: clamp(2.5rem, 5vw, 4rem);  /* Section Titles */
  --fs-base: 1.15rem;                   /* Body Text */
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Hide default cursor */
}

/* Custom Cursor Elements */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 212, 11, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Cursor States */
body.cursor-hover .custom-cursor {
  width: 12px;
  height: 12px;
  background-color: #fff;
}

body.cursor-hover .custom-cursor-outline {
  width: 60px;
  height: 60px;
  border-color: #fff;
}

body.cursor-text .custom-cursor {
  width: 2px;
  height: 20px;
  border-radius: 0;
}

body.cursor-text .custom-cursor-outline {
  opacity: 0;
}

/* Ensure default cursor shows on mobile */
@media (max-width: 768px) {
  body { cursor: auto; }
  .custom-cursor, .custom-cursor-outline { display: none; }
}

h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-large); }
h3 { font-size: 1.5rem; letter-spacing: 1px; }

p {
  font-size: var(--fs-base);
  color: var(--text-muted);
}

strong, b {
  color: var(--text-main);
  font-weight: 700;
}

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

ul {
  list-style: none;
}

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

/* Buttons (Gnomon Style) */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px 16px 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background-color 300ms cubic-bezier(0.73, 0.24, 0.68, 0.82), color 300ms cubic-bezier(0.73, 0.24, 0.68, 0.82);
  font-family: var(--font-heading);
  border: none;
  font-size: 0.9rem;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 0% 100%);
}

.btn-primary {
  background: #ffd40b;
  color: #000;
}

.btn-primary:hover {
  background: #ffffff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 212, 11, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: #000;
}

.btn-secondary:hover {
  background: #ffd40b;
  color: #000;
}

.btn-black {
  background: #000;
  color: #fff;
}

.btn-black:hover {
  background: #ffffff;
  color: #000;
}


.btn-small {
  padding: 10px 30px 10px 20px;
  font-size: 0.8rem;
}

/* Premium CV Button */
.btn-cv {
  display: inline-flex;
  align-items: center;
  background: #ffd40b;
  color: #000;
  padding: 8px 35px 8px 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-heading);
  border: none;
  font-size: 0.9rem;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 0% 100%);
  text-decoration: none;
}

.btn-cv-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-cv img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 0 100%); /* Slight angle to match btn style */
  background: #000;
  transition: transform 0.3s ease;
}

.btn-cv:hover {
  background: #ffffff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 212, 11, 0.3);
}

.btn-cv:hover img {
  transform: scale(1.1) rotate(-2deg);
}

/* Sections */
.section-padding {
  padding: var(--section-padding);
}

.bg-alt {
  background-color: var(--surface-color);
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-title {
  font-size: var(--fs-large);
  margin-bottom: 30px;
}

.section-line {
  height: 4px;
  width: 80px;
  background: var(--primary);
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 5%;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  background: #000;
  padding: 15px 5%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links a:hover {
  color: var(--primary);
  letter-spacing: 2.5px;
}

.mobile-menu-btn {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Full-Bleed Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.hero-subtitle {
  font-family: var(--font-heading);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 0.9;
  margin-bottom: 20px;
  max-width: 1400px;
}

.hero-name {
  font-size: 1.1rem;
  letter-spacing: 12px;
  margin-bottom: 40px;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  max-width: 700px;
  margin-bottom: 16px;
  display: block;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
  justify-content: flex-start;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  background: #25D366;
  color: #fff;
  border: none;
  transition: background 300ms ease, transform 200ms ease;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 0% 100%);
}

.btn-whatsapp:hover {
  background: #128C4D;
  transform: translateY(-2px);
}

/* About Grid */
.about {
  padding: 120px 5%;
  max-width: 1600px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: flex-start;
}

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-text {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h3 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* My Mission Section */
.mission-box {
  margin-top: 60px;
  padding: 60px;
  background: var(--surface-color);
  border-left: 5px solid var(--primary);
  position: relative;
}

.mission-box h4 {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.mission-box p {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  text-align: center;
}

/* CTA System */
.cta-block {
  text-align: center;
  padding: 120px 5%;
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-color) 100%);
}

.cta-block h2 {
  font-size: var(--fs-large);
  margin-bottom: 40px;
}

/* Service CTA Hook */
.service-card .btn-small {
  margin-top: 30px;
  width: 100%;
}

/* Blog/Insights Section */
.blog-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 100px;
}

.blog-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0.95));
  z-index: 2;
}

.blog-hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 100px 20px 0;
  margin: 0 auto;
}

.blog-hero-content .section-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 20px;
}

.hero-desc {
  margin-top: 30px;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 40px;
  transition: var(--transition);
}

.back-link:hover {
  color: #fff;
  transform: translateX(-5px);
}

.blog-card.featured {
  border-color: var(--primary);
  position: relative;
}

.blog-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: #000;
  padding: 5px 15px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  z-index: 5;
}

.blog-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-content p {
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--surface-border);
}

.stat-item h4 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-item p {
  color: var(--text-main);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* Approach Section */
.approach {
  background-color: var(--bg-color);
}

.approach-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
}

.approach-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 30px;
}

.impact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.impact-card {
  background: var(--surface-color);
  padding: 40px;
  border: 1px solid var(--surface-border);
  transition: var(--transition);
  position: relative;
}

.impact-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.impact-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.impact-card h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.impact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Experience Timeline - Gnomon Style */
.timeline-container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.timeline-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary);
  border-bottom: 2px solid var(--surface-border);
  padding-bottom: 20px;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-date {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.timeline-item h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Services Edge-to-Edge Grid */
.services {
  padding: 160px 0 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  background: var(--surface-color);
  padding: 80px 60px;
  border: 1px solid var(--surface-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background: var(--primary);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 30px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  color: #fff;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card p {
  color: var(--text-muted);
  transition: var(--transition);
}

.service-card:hover p {
  color: #fff;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px;
  background: var(--surface-border);
  border: 2px solid var(--surface-border);
  max-width: 1400px;
  margin: 0 auto;
}

.skill-card {
  background: var(--surface-color);
  padding: 50px 40px;
  text-align: center;
}

.skill-icon {
  font-size: 3rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.skill-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.skill-card p {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
}

.progress-bar {
  height: 4px;
  background: var(--surface-light);
  margin-top: 20px;
}

.progress {
  height: 100%;
  background: var(--primary);
}

/* Portfolio Tightly Packed Grid */
.portfolio {
  padding-bottom: 0;
}

.portfolio-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 10px 0;
  position: relative;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-main);
}

.filter-btn.active::after {
  width: 100%;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: object-position 4s ease-in-out, transform 0.8s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  text-align: center;
  padding: 40px;
}

.portfolio-item:hover img {
  transform: scale(1.02);
  object-position: bottom;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.category {
  color: var(--primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 15px;
  display: block;
}

.portfolio-overlay h3 {
  font-size: 2rem;
}

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

.portfolio-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 15px;
  max-width: 400px;
  line-height: 1.6;
  font-weight: 400;
}

.portfolio-desc b {
  color: var(--primary);
  font-weight: 700;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .about-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-name {
    letter-spacing: 5px;
    font-size: 0.9rem;
  }
}

.about-info-item h4 {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.about-info-item p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Contact */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* Project Details Page */
.project-header {
  height: 70vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 100px 5% 100px;
}

.project-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.project-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.project-title-box {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.project-title {
  font-size: 3rem;
  margin-bottom: 10px;
}

.project-meta {
  color: var(--primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.project-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 5%;
}

.project-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 800px;
}

.project-text h3 {
  color: var(--text-main);
  font-size: 2rem;
  margin-bottom: 20px;
  margin-top: 40px;
}

/* Case Study Summary Grid */
.case-study-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  background: var(--surface-color);
  padding: 40px;
  border: 1px solid var(--surface-border);
  margin-top: 40px;
  margin-bottom: 60px;
  position: relative;
}

.case-study-summary::before {
  content: 'CASE STUDY MODULE';
  position: absolute;
  top: -10px;
  left: 30px;
  background: var(--primary);
  color: #000;
  padding: 2px 15px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.cs-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-item span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.cs-item h4 {
  font-size: 1rem;
  color: var(--text-main);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.4;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  margin-bottom: 60px;
  background: var(--surface-light);
  border: 4px solid var(--surface-border);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-items: auto;
  gap: 10px;
  margin-bottom: 60px;
}

.photo-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--surface-border);
  transition: object-position 4s ease-in-out, transform 0.4s ease, border-color 0.4s ease;
}

/* .photo-gallery img:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  object-position: bottom;
} */

.gallery-full {
  display: block !important;
}

.gallery-full img {
  height: auto !important;
  max-height: none !important;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--primary);
}

.contact-info {
  background: var(--primary);
  padding: 80px;
  color: #0d0d0d;
}

.contact-info h3,
.contact-info p,
.contact-item i,
.contact-item span {
  color: #0d0d0d;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 2rem;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 60px;
}

.social-icon {
  font-size: 1.5rem;
  color: #0d0d0d;
  transition: var(--transition);
}

.social-icon:hover {
  transform: translateY(-5px);
  color: #444;
}

.contact-form {
  padding: 80px;
  background: var(--surface-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 20px;
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

footer {
  padding: 100px 5% 40px;
  background: var(--surface-color);
  border-top: 1px solid var(--surface-border);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 100px;
  max-width: 1600px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 400px;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: var(--primary);
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links ul li a {
  color: var(--text-muted);
}

.footer-links ul li a:hover {
  color: var(--text-main);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  font-size: 1.8rem;
  color: var(--text-main);
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-5px);
}



/* Architecture Featured Section */
.architecture-featured {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 5%;
}

.arch-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.arch-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.arch-content {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .architecture-featured {
    min-height: 60vh;
    padding: 60px 5%;
  }

  .architecture-featured h2 {
    font-size: 2.5rem !important;
  }
}

/* Animations Overrides */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Staggered Delay Utilities */
.reveal-stagger>*:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-stagger>*:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal-stagger>*:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal-stagger>*:nth-child(5) {
  transition-delay: 0.4s;
}

.reveal-stagger>*:nth-child(6) {
  transition-delay: 0.5s;
}

/* Mask Reveal for Hero */
.mask-up {
  overflow: hidden;
  display: inline-block;
}

.mask-up span {
  display: block;
  transform: translateY(110%);
  animation: maskUpAnimation 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes maskUpAnimation {
  to {
    transform: translateY(0);
  }
}


/* Custom Cursor - Morphing Liquid Lens */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease-out, opacity 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor-outline {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition:
    transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    border-radius 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0.4s ease;
}

.cursor-hover .custom-cursor-outline {
  width: 44px;
  /* Slightly larger than the 40px circle to show interaction, but still small */
  height: 44px;
  background-color: rgba(255, 105, 0, 0.1);
  border-radius: 12px;
  /* Subtle rounded square */
  border-color: rgba(255, 255, 255, 0.2);
}

.cursor-text .custom-cursor-outline {
  width: 2px;
  height: 30px;
  border-radius: 0;
  background-color: var(--primary);
}

@media (max-width: 1024px) {

  .custom-cursor,
  .custom-cursor-outline {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }

  .about-grid,
  .timeline-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-text,
  .contact-info,
  .contact-form {
    padding: 40px;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 4/5;
  }

  .approach-container,
  .footer-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    flex-direction: column;
    justify-content: center;
    transition: 0.4s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
    position: relative;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-headline {
    font-size: 12px;
  }

  .section-padding {
    padding: 80px 5%;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media(max-width: 480px) {
  .about-image {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    font-size: 0.75rem;
    padding: 12px 24px 12px 18px;
  }
  .hero-actions .btn-cv {
    font-size: 0.75rem;
    padding: 6px 25px 6px 6px;
  }
  .hero-actions .btn-cv img {
    width: 36px;
    height: 36px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .portfolio-item {
    width: 100%;
    height: 300px;
  }

  .about-text,
  .contact-info,
  .contact-form {
    padding: 20px;
  }

  .contact-item {
    flex-direction: column;
    gap: 5px;
  }

  .section-padding {
    padding: 60px 5%;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* Contact Form Enhancements */
.form-headline {
  font-size: 2.5rem;
  margin-bottom: 30px;
  background: linear-gradient(to right, var(--primary), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  line-height: 1.2;
}

.form-closing {
  margin-top: 30px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  border-top: 1px solid var(--surface-border);
  padding-top: 20px;
  text-align: left;
}

/* Video Modal Styling */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 50px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  background: #000;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-item {
  cursor: pointer;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .video-modal {
    padding: 20px;
  }

  .form-headline {
    font-size: 1.8rem;
  }
}