
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0f172a;
    --primary-light: #ffffff;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-light: #e2e8f0;
}

body {
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--primary-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6)),
                linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-content {
    text-align: center;
    color: var(--primary-light);
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center bottom;
}

.container {
    width: 100%;
    padding: 120px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.intro-section {
    background: var(--primary-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.intro-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.intro-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.service-card {
    background: var(--primary-light);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    margin-bottom: 1.5rem;
    opacity: 1;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.dark-section {
    background: var(--primary-dark);
    color: var(--primary-light);
}

.process-section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.process-step {
    text-align: center;
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-step p {
    opacity: 0.8;
    line-height: 1.7;
}

.tech-section {
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .tech-content {
        grid-template-columns: 1fr 1fr;
    }
}

.tech-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.tech-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-feature {
    display: flex;
    align-items: start;
    gap: 1rem;
    opacity: 1;
    transform: translateX(0);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-green);
    flex-shrink: 0;
    opacity: 1;
}

.tech-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-mockup {
    width: 300px;
    height: 400px;
    background: var(--primary-dark);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.screen-content {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #1e293b;
    border-radius: 10px;
    padding: 1.5rem;
}

.value-section {
    background: var(--primary-light);
    text-align: center;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.value-item {
    opacity: 1;
    transform: scale(1);
}

.value-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.value-item h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.value-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.cta-section {
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: var(--primary-light);
    text-align: center;
    padding: 120px 5%;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    opacity: 1;
    transform: scale(1);
}

.cta-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container {
        padding: 80px 5%;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .tech-visual {
        height: 350px;
    }
    
    .device-mockup {
        width: 250px;
        height: 350px;
    }
}

  /* Navigation Styles */
  .jjc-nav {
    position: fixed;
    top: 0;
    left: 6vw;
    justify-self:
      center !important;
    align-self: center !important;
    width: 88vw;
    border-radius: 8px;
    box-shadow: 
    oklch(50% .031 128 / .25)  0px 15px 15.3px -5.2px,
     oklch(80% .031 128) inset 0px 3px 7px -.9px,
     oklch(60% .031 128 /.4)  0px 3px 9px -4.9px,
     oklch(80% .031 128) inset 0px .2px 4.6px -.35px;
    margin: 28px 0 0 0;
    padding: 17px 1.5% 16.5px 1.5%;
    z-index: 1000;
    background: oklch(89.9% 0 0 / .95);
    transition: all 1.3s ease;
    opacity: 1;
  }

  .jjc-nav.scrolled {
    margin: 0;
    left: 0;
    width: 100vw;
    align-self:center !important;
    justify-self: center !important;
    background: oklch(99.8% 0.045 320 / .185);
    backdrop-filter: blur(1.4px);
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    opacity: 1;}
  
  .jjc-nav.scrolled .jjc-nav{  text-shadow: .1px 1.1px 20px oklch(40% .1 132);
  }

  .jjc-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .jjc-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
    text-decoration: none;
    color: oklch(40% .019 128);
    font-family: 'Bodoni Moda', serif;
  }

  .jjc-nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
     color: oklch(89% 0.01 130);
    text-shadow: .1px 1.1px 2px oklch(70% .1 132);
    font-family: 'Bodoni Moda', serif;

  }
 
  .jjc-nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }
  .jjc-nav-links a {
    color: rgb(210, 236, 198);
    text-shadow: .01px .9535px 1.982px oklch(30% .1 132 / .5);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }

  .jjc-nav-links a:hover,
  .jjc-nav-links a.active {
    color: oklch(9% 0 0);
  }

  .jjc-contact-btn {
    background: oklch(50% 0 0 /.675);
    color: #FFF;
    padding: 0.7rem 1.8rem;
    border: 1px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .jjc-contact-btn:hover {
    background:oklch(50% 0 0 /.675);
    color: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px oklch(0% 0 0 / 0.2);
  }

  /* Mobile Toggle */
  .jjc-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;      background-color: yellow;

    height: 22px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
  }

  .jjc-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: yellow;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .jjc-mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .jjc-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .jjc-mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Mega Dropdown Styles */
  .has-ultra-dropdown {
    position: relative;
  }

  .ultra-dropdown {
    position: absolute;
    top: 100%;
    left: -20vw;
    background: oklch(0.91 0.04 119.37 / 0.95);
    color: oklch(22% .008 280);
    display: flex;
    gap: 3rem;
    padding: 2rem 3rem;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    border-radius: 0.75rem;
    box-shadow: 0 12px 24px oklch(0% 0 0 / 0.15);
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
  }

  .has-ultra-dropdown:hover .ultra-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .ultra-column {
    flex: 1;
  }

  .ultra-column h4 {
    font-size: 1.1rem;
    color: oklch(28% .008 290);
    text-shadow: .1px .1px 1.3px oklch(95% .008 290);
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .ultra-column h4 a {
    text-decoration: none;
    color: inherit;
  }

  .ultra-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .ultra-column ul li {
    margin-bottom: 0.5rem;
  }

  .ultra-column ul a {
    text-decoration: none;
    color: oklch(14% .008 280);
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: block;
    padding: 0.25rem 0;
  }

  .ultra-column ul a:hover {
    color: oklch(45% .065 290);
    padding-left: 0.5rem;
  }

  /* Subsection styling for residential */
  .ultra-section h5 {
    font-size: 1rem;
    color: oklch(95% .015 128);
    text-shadow: .05px .05px 1.3px black;
    font-weight: 900;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }

  .ultra-section h5 a {
    text-decoration: none;
    color: inherit;
  }

  .ultra-subsection {
    margin-left: 1rem;
  }

  .ultra-subsection li {
    margin-bottom: 0.25rem;
  }

  .ultra-subsection a {
    font-size: 0.85rem !important;
    color: oklch(24% .008 280) !important;
  }

  /* Mobile Styles */
  @media (max-width: 768px) {
    .jjc-mobile-toggle {
      display: flex;
      color:white;
      background:white;
    }

    .jjc-nav-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background-color: #f8f9fa;
      padding: 80px 40px;
      transition: right 0.3s ease;
      z-index: 999;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
    }

    .jjc-nav-menu.open {
      right: 0;
    }

    .jjc-nav-links {
      display: flex;
      flex-direction: column;
      gap: 20px;
      margin-bottom: 40px;
    }

    .jjc-nav-links li {
      margin: 0;
    }

    .jjc-nav-links a {
      font-size: 16px;
      font-weight: 500;
    }

    /* Mobile mega dropdown */
    .ultra-dropdown {
      position: static;
      background: transparent;
      box-shadow: none;
      opacity: 1;
      visibility: visible;
      transform: none;
      padding: 15px 0 0 20px;
      margin-top: 10px;
      min-width: auto;
      display: none;
      flex-direction: column;
      gap: 1.5rem;
      backdrop-filter: none;
    }

    .has-ultra-dropdown.active .ultra-dropdown {
      display: flex;
    }

    .ultra-column {
      margin-bottom: 1rem;
    }

    .ultra-column h4 {
      font-size: 1rem;
      margin-bottom: 0.75rem;
      border-bottom: 1px solid #ddd;
      padding-bottom: 0.5rem;
      text-align: center;
    }

    .ultra-section h5 {
      font-size: 0.95rem;
      margin-bottom: 0.5rem;
      text-align: center;
    }

    .ultra-subsection {
      margin-left: 0.75rem;
    }

    .jjc-contact-btn {
      align-self: flex-start;
      margin-top: 1rem;
    }

    /* Prevent body scroll when menu is open */
    body.jjc-menu-open {
      overflow: hidden;
      position: fixed;
      width: 100%;
    }

    /* Hide desktop hover effects on mobile */
    .has-ultra-dropdown:hover .ultra-dropdown {
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px)translateX(-10vw);
    }
  }

  /* Footer */
  .ttc-footer {
    padding: 6rem 5% 3rem;
    background: var(--accent-dark);
    color: var(--primary-bg);
  }

  .ttc-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
  }

  .ttc-footer-brand h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .ttc-footer-brand p {
    opacity: 0.8;
    margin-bottom: 1rem;
  }

  .ttc-footer-column h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
  }

  .ttc-footer-links {
    list-style: none;
  }

  .ttc-footer-links li {
    margin-bottom: 0.8rem;
  }

  .ttc-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }

  .ttc-footer-links a:hover {
    color: var(--accent-green-light);
  }

  .ttc-footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  .ttc-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
  }

  /* Magnetic button effect */
  .ttc-magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .ttc-service-detail {
      grid-template-columns: 1fr;
      gap: 3rem;
    }

    .ttc-service-detail:nth-child(even) {
      direction: ltr;
    }

    .ttc-service-detail.tech-section {
      grid-template-columns: 1fr;
    }

    .ttc-testimonial-cta-wrapper {
      grid-template-columns: 1fr;
      gap: 4rem;
      text-align: center;
    }

    .ttc-testimonial-content,
    .ttc-cta-content {
      text-align: center;
    }

    .ttc-cta-buttons {
      justify-content: center;
    }

    .ttc-footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  }

  @media (max-width: 768px) {
    .ttc-services-hero {
      height: 60vh;
    }

    .ttc-nav-links {
      display: none;
    }

    .ttc-services-grid {
      grid-template-columns: 1fr;
    }

    .ttc-stats-grid {
      grid-template-columns: 1fr;
    }

    .ttc-cta-buttons {
      flex-direction: column;
      align-items: center;
    }

    .ttc-cursor,
    .ttc-cursor-follower {
      display: none;
    }

    body {
      cursor: auto;
    }
  }

  /* Mobile Navigation Styles */
  :root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8F7F4;
    --accent-gold: #D4AF37;
    --accent-dark: #1A1A2E;
    --accent-purple: #16213E;
    --text-dark: #0F0F0F;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --border-light: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  }

  /* Animations */
  @keyframes slideInRight {
    0% {
      transform: translate3d(100px, 0, 0);
      opacity: 0;
    }
    100% {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
  }

  @keyframes slideOutRight {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(350px, 0, 0);
      visibility: hidden;
    }
  }

  @keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }