/* ============================================ */
/* iOS LIQUID GLASS DESIGN */
/* ============================================ */

:root {
    /* Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --glass-white: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Effects */
    --blur-sm: 20px;
    --blur-md: 40px;
    --blur-lg: 60px;
    --radius: 24px;
    --radius-sm: 16px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    animation: gradient-shift 20s ease infinite;
    z-index: 0;
}

@keyframes gradient-shift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, 5%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

::selection {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}

/* ============================================ */
/* CONTAINER */
/* ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* GLASS ELEMENTS */
/* ============================================ */
.glass {
    background: var(--glass-white);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
}

/* ============================================ */
/* SECTION */
/* ============================================ */
.section {
    padding: var(--space-2xl) 0;
    position: relative;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-2xl) 0;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
}

/* Floating gradient orb behind title */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    filter: blur(100px);
    opacity: 0.3;
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.4; }
}

.hero-title {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: var(--space-md);
    line-height: 0.9;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.5));
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.btn {
    padding: 1.25rem 3rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow:
        0 10px 40px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 60px rgba(102, 126, 234, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: var(--glass-white);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* SCROLL INDICATOR */
/* ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
    animation: scroll-fade 2s infinite;
}

@keyframes scroll-fade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================ */
/* SECTION HEADER */
/* ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
}

/* ============================================ */
/* ABOUT SECTION */
/* ============================================ */
.about-text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================ */
/* SERVICES GRID */
/* ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    padding: var(--space-xl);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: var(--radius);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
    opacity: 0.15;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ============================================ */
/* CASES SECTION */
/* ============================================ */
.case-item {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.case-header {
    margin-bottom: var(--space-lg);
}

.case-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.case-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.case-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.info-block strong {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.info-block p,
.info-block li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.result-list {
    list-style: none;
}

.result-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: var(--space-sm);
}

.result-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-primary);
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.case-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.case-link {
    padding: 1rem 2rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.case-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* PRINCIPLES GRID */
/* ============================================ */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.principle-item {
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.4s;
}

.principle-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.principle-item p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================ */
/* SKILLS GRID */
/* ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.skill-card {
    padding: var(--space-lg);
    transition: all 0.3s;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================ */
/* CONTACT SECTION */
/* ============================================ */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-link {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 1.15rem;
    transition: all 0.3s;
}

.contact-link:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.3));
}

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

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

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

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

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .services-grid,
    .principles-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .case-info {
        grid-template-columns: 1fr;
    }

    .case-links {
        flex-direction: column;
    }

    .case-link {
        text-align: center;
    }
}
