@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');



.logo-custom {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo-custom .logo-top {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.logo-custom .logo-bracket {
  color: var(--accent-primary);
  font-weight: 400;
}
.logo-custom .logo-it {
  font-style: italic;
  font-weight: 400;
}





:root {
  --bg-color: #f8f9fa;
  --surface-color: #ffffff;
  --surface-hover: #f1f3f5;
  --border-color: rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent-gold: #D4AF37;
  --accent-primary: var(--accent-gold);
  --nav-height: 80px;
  --header-bg: rgba(255, 255, 255, 0.95);
  --font-main: 'Outfit', sans-serif;
}

body.light-theme, body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--accent-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: transform 0.4s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

header.hidden {
  transform: translateY(-100%);
}

.logo-fallback {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-fallback .it {
  color: var(--accent-primary);
  font-weight: 500;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

nav a:hover {
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  padding-top: calc(var(--nav-height) + 30px);
  padding-bottom: 80px;
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.hero-subtitle {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.15;
  margin-bottom: 30px;
  max-width: 900px;
  color: var(--text-primary);
}

.hero h1 i {
  font-style: normal;
  color: var(--accent-primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 6px;
  border: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--text-primary);
  color: #ffffff;
}


.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Sections */
.services, .section-block {
  padding: 100px 10%;
}

.section-alt {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.section-title span {
  color: var(--accent-primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px auto;
  text-align: center;
}

/* Grids */
.services-grid, .ai-grid, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card, .ai-card, .portfolio-card {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.service-card:hover, .ai-card:hover, .portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-primary);
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.service-icon, .ai-icon {
  font-size: 32px;
  margin-bottom: 25px;
  color: var(--accent-primary);
}

.service-card h3, .ai-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-card p, .ai-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.portfolio-img {
  height: 250px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-info {
  padding: 30px;
}

.portfolio-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.portfolio-info p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

/* CTA */
.cta-section {
  padding: 120px 10%;
  text-align: center;
  background: var(--bg-color);
  color: var(--text-primary);
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  padding: 80px 10% 40px;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-copyright {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}



/* Dashboard & Admin Layout Centralized CSS */
.dashboard-layout { 
  display: flex; 
  min-height: calc(100vh - var(--nav-height)); 
  margin-top: var(--nav-height); 
  position: relative;
}

.sidebar { 
  width: 250px; 
  background: var(--surface-color); 
  padding: 20px; 
  border-right: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  z-index: 100;
}

.sidebar-menu { 
  list-style: none; 
  padding: 0; 
}

.sidebar-menu li { 
  margin-bottom: 10px; 
}

.sidebar-menu a { 
  color: var(--text-primary); 
  text-decoration: none; 
  display: block; 
  padding: 10px; 
  border-radius: 4px; 
  transition: 0.2s; 
}

.sidebar-menu a:hover, 
.sidebar-menu a.active { 
  background: rgba(212, 175, 55, 0.08); 
  color: var(--accent-primary); 
}

.dashboard-content { 
  flex: 1; 
  padding: 40px; 
  min-width: 0;
}

.flex-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 30px; 
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table { 
  width: 100%; 
  border-collapse: collapse; 
  margin-top: 20px; 
  font-size: 0.95rem; 
  min-width: 600px;
}

.data-table th, 
.data-table td { 
  padding: 12px 15px; 
  text-align: left; 
  border-bottom: 1px solid var(--border-color); 
}

.data-table th { 
  color: var(--text-secondary); 
  font-weight: normal; 
  background: rgba(0, 0, 0, 0.02); 
}

/* Dashboard Sidebar Toggle (Mobile only) */
.mobile-sidebar-toggle {
  display: none;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

/* Footer */
footer {
  padding: 60px 10% 30px;
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  text-align: left;
  margin-bottom: 30px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-primary);
}

.footer-brand h4 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-top: 10px;
    justify-content: center;
    width: 100%;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-primary);
}

.footer-copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  width: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Contact Section - form styles compatibility */
.contact-section {
  padding: 120px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info a {
  font-size: 1.2rem;
  color: var(--accent-primary);
  font-weight: 400;
  letter-spacing: 1px;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 6px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.service-card:hover, .feature-card:hover, .ai-card:hover, .tool-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseOrb {
  from { opacity: 0.4; transform: scale(1); }
  to { opacity: 0.8; transform: scale(1.15); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  nav#mainNav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 6%;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  nav#mainNav.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  nav#mainNav ul {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }
  
  nav#mainNav a {
    font-size: 1.1rem;
  }



  .hero-cta {
    flex-direction: column;
    width: 100%;
    padding: 0 5%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 50px);
    padding-bottom: 50px;
  }
  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .services, .section-block { padding: 60px 5%; }
  .cta-section { padding: 60px 5%; }
  footer { padding: 40px 5% 20px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center !important; width: 100%; margin-top: 20px; }
    .footer-col { margin-bottom: 20px; }
    .footer-grid { gap: 30px; }
  .portfolio-grid, .services-grid, .features-grid, .tools-grid { grid-template-columns: 1fr; }

  /* Dashboard Responsive Adjustments */
  .dashboard-layout {
    flex-direction: column;
  }
  
  .dashboard-content {
    padding: 20px;
  }
  
  .flex-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .mobile-sidebar-toggle {
    display: inline-block;
  }

  .sidebar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    height: calc(100vh - var(--nav-height));
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .pos-layout {
    flex-direction: column !important;
  }

  .modal-content {
    width: 95%;
    padding: 20px;
  }
}
