/* Base Styles ensuring the "Blueprint" look */
body {
    background-color: #ffffff;
    color: #525252;
    -webkit-font-smoothing: antialiased;
}

/* Custom Selection Color */
::selection {
    background-color: #009d89;
    color: #ffffff;
}

/* Grid Background Pattern - Light Mode */
.bg-grid-pattern {
    background-image: linear-gradient(#e0e0e0 1px, transparent 1px),
    linear-gradient(90deg, #e0e0e0 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: -1px -1px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
}

/* --- Enhanced Breathing Gradient Pulse --- */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Note: float-move removed to let JS handle the movement */

.hero-glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.hero-glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    background: radial-gradient(circle, rgba(0, 157, 137, 0.6) 0%, rgba(0, 157, 137, 0.2) 50%, rgba(255, 255, 255, 0) 70%);
    /* Combined pulse and float animations */
    animation: pulse-glow 4s infinite ease-in-out, float-blob 20s infinite ease-in-out;
    transition: transform 0.1s linear; /* Slight transition for extra smoothness, though lerp handles it */
}

.hero-glow-blob-1 {
    top: -10%;
    right: -5%;
    width: 700px;
    height: 700px;
}

.hero-glow-blob-2 {
    bottom: 10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 157, 137, 0.5) 0%, rgba(0, 157, 137, 0.15) 50%, rgba(255, 255, 255, 0) 70%);
    animation-delay: -2s, -10s;
}

/* Strict Utility Classes */
.hover-accent-text:hover {
    color: #009d89;
    transition: color 0.3s ease;
}

/* Card Hover Effect - Light Mode */
.tech-card {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Prevent layout shift */
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: #009d89;
    transition: height 0.3s ease;
    z-index: 10;
}

.tech-card:hover::before {
    height: 100%;
}

.tech-card:hover {
    background-color: #f4f4f4;
}

/* Feature Lists */
.feature-list li::before {
    content: "▹";
    color: #009d89;
    margin-right: 0.5rem;
}

.check-list li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.check-list li::before {
    content: "✓";
    color: #009d89;
    font-weight: bold;
}

/* Navbar Link Active State Style */
.nav-link-active {
    color: #009d89;
    border-bottom: 2px solid #009d89;
}

/* Hero Carousel Styles */
.hero-carousel-container {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-carousel-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 300%;
}

.hero-slide {
    min-width: calc(100% / 3);
    width: calc(100% / 3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hero-slide > div {
    width: 100%;
}

.hero-carousel-wrapper[data-slide="0"] {
    transform: translateX(0);
}

.hero-carousel-wrapper[data-slide="1"] {
    transform: translateX(-33.333333%);
}

.hero-carousel-wrapper[data-slide="2"] {
    transform: translateX(-66.666666%);
}

/* Alternative calculation: each slide is 1/3 of wrapper, so we move by 1/3 each time */

/* Carousel Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    color: #525252;
}

.carousel-nav:hover {
    background: #009d89;
    color: white;
    border-color: #009d89;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #009d89;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(0, 157, 137, 0.3);
}

.carousel-dot.active {
    background: #009d89;
}

@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        bottom: 30px;
    }

    /* Mobile Menu Styles */
    #mobile-menu {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    /* Table Responsive Styles */
    .table-container {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .table-container::-webkit-scrollbar {
        height: 8px;
    }

    .table-container::-webkit-scrollbar-track {
        background: #f4f4f4;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: #009d89;
        border-radius: 4px;
    }
}