/* --- Modern Glassmorphism Design System --- */

/* 1. CSS Custom Properties (Variables) */
:root {
    /* Base Colors (Will be overridden by JS) */
    --primary: #6366f1;
    --secondary: #ffffff;
    --accent: #8b5cf6;
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;

    /* Settings */
    --font-main: 'Outfit', sans-serif;
    --radius: 16px;
    --glass-opacity: 0.7;
    --blur: 12px;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* 2. Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 3. Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

p, a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 4. Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-container {
    padding: 80px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 5. Background Effects & Animations */
.bg-gradient-1,
.bg-gradient-2 {
    display: flex;
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.bg-gradient-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.bg-gradient-2 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, 50px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* 6. Component Styles */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 7. Section-Specific Styles */

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 0 20px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About */
.about-grid {
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: start;
}

.about-image-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.about-content h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features & Services */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.feature-card,
.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card .icon,
.service-card .service-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
    background: rgba(139, 92, 246, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.feature-card h3,
.service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

/* Pricing */
.pricing-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card.highlight {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.highlight:hover {
    transform: scale(1.08);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.price {
    margin-bottom: 20px;
}

.price .currency {
    font-size: 1.2rem;
    vertical-align: top;
    margin-right: 5px;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    text-align: left;
    margin: 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.features-list li .material-symbols-outlined {
    color: var(--accent);
    font-size: 20px;
}

/* Portfolio */
.portfolio-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content .category {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.portfolio-content h3 {
    margin: 10px 0 15px;
    font-size: 1.3rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.contact-info {
    padding: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item span.material-symbols-outlined {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 50%;
}

.map-wrapper {
    min-height: 400px;
    background: #222;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(90%);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer .dev-credit {
    margin-top: 8px;
}

.footer .dev-credit a {
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: underline;
    opacity: 0.95;
}

.footer .dev-credit a:hover {
    opacity: 1;
}

.footer-privacy-terms { 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
}

.footer-privacy-terms span {
    color: var(--primary);
}

.footer-privacy-link, .footer-terms-link {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 8. Floating Elements */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
    z-index: 100;
    text-decoration: none;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

/* 9. Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    p, a {
        font-size: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        height: 300px;
    }

    .hero {
        min-height: 70vh;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-stats {
        justify-content: space-between;
    }
}