/*-----------------------------------*\
  #ULTIMA NOTEBOOKS - PROFESSIONAL DESIGN
  Modern, Clean, E-Commerce Grade Website
\*-----------------------------------*/

:root {
  /* Professional Color Palette */
  --color-primary: #2563eb;        /* Modern Blue */
  --color-primary-dark: #1e40af;
  --color-primary-light: #3b82f6;
  --color-secondary: #0f172a;      /* Deep Navy */
  --color-accent: #f59e0b;         /* Warm Amber */
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #0f172a;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  
  /* Typography */
  --font-primary: 'Inter', 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Urbanist', sans-serif;
  
  /* Font Sizes - Professional Scale */
  --text-xs: 1.2rem;
  --text-sm: 1.4rem;
  --text-base: 1.6rem;
  --text-lg: 1.8rem;
  --text-xl: 2rem;
  --text-2xl: 2.4rem;
  --text-3xl: 3rem;
  --text-4xl: 3.6rem;
  --text-5xl: 4.8rem;
  
  /* Spacing */
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.2rem;
  --space-4: 1.6rem;
  --space-5: 2rem;
  --space-6: 2.4rem;
  --space-8: 3.2rem;
  --space-10: 4rem;
  --space-12: 4.8rem;
  --space-16: 6.4rem;
  --space-20: 8rem;
  
  /* Shadows - Professional */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.4rem;
  --radius: 0.6rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.2rem;
  --radius-xl: 1.6rem;
  --radius-full: 999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
}

.h1, h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
.h2, h2 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
.h3, h3 { font-size: var(--text-3xl); }
.h4, h4 { font-size: var(--text-2xl); }
.h5, h5 { font-size: var(--text-xl); }
.h6, h6 { font-size: var(--text-lg); }

/* Buttons - Professional */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-gray-900);
  border: 1px solid var(--color-gray-300);
}

.btn-secondary:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/*-----------------------------------*\
  #HEADER - Modern Minimal
\*-----------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7.2rem;
}

.logo img {
  height: 3.2rem;
  width: auto;
}

/* Desktop Navigation */
.navbar {
  display: none;
}

.navbar-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
}

.navbar-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-base);
}

.navbar-link:hover {
  color: var(--color-primary);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.navbar-link:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.nav-open-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-open-btn .line {
  width: 24px;
  height: 2px;
  background-color: var(--color-gray-900);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* Mobile Navigation */
.mobile-navbar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  transition: left var(--transition-slow);
  z-index: 2000;
}

.mobile-navbar.active {
  left: 0;
}

.mobile-navbar .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.nav-close-btn {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--color-gray-900);
  padding: var(--space-2);
}

.mobile-navbar .navbar-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.mobile-navbar .navbar-link {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--color-gray-700);
  width: 100%;
  border-bottom: 1px solid var(--color-gray-100);
}

.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1500;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/*-----------------------------------*\
  #HERO - Full Width Modern
\*-----------------------------------*/
.hero {
  margin-top: 7.2rem;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
  color: var(--color-white);
  padding: var(--space-12) 0;
}

.hero-subtitle {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.hero-description {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/*-----------------------------------*\
  #SECTIONS
\*-----------------------------------*/
.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto var(--space-16);
}

.section-title {
  font-size: var(--text-4xl);
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
}

/*-----------------------------------*\
  #COLLECTION - Modern Cards
\*-----------------------------------*/
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.collection-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
}

.collection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.collection-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8);
  color: var(--color-white);
  z-index: 2;
}

.collection-card-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  color: var(--color-white);
}

.collection-card-description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
}

.collection-card-list {
  list-style: none;
  margin-bottom: var(--space-4);
}

.collection-card-list li {
  font-size: var(--text-sm);
  padding-left: var(--space-5);
  position: relative;
  margin-bottom: var(--space-2);
}

.collection-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}

/*-----------------------------------*\
  #PRODUCTS - E-Commerce Grid
\*-----------------------------------*/
.products-section {
  background-color: var(--color-gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-content {
  padding: var(--space-5);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-2);
}

.product-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.product-description {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.product-price-currency {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-gray-500);
}

/*-----------------------------------*\
  #FEATURES - Icon Grid
\*-----------------------------------*/
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  text-align: center;
  padding: var(--space-8);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-lg);
  font-size: 3.2rem;
  color: var(--color-white);
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-gray-900);
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: 1.6;
}

/*-----------------------------------*\
  #CTA - Call to Action
\*-----------------------------------*/
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
}

.cta-content {
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-description {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}

.cta-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  text-align: left;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
}

.cta-feature i {
  font-size: 2rem;
}

/*-----------------------------------*\
  #FOOTER - Modern Clean
\*-----------------------------------*/
.footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-column h5 {
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-800);
  border-radius: var(--radius);
  color: var(--color-gray-400);
  transition: all var(--transition-base);
}

.social-link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/
.back-top-btn {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 100;
}

.back-top-btn.active {
  opacity: 1;
  visibility: visible;
}

.back-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/
@media (min-width: 768px) {
  .hero-title {
    font-size: 5.6rem;
  }
  
  .section {
    padding: var(--space-20) 0;
  }
}

@media (min-width: 992px) {
  .navbar {
    display: block;
  }
  
  .nav-open-btn {
    display: none;
  }
  
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-section] > * {
  animation: fadeIn 0.6s ease-out;
}
