/* ========================================
   IMAGE SRL - Static Website Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display&display=swap');

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

:root {
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-gray-100: #f7f7f7;
  --color-gray-200: #e8e8e8;
  --color-gray-400: #999999;
  --color-gray-600: #666666;
  --color-gray-800: #333333;
  --color-accent: #1a1a1a;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --max-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

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

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gray-600);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-black);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-black);
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-gray-800);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-black);
  border: 2px solid var(--color-black);
}

.btn-outline-dark:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-link {
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.7rem;
  padding: 14px 32px;
  letter-spacing: 2.5px;
}

.btn-link:hover {
  background: var(--color-gray-800);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  margin-top: var(--header-height);
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.hero-logo-img {
  max-width: 320px;
  height: auto;
  margin: 0 auto 16px;
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 32px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--color-white);
}

.hero-circle {
  position: absolute;
  width: 340px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

/* --- Mission Statement --- */
.mission {
  padding: 80px 24px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-gray-800);
}

/* --- About / Who We Are Section --- */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--color-black);
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: 16px;
}

.about-text .btn {
  margin-top: 16px;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-i-icon {
  width: 100px;
  height: auto;
}

/* --- Skills Section --- */
.skills-section {
  padding: 80px 0;
  background: var(--color-gray-100);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.skills-text .uppercase {
  color: var(--color-gray-400);
  display: block;
  margin-bottom: 8px;
}

.skills-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.skills-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-gray-600);
}

.skills-bars {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skill-item {
  width: 100%;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-black);
}

.skill-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray-400);
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: var(--color-gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--color-black);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-fill.animated {
  width: var(--target-width);
}

/* --- Portfolio / Gallery Section --- */
.portfolio-section {
  padding: 40px 0 80px;
}

.portfolio-heading {
  margin-bottom: 12px;
}

.portfolio-heading .uppercase {
  color: var(--color-gray-400);
  margin-bottom: 8px;
  display: block;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.portfolio-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-gray-200);
}

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

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

.portfolio-label {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-white);
  background: rgba(0,0,0,0.5);
  padding: 6px 12px;
}

/* --- Blog Section --- */
.blog-section {
  padding: 80px 0;
}

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

.blog-section .section-header .uppercase {
  color: var(--color-gray-400);
  display: block;
  margin-bottom: 8px;
}

.blog-section .section-header h2 {
  font-size: 2.5rem;
}

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

.blog-card {
  background: var(--color-white);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--color-gray-200);
  margin-bottom: 16px;
}

.blog-card .blog-date {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* --- Services Page --- */
.services-intro {
  text-align: center;
  padding: 80px 0 60px;
}

.services-intro .uppercase {
  color: var(--color-gray-400);
  display: block;
  margin-bottom: 8px;
}

.services-intro h2 {
  font-size: 2.5rem;
}

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

.service-card {
  text-align: left;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--color-black);
  border-radius: 50%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon--flat {
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
}

.service-icon-img {
  width: 40px;
  height: 40px;
}

.service-icon--flat .service-icon-img {
  filter: none;
}

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

.service-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gray-400);
  margin-bottom: 20px;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: 16px;
}

.service-card p:last-of-type {
  margin-bottom: 24px;
}

/* --- Contact Page --- */
.contact-section {
  padding: 80px 0 100px;
}

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

.contact-form h2 {
  font-size: 2.2rem;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--color-black);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-black);
  background: var(--color-white);
  transition: border-color 0.3s ease;
}

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

.form-group textarea {
  height: 180px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-400);
}

.contact-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 0.85rem;
}

.contact-info {
  padding-top: 20px;
}

.contact-info h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--color-black);
}

.contact-info p,
.contact-info a {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.8;
}

.contact-info a:hover {
  color: var(--color-black);
}

/* Form success message */
.form-success {
  text-align: center;
  padding: 60px 20px;
}

.form-success svg {
  margin: 0 auto 16px;
  display: block;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

.form-error {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.5fr 0.8fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid--compact {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-blog-links a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.footer-blog-links a:hover {
  color: var(--color-white);
}

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  visibility: hidden;
}

.footer-social a {
  color: var(--color-white);
  transition: opacity 0.3s ease;
}

.footer-social a:hover {
  opacity: 0.7;
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid,
  .footer-grid--compact {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav .btn-primary {
    display: none;
  }

  .nav-links .btn-primary-mobile {
    display: inline-block;
  }

  .hero {
    height: 50vh;
    min-height: 380px;
  }

  .hero-logo-img {
    max-width: 200px;
  }

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

  .hero-circle {
    width: 200px;
  }

  .mission {
    padding: 48px 24px;
  }

  .mission p {
    font-size: 0.95rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-visual {
    justify-content: center;
  }

  .about-i-icon {
    width: 70px;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
