/* =========================================================================
   Irum Brand Studio - style.css
   Style guidelines based on haptic.studio
   ========================================================================= */

:root {
  /* Colors */
  --c-deep-purple: #6B5CE7;
  --c-offwhite: #FAFAFA;
  --c-white: #FFFFFF;
  --c-light-purple: #F0EEFF;
  --c-dark-gray: #1A1A1A;
  --c-light-gray: #666666;
  --c-border: #EEEEEE;

  /* Typography */
  --f-sans: 'Pretendard', 'Inter', sans-serif;
  
  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Spacing */
  --header-height: 80px;
}

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

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

body {
  font-family: var(--f-sans);
  color: var(--c-dark-gray);
  background-color: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  color: var(--c-light-gray);
}

/* Layout Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 120px 0;
  position: relative;
}

.bg-offwhite { background-color: var(--c-offwhite); }
.bg-lightpurple { background-color: var(--c-light-purple); }
.bg-deeppurple { background-color: var(--c-deep-purple); color: var(--c-white); }
.bg-deeppurple p { color: rgba(255, 255, 255, 0.8); }

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
}

.btn-primary {
  background-color: var(--c-deep-purple);
  color: var(--c-white);
}

.btn-primary:hover {
  background-color: #5848d1;
  color: var(--c-white);
}

.btn-white {
  background-color: var(--c-white);
  color: var(--c-deep-purple);
}

.btn-white:hover {
  background-color: #f0f0f0;
}

/* =========================================================================
   Header
   ========================================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background-color: var(--c-white);
  border-bottom: 1px solid #e0e0e0;
}

.header-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

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

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--c-deep-purple);
}

.nav-cta {
  padding: 10px 24px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

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

/* Day/Night Theme Overrides */
body.night-mode { background-color: #0d0c18; color: #ffffff; }
body.night-mode .header { background-color: transparent; }
body.night-mode .header.scrolled { background-color: #13112a; border-bottom: 1px solid rgba(255,255,255,0.08); }
body.night-mode .logo a,
body.night-mode .nav-links a { color: rgba(255,255,255,0.85); }
body.night-mode .nav-links a:hover { color: #7C6AF5; }
body.night-mode .section { background-color: #0d0c18; }
body.night-mode .bg-offwhite { background-color: #111029; }
body.night-mode .bg-lightpurple { background-color: #13112a; }
body.night-mode h2, body.night-mode h3 { color: #ffffff; }
body.night-mode p { color: rgba(255,255,255,0.6); }
body.night-mode .service-card { background-color: #1a1838; }
body.night-mode .service-card:hover { background-color: #7C6AF5; }
body.night-mode .keyword-item { border-bottom-color: rgba(255,255,255,0.1); }
body.night-mode .keyword-text { color: #ffffff; }
body.night-mode .footer { background-color: #080714; }

body.night-mode .header:not(.scrolled) .logo a,
body.night-mode .header:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.85); }
body.night-mode .header:not(.scrolled) .nav-cta { background-color: #7C6AF5; color: #ffffff; }

body.night-mode .hero-title {
  color: #7C6AF5;
}

body.night-mode .hero-sub {
  color: rgba(255, 255, 255, 0.38);
}

body.night-mode .hero .btn {
  background-color: #7C6AF5;
  color: #ffffff;
}

body.night-mode .hero .btn:hover {
  background-color: #6a57d9;
}

.hero-sub {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-light-gray);
  margin-bottom: 24px;
}

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

.hero-title {
  font-size: clamp(40px, 6vw, 80px); /* Responsive typography */
  font-weight: 800;
  color: var(--c-deep-purple);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 40px;
  opacity: 0;
  animation: slideUp 0.9s ease forwards 0.2s;
}

/* =========================================================================
   Philosophy Section
   ========================================================================= */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

.philosophy-text p {
  font-size: 1.125rem;
  line-height: 1.8;
}

.philosophy-keywords {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.keyword-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 24px;
}

.keyword-num {
  font-size: 0.875rem;
  color: var(--c-deep-purple);
  font-weight: 700;
  margin-bottom: 8px;
}

.keyword-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-dark-gray);
}

/* =========================================================================
   Services Section
   ========================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--c-offwhite);
  padding: 60px 40px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.service-icon {
  margin-bottom: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-deep-purple);
  transition: color var(--transition-base);
}

.service-icon .lucide {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: color var(--transition-base);
}

.service-card p {
  transition: color 0.3s ease;
}

/* Hover Interactivity */
.service-card:hover {
  background-color: var(--c-deep-purple);
  color: var(--c-white);
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p {
  color: var(--c-white);
}

/* =========================================================================
   Portfolio Section
   ========================================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portfolio-card {
  cursor: pointer;
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  margin-bottom: 24px;
  transition: transform var(--transition-base);
  background-size: cover;
  background-position: center;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.02);
}

/* Placeholders Gradients */
.img-gradient-1 { background: linear-gradient(135deg, #6B5CE7 0%, #a29bfe 100%); }
.img-gradient-2 { background: linear-gradient(135deg, #a29bfe 0%, #fd79a8 100%); }
.img-gradient-3 { background: linear-gradient(135deg, #6B5CE7 0%, #74b9ff 100%); }

.portfolio-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-deep-purple);
  margin-bottom: 8px;
}

/* =========================================================================
   About Section
   ========================================================================= */
.about-content {
  text-align: center;
  max-width: 800px;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--c-deep-purple);
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1.25rem;
  color: var(--c-dark-gray);
}

/* =========================================================================
   Contact Section
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-text h2 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.contact-text p {
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  border-radius: 4px;
  font-family: var(--f-sans);
  font-size: 1rem;
  transition: border-color var(--transition-base), background var(--transition-base);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-white);
  background: rgba(255, 255, 255, 0.15);
}

.contact-form .btn {
  margin-top: 16px;
  width: 100%;
}

.form-success-msg {
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}
.form-success-msg.hidden {
  display: none;
}
.form-success-msg p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--c-white);
  margin: 0;
  font-weight: 600;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  padding: 40px 0;
  background-color: var(--c-dark-gray);
  color: var(--c-white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.25rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* =========================================================================
   Animations (Fade-in)
   ========================================================================= */
/* Elements inside sections can also fade if needed, 
   but section fade is primary now. Keeping for compatibility. */
.animation-ready {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animation-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */
/* Tablet (Max: 1024px) */
@media screen and (max-width: 1024px) {
  .section { padding: 100px 0; }
  
  .philosophy-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Mobile & Small Tablet (Max: 768px) */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  
  .section { padding: 80px 0; }
  
  .section-header h2 { font-size: 2rem; }
  
  .nav {
    display: none; /* Hide standard nav on mobile (could add a toggle menu later) */
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: white;
    padding: 24px;
    gap: 20px;
  }
  
  .menu-toggle {
    display: block; /* Show hamburger icon */
    color: var(--c-dark-gray);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-text h2 {
    font-size: 2rem;
  }
}

/* Small Mobile (Max: 480px) */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }
  .philosophy-text h2 {
    font-size: 1.75rem;
  }
}
