/* === Root Variables === */
/* Define global color variables and reusable styles */
:root {
  --color-primary: #39342C;
  --color-bg-light: hwb(192 44% 5%);
  --color-bg-gradient: linear-gradient(to bottom, #b3d4e0, #a4c3cf);
  --bg-gradient-light: linear-gradient(135deg, #78c5f8 0%, #b5ddf9 30%, #fdebcb 60%, #e1b169 100%);
  --text-primary-light: #000000;
  --text-secondary-light: rgba(57, 52, 44, 0.8);
  --card-bg-light: rgba(255, 255, 255, 0.85);
  --nav-bg-light: rgba(255, 255, 255, 0.65);
  --button-primary-light: #39342C;
  --button-secondary-light: #e9eaed;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

/* === Global Styles === */
/* Apply global styles for body and html */
body {
  background: var(--bg-gradient-light) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  overflow-y: auto;
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: var(--text-primary-light);
  transition: color 0.3s ease, background 0.5s ease;
}

html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* === Links === */
/* Remove default underline from links */
a {
  text-decoration: none !important;
}

/* === Typography === */
/* Define font styles for headings, paragraphs, and reusable text elements */
.signature-font {
  font-family: 'Pacifico', cursive !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px;
}

h1, h2, h3, h4, h5, h6, .project-title, .section-heading, .cta-title, .footer-heading, 
.hero-name, .hero-title, .hero-subtitle, body, p, .project-description, .project-showcase-info, 
.project-category, .feature-list, .learn-more, .learn-more-link, .project-content, 
.project-showcase-section, .project-showcase-flex {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* === Project Card/Section Shared Styles === */
/* Define shared styles for project cards and sections */
.project-card, .project-showcase-section, .project-showcase-flex, .project-showcase-info, 
.project-showcase-image, .projects-grid {
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.project-title, h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: #23180d;
  line-height: 1.1;
}

.project-category {
  font-size: 1.15rem;
  color: #7c5c2b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.project-description {
  font-size: 1.1rem;
  color: #39342C;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 38rem;
}

.feature-list, .project-features-list {
  font-size: 1rem;
  color: #23180d;
  font-weight: 500;
}

.learn-more, .learn-more-link {
  font-weight: 600;
  color: #7c5c2b;
  text-decoration: none;
  margin-bottom: 2rem;
  display: inline-block;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.learn-more:hover, .learn-more-link:hover {
  color: #b48a3c;
}

.project-showcase-image img, .project-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* === Media Queries for Project Section === */
/* Adjust styles for project section on smaller screens */
@media (max-width: 900px) {
  .project-title {
    font-size: 1.3rem;
  }
  .project-description {
    font-size: 1rem;
  }
  .feature-list, .project-features-list {
    font-size: 0.95rem;
  }
}

/* === Section Headings === */
/* Define styles for section headings */
.section-heading {
  font-weight: 700;
  font-size: 2rem;
  min-height: 1.2em;
}

/* === Call-to-Action Title === */
/* Define styles for call-to-action titles */
.cta-title {
  font-weight: 700;
  font-size: 2rem;
}

/* === Buttons === */
/* Define styles for buttons and interactive elements */
.nav-button, .primary-button, .secondary-button, .cta-secondary-button, .learn-more, 
.learn-more-link, .view-more, button, input[type="submit"], input[type="button"] {
  background: linear-gradient(135deg, #78c5f8, #b5ddf9, #c9e0f0) !important;
  color: #000 !important;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 0.5rem;
}

.nav-button:hover, .primary-button:hover, .secondary-button:hover, .cta-secondary-button:hover, 
.learn-more:hover, .learn-more-link:hover, .view-more:hover, button:hover, input[type="submit"]:hover, 
input[type="button"]:hover {
  background: linear-gradient(135deg, #b5ddf9, #c9e0f0, #fdebcb) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px -2px rgba(0,0,0,0.12);
}

/* === Text Utilities === */
/* Define utility classes for text styles */
.text-black {
  color: #000 !important; 
}

.text-2xl {
  font-size: 1.5rem;
}

.font-bold {
  font-weight: 700;
}

/* === Header === */
/* Define styles for the main header and navigation bar */
.main-header {
  position: fixed;
  top: 7px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.5rem;
  display: block !important;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
}

.nav-bar {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding-left: 2rem;
  padding-right: 2rem;
  border-radius: 9999px;
  box-shadow: 0 8px 32px 0 var(--shadow-light) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
  backdrop-filter: blur(30px) saturate(180%) !important;
  background: var(--nav-bg-light) !important;
}

/* === Navigation Logo === */
/* Define styles for navigation logo */
.nav-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  color: #111 !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.nav-logo:hover .logo-text {
  transform: scale(1.05);
}

.logo-text {
  font-family: 'Pacifico', cursive !important;
  font-size: 2rem;
  font-weight: 400 !important;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #333, #000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  transform: translateZ(0) scale(1.0001); 
  perspective: 1000;
  filter: blur(0); 
}

/* === Header Controls === */
/* Define styles for header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  height: 40px;
}

.header-controls > * {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0;
  height: 32px; 
  vertical-align: middle;
}

/* === Section === */
/* Define styles for sections */
.section {
  padding-top: 5rem; 
  padding-bottom: 5rem; 
}

/* === Hero Section === */
/* Define styles for hero section */
.hero-section {
  padding-top: 12rem;
  padding-bottom: 5rem; 
  position: relative;
  background-color: transparent;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-content {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.hero-name {
  margin-bottom: 1.5rem;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 0.8;
  color: #39342C;
}

.hero-subtitle {
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  color: rgba(57, 52, 44, 0.8);
}

/* === Button Container === */
/* Define styles for button container */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* === Primary Button === */
/* Define styles for primary button */
.primary-button {
  border-radius: 9999px;
  background-color: #39342C;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  transition: background-color 0.2s;
}

.primary-button:hover {
  background-color: rgba(57, 52, 44, 0.8);
}

/* === Secondary Button === */
/* Define styles for secondary button */
.secondary-button {
  border-radius: 9999px;
  background-color: #e9eaed;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #39342C;
  transition: background-color 0.2s;
}

.secondary-button:hover {
  background-color: #d1d5db;
}

/* === Button Hover Effect === */
/* Define styles for button hover effect */
.button-hover-effect {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.button-icon {
  font-size: 1rem;
}

/* === Animation === */
/* Define fade-in-up animation */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0; 
  will-change: transform, opacity;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Showcase Section === */
/* Define styles for showcase section */
.showcase-section-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.showcase-container {
  border-radius: 1rem;
  background-color: rgb(88, 88, 88);
  overflow: hidden;
  box-shadow: 0 20px 20px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 400px;
  width: 100%;
  max-height: 400px;
  height: 100%;
  margin: 0;
  flex-shrink: 0;
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem;
  z-index: 10;
  position: relative;
  display: block;
}

.showcase-text {
  flex: 1;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  color: #252320;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* === Media Queries for Showcase Section === */
/* Adjust styles for showcase section on smaller screens */
@media (max-width: 900px) {
  .showcase-section-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .showcase-container {
    margin-left: auto;
    margin-right: auto;
  }
  .showcase-text {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    margin-top: 1.5rem;
    text-align: center;
  }
}

/* === Section Heading === */
/* Define styles for section heading */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 700;
  color: black !important;
}

/* === Projects Grid === */
/* Define styles for projects grid */
.projects-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  visibility: visible !important;
}

/* === Project Card === */
/* Define styles for project card */
.project-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0.75rem;
  background: var(--card-bg-light) !important;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  color: var(--text-primary-light);
  max-width: 350px;
  min-width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
}

.project-icon {
  margin-bottom: 1rem;
  height: 2.5rem;
  width: 2.5rem;
  color: black !important;
}

.project-title {
  margin-bottom: 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  color: black !important;
}

.project-description {
  color: black !important;
  opacity: 0.85;
}

/* === Call-to-Action Section === */
/* Define styles for call-to-action section */
.cta-section {
  padding-top: 5rem; 
  padding-bottom: 5rem; 
  background: transparent;
  color: #000000;
  text-align: center;
  position: relative;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000000;
}

.cta-text {
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 2rem;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
  opacity: 0.7;
}

.cta-section .button-container {
  margin-top: 2.5rem;
  gap: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* === Footer === */
/* Define styles for the footer and its elements */
.footer {
  padding-top: 5rem; 
  padding-bottom: 5rem; 
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-heading {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #000 !important;
}

.footer-links {
  display: flex;
  flex-row: row;
  gap: 1.5rem;
  list-style-type: none;
  padding-left: 1rem;
  margin-left: 0;
  align-items: center;
}

.footer-icon-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.footer-icon-link:hover {
  opacity: 0.8;
}

.footer-icon {
  width: 1.625rem;
  height: 1.625rem;
  fill: black;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(57, 52, 44, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(57, 52, 44, 0.6);
}

.legal-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.legal-link {
  font-size: 0.875rem;
  color: rgba(57, 52, 44, 0.6);
  transition: color 0.2s;
}

.legal-link:hover {
  color: #39342C;
}

/* === Media Queries for Footer === */
/* Adjust styles for footer on larger screens */
@media (min-width: 640px) {
  .button-container {
    flex-direction: row;
  }
  
  .footer-bottom {
    flex-direction: row;
  }
  
  .legal-links {
    margin-top: 0;
  }
}

/* === Media Queries for Hero Section === */
/* Adjust styles for hero section on larger screens */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .hero-section {
    padding-top: 14rem;
    padding-bottom: 8rem;
  }
}

/* === Media Queries for Projects Grid === */
/* Adjust styles for projects grid on larger screens */
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* === Media Queries for Small Screens === */
/* Adjust styles for small screens */
@media (max-width: 400px), (max-height: 600px) {
  .hero-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .project-card {
    padding: 0.75rem !important;
  }
}

/* === Media Queries for Navigation Bar === */
/* Adjust styles for navigation bar on smaller screens */
@media (max-width: 640px) {
  .nav-bar {
    padding-left: 1.20rem;
    padding-right: 1.20rem;
    height: 50px;
  }
  
  .logo-text {
    font-size: 1.65rem;
    letter-spacing: 0;
  }
  
  .nav-button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    height: 18px;
  }
  
  .header-controls {
    gap: 0.5rem;
  }
  
  .header-controls > * {
    height: 24px;
  }
}

/* === Media Queries for Very Small Screens === */
/* Adjust styles for very small screens */
@media (max-width: 400px) {
  .nav-bar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    height: 45px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .project-card {
    padding: 1rem !important;
  }
}

/* === Media Queries for Large Screens === */
/* Adjust styles for large screens */
@media (min-width: 1440px) {
  .section-container, .nav-container {
    max-width: 1600px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
  .hero-content {
    max-width: 1100px;
    font-size: 1.25rem;
  }
  .hero-name {
    font-size: 4rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1.75rem;
  }
  .projects-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2.5rem;
  }
  .project-card {
    max-width: 420px;
    min-width: 320px;
    font-size: 1.15rem;
    padding: 2.25rem;
  }
  .showcase-section-flex {
    max-width: 1300px;
    gap: 4rem;
  }
  .showcase-container {
    max-width: 520px;
    max-height: 520px;
  }
  .footer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3rem;
  }
  .footer {
    padding-top: 6rem; 
    padding-bottom: 6rem; 
  }
  .section {
    padding-top: 6rem; 
    padding-bottom: 6rem; 
  }
  .hero-section {
    padding-top: 14rem; 
    padding-bottom: 6rem; 
  }
  .cta-section {
    padding-top: 6rem; 
    padding-bottom: 6rem; 
  }
}

/* === Media Queries for Extra Large Screens === */
/* Adjust styles for extra large screens */
@media (min-width: 1920px) {
  body, html {
    font-size: 1.15rem;
  }
  .hero-name {
    font-size: 5rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .section-heading, .cta-title {
    font-size: 3rem;
  }
  .projects-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .section {
    padding-top: 7rem; 
    padding-bottom: 7rem; 
  }
  .hero-section {
    padding-top: 16rem; 
    padding-bottom: 7rem; 
  }
  .cta-section {
    padding-top: 7rem; 
    padding-bottom: 7rem; 
  }
  .footer {
    padding-top: 7rem; 
    padding-bottom: 7rem; 
  }
}

/* === Media Queries for Project Section === */
/* Adjust styles for project section on smaller screens */
@media (max-width: 1000px) {
  .project-title {
    font-size: 2rem;
  }
  .project-description {
    font-size: 1rem;
  }
  .feature-list li {
    font-size: 1rem;
  }
}

/* === Fullscreen Mode === */
/* Define styles for fullscreen mode */
body.fullscreen, html.fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  overflow: hidden;
}
body.fullscreen {
  background-size: 100vw 100vh !important;
}

/* === Gradient Text === */
/* Define styles for gradient text */
.gradient-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* === Scroll Reveal Animation === */
/* Define styles for scroll reveal animation */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.8s ease-out;
}

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