/* Card Stack Layout - Blue/Green Theme */
:root {
    --primary-color: #00897B;
    --primary-dark: #00695C;
    --primary-light: #B2DFDB;
    --secondary-color: #004D40;
    --accent-color: #26A69A;
    --text-color: #1a2a2a;
    --text-light: #4DB6AC;
    --background: #f5faf9;
    --card-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0, 137, 123, 0.15);
    --shadow-hover: 0 12px 40px rgba(0, 137, 123, 0.25);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Card Stack Background */
.stack-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #e0f2f1 0%, #f5faf9 30%, #ffffff 100%);
}

.stack-card {
    position: absolute;
    width: 80%;
    height: 80%;
    max-width: 800px;
    max-height: 600px;
    border-radius: 20px;
    border: 2px solid rgba(0, 137, 123, 0.1);
    animation: stackFloat 15s ease-in-out infinite;
}

.stack-card:nth-child(1) {
    background: rgba(0, 137, 123, 0.05);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.stack-card:nth-child(2) {
    background: rgba(0, 137, 123, 0.08);
    top: 12%;
    left: 12%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.stack-card:nth-child(3) {
    background: rgba(0, 137, 123, 0.1);
    top: 14%;
    left: 14%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.stack-card:nth-child(4) {
    background: rgba(0, 137, 123, 0.12);
    top: 16%;
    left: 16%;
    animation-delay: -9s;
    animation-duration: 22s;
}

@keyframes stackFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -10px) rotate(1deg);
    }
    50% {
        transform: translate(0, -20px) rotate(0deg);
    }
    75% {
        transform: translate(-10px, -10px) rotate(-1deg);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 137, 123, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Page Hero */
.page-hero {
    padding: 140px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--background) 100%);
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Section */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Cards */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.hero-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease both;
}

.hero-card:nth-child(1) { animation-delay: 0.1s; }
.hero-card:nth-child(2) { animation-delay: 0.2s; }
.hero-card:nth-child(3) { animation-delay: 0.3s; }
.hero-card:nth-child(4) { animation-delay: 0.4s; }

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.hero-card:hover::before {
    transform: scaleX(1);
}

.hero-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    animation: stackBounce 3s ease-in-out infinite;
}

@keyframes stackBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.hero-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.hero-card p {
    color: var(--text-light);
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 137, 123, 0.1);
    animation: fadeInUp 0.8s ease both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-card {
    background: var(--card-bg);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease both;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: stackPulse 2s ease-in-out infinite;
}

@keyframes stackPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.contact-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-color);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #1a2a2a;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 10px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

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

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .hero-card, .service-card, .contact-card {
        padding: 30px 20px;
    }
}
