:root {
  --primary-blue: #1F4C8F;
  --grey: #4A4A4A;
  --light-grey: #E0E0E0;
  --white: #FFFFFF;
  --dark-blue: #163a6b;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--grey);
  background: var(--white);
  line-height: 1.6;
  padding-top: 60px; 
}

p {
    margin-bottom: 20px;
  } 

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

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo {
    cursor: pointer;
    color: inherit;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-list a {
  text-decoration: none;
  color: var(--grey);
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--primary-blue);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--grey);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 25px;
  height: 3px;
  background: var(--grey);
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.open .hamburger { background: transparent; }
.open .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.open .hamburger::after { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(100deg, #0538f0, #512da8);
    color: var(--white);
    text-align: center;
    padding: 10rem 2rem;
    position: relative;
    overflow: hidden;
    animation: fadeIn .5s ease-in-out;
}

/* Fade-in effect for the hero section */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing effect for heading */
.hero-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    border-right: 2px solid var(--white);
}

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


/* Call-to-Action Button Animation */
.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease-in-out, background 0.3s;
    margin: 2rem 0; 
    z-index:1001;
}

/* Button hover with bounce effect */
.cta-button:hover {
    background: var(--light-grey);
    transform: scale(1.1);
}



/* About Section */
.about-section {
  background: var(--light-grey);
  padding: 4rem 2rem;
}

.about-section h2 { margin-bottom: 1rem; }

/* Work Section */
.work-section {
  padding: 4rem 2rem;
}

.work-section h2 {
  margin-bottom: 2rem;
  text-align: center;
}

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

.card {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2rem;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease-in-out;
}

.card img:hover {
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
  background: var(--light-grey);
  text-align: center;
  padding: 4rem 2rem;
}

.contact-section p { margin-bottom: 2rem; }

.contact-form {
  display: inline-block;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
}

.contact-form h2 { text-align: center; margin-bottom: 15px; }

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-form button {
  width: 100%;
  padding: 10px;
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--dark-blue);
}

/* Hidden Honeypot Field */
.hidden-field {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-top: 1px solid #ddd;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--grey);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 100%;
    right: 2rem;
    background: var(--white);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-list.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index:1002;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
  z-index: 1003; 
}

.lightbox .close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}