/* --- CSS Reset & Base Styles (Default Theme: Modern Dark/Minimalist) --- */
:root {
    --color-bg: #0f0f0f; /* Deep Charcoal Background */
    --color-surface: #1a1a1a; /* Slightly Lighter Surface */
    --color-text-primary: #f0f0f0; /* Off-White Text */
    --color-text-secondary: #aaaaaa; /* Muted Gray */
    --color-accent: #00bcd4; /* Bright Cyan/Aqua Accent */
    --color-accent-hover: #00e5ff;
    --font-primary: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--color-surface);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.nav-link {
    color: var(--color-text-secondary);
    margin-left: 25px;
    font-weight: 400;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--color-accent-hover);
}

.nav-link.active {
    color: var(--color-accent);
    font-weight: 600;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    animation: slide-in var(--transition-speed) ease forwards;
}

/* --- Utility Classes & Typography --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--color-text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.page-content {
    padding: 80px 0;
    min-height: 60vh;
}

/* --- CTA Button --- */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-accent);
    color: var(--color-bg); /* Dark text on light accent */
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

/* --- Hero Section (Index Specific) --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    z-index: 10;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.title-anim {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
}

.subtitle-anim {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0.1s;
}

.cta-anim {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0.2s;
}

/* Hero Visual (Abstract Cubes for Modern Feel) */
.hero-visual {
    flex: 1;
    position: relative;
    min-height: 350px;
    max-width: 400px;
}

.cube {
    position: absolute;
    background-color: rgba(0, 188, 212, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 5px;
    animation: float-move 15s infinite ease-in-out;
}

.cube-1 { width: 120px; height: 120px; top: 0; left: 20%; transform: rotate(45deg); animation-delay: 0s; }
.cube-2 { width: 80px; height: 80px; bottom: 10%; right: 10%; transform: rotate(15deg); animation-delay: 3s; }
.cube-3 { width: 150px; height: 150px; top: 30%; right: 0; transform: rotate(-30deg); animation-delay: 6s; }

/* --- Features Grid (Index Specific) --- */
.features-section {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.1);
}

.feature-card h3 {
    color: var(--color-accent);
    margin-bottom: 10px;
    font-weight: 600;
}

/* --- About & Services Page Styles --- */
.about-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.about-text {
    flex: 2;
    opacity: 0;
    transform: translateY(30px);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.about-image {
    flex: 1;
    opacity: 0;
    transform: translateY(30px);
}

.placeholder-box {
    width: 100%;
    padding-top: 100%; /* Aspect ratio 1:1 */
    background-color: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.placeholder-box::before {
    content: "Design Focus";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    background-color: var(--color-surface);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border-left: 3px solid var(--color-accent);
    opacity: 0;
    transform: translateY(30px);
}

.team-member h4 {
    color: var(--color-accent);
    margin-bottom: 5px;
}

.team-member p {
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Services Page Specific */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.service-item {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color var(--transition-speed) ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-item:hover {
    background-color: #222222;
}

.service-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 188, 212, 0.2);
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px solid var(--color-accent);
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px dashed var(--color-text-secondary);
    border-bottom: 1px dashed var(--color-text-secondary);
}

.step {
    padding: 15px;
    text-align: center;
    flex: 1;
    position: relative;
    color: var(--color-text-secondary);
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
    transition: color 0.3s;
}

.step::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.step:hover {
    color: var(--color-accent);
}

/* Contact Form Specific */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background-color: var(--color-surface);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(30px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--color-bg);
    border: 1px solid #333;
    border-radius: 6px;
    color: var(--color-text-primary);
    font-family: inherit;
    transition: border-color var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.form-submit-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
}

.contact-info {
    text-align: center;
    color: var(--color-text-secondary);
    opacity: 0;
    transform: translateY(30px);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-surface);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* --- Animations --- */

/* Global Fade In for Page Load */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInMoveUp 1s ease-out forwards;
}

@keyframes fadeInMoveUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Element-specific staggered animation triggers (handled by JS) */
.card-anim[data-delay] {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    opacity: 0;
    transform: translateY(20px);
}

/* Specific animation for Hero Text */
.title-anim {
    animation: titleEnter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.subtitle-anim {
    animation: titleEnter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.cta-anim {
    animation: titleEnter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* Floating Animation for Hero Cubes */
@keyframes float-move {
    0% { transform: translate(0, 0) rotate(45deg); }
    25% { transform: translate(20px, -30px) rotate(50deg); }
    50% { transform: translate(-10px, 15px) rotate(40deg); }
    75% { transform: translate(15px, 25px) rotate(55deg); }
    100% { transform: translate(0, 0) rotate(45deg); }
}

/* Custom Keyframes for Nav Link */
@keyframes slide-in {
    from { width: 0%; }
    to { width: 100%; }
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-visual {
        min-height: 250px;
        max-width: 100%;
        margin-top: 40px;
    }

    .title-anim {
        font-size: 3rem;
    }

    .subtitle-anim {
        font-size: 1.1rem;
    }

    .nav {
        display: none; /* Simple mobile handling, could be replaced with a hamburger menu */
    }
    .header .container {
        justify-content: center;
    }
    .logo { font-size: 1.5rem; }

    .about-grid {
        flex-direction: column;
    }

    .process-steps {
        flex-direction: column;
    }
    .step::before {
        top: 50%;
        left: -20px;
        transform: translateY(-50%);
    }
    .step {
        border-left: 2px solid var(--color-accent); 
        border-top: none;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
    }
    .feature-card, .service-item {
        padding: 20px;
    }
    .cta-button {
        padding: 10px 20px;
    }
    .page-content {
        padding: 50px 0;
    }
}


/* Karbon Sites Branding */

  #karbon-promo-banner {
      position: fixed;
      bottom: 10px;
      right: 10px;
      background-color: rgba(0, 0, 0, 0.8);
      color: white;
      padding: 8px 16px;
      border-radius: 8px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      font-size: 14px;
      z-index: 10000;
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      transition: transform 0.2s ease-in-out;
  }
  #karbon-promo-banner:hover {
      transform: scale(1.05);
  }
