/* 
    Plewa AI Development Agency
    Minimalist Design in the spirit of Jonathan Ive
    Clean, refined, purposeful
*/

:root {
    /* Refined Color Palette */
    --primary: #1a1a1a;
    --secondary: #666666;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --surface: #FFFFFF;
    --background: #f8fafc;
    --header-bg: #0f172a;
    --header-text: #f8fafc;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.1);
    
    /* Typography Scale */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;
    
    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Layout */
    --max-width: 1200px;
    --radius: 8px;
    --radius-lg: 12px;
    
    /* Animation */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 300ms;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--primary);
    background-color: var(--background);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-4xl);
    font-weight: 600;
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

p {
    color: var(--secondary);
    line-height: 1.7;
    margin: 0;
}

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

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-heading {
    text-align: center;
    margin-bottom: var(--space-20);
}

.section-heading h2 {
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.section-heading p {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    background: var(--primary);
    color: var(--surface);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    min-height: 48px;
}

.btn-primary:hover {
    background: var(--secondary);
    color: var(--surface);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px var(--shadow-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    min-height: 40px;
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--secondary);
    color: var(--primary);
    box-shadow: 0 4px 16px var(--shadow);
}

/* Header */
.header {
    position: relative;
    background: var(--header-bg);
    color: var(--header-text);
    overflow: hidden;
}

.navbar {
    position: relative;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--duration) var(--ease);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    min-height: 80px;
}

.logo h1 {
    display: flex;
    align-items: center;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--header-text);
    gap: var(--space-3);
}

.logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-links a {
    color: rgba(248, 250, 252, 0.8);
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: var(--space-3) 0;
    position: relative;
    transition: all var(--duration) var(--ease);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--header-text);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--duration) var(--ease);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links .btn-primary {
    background: var(--accent);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all var(--duration) var(--ease);
}

.nav-links .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-2);
    gap: var(--space-1);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--header-text);
    transition: all var(--duration) var(--ease);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--space-20) 0 var(--space-20);
    background: var(--header-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(129, 140, 248, 0.05) 100%);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* .hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 600px;
    background: linear-gradient(180deg, transparent 0%, var(--surface) 100%);
} */

.hero-content {
    position: relative;
    z-index: 10;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--header-text);
    letter-spacing: -0.02em;
}

.hero-text h1 .accent {
    color: var(--accent-light);
    display: block;
}

.hero-text p {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: var(--space-8);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.hero-actions .btn-primary {
    background: var(--accent);
    color: white;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--duration) var(--ease);
}

.hero-actions .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.hero-actions .btn-secondary {
    background: transparent;
    color: rgba(248, 250, 252, 0.9);
    border: 2px solid rgba(248, 250, 252, 0.3);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--duration) var(--ease);
}

.hero-actions .btn-secondary:hover {
    border-color: var(--accent);
    color: var(--header-text);
    background: rgba(99, 102, 241, 0.1);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stat-item {
    padding: var(--space-4);
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--accent-light);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(248, 250, 252, 0.7);
    margin-top: var(--space-2);
    font-weight: 500;
}

.hero-background,
.geometric-element {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* Services Section */
.services {
    padding: var(--space-32) 0;
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-10);
    margin-top: var(--space-16);
}

.service-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 64px var(--shadow);
    border-color: transparent;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: var(--radius);
}

.service-icon i {
    font-size: var(--font-size-2xl);
    color: var(--accent);
}

.service-card h3 {
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.service-card p {
    line-height: 1.7;
}

/* About Section */
.about {
    padding: var(--space-32) 0;
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-16);
}

.about-card {
    padding: var(--space-8);
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.about-card:hover {
    box-shadow: 0 8px 32px var(--shadow);
    border-color: transparent;
}

.about-card h3 {
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.about-card p {
    line-height: 1.7;
}

/* Portfolio Section */
.portfolio {
    padding: var(--space-32) 0;
    background: var(--surface);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-10);
    margin-top: var(--space-16);
}

.portfolio-item {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 64px var(--shadow);
    border-color: transparent;
}

.portfolio-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--background);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration) var(--ease);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: var(--space-6);
}

.portfolio-info h3 {
    margin-bottom: var(--space-3);
    color: var(--primary);
}

.portfolio-info p {
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: var(--space-32) 0;
    background: var(--background);
}

.contact .section-heading a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.contact .section-heading a:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: var(--space-16) 0 var(--space-8);
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-8);
}

.footer-logo h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
    color: var(--primary);
    font-weight: 600;
}

.footer-logo p {
    color: var(--secondary);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    color: var(--secondary);
    font-size: var(--font-size-sm);
    transition: all var(--duration) var(--ease);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--secondary);
    font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .hero-text {
        max-width: none;
    }
    
    .hero-text h1 {
        font-size: var(--font-size-4xl);
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: var(--font-size-base);
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    .services-grid,
    .about-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .section-heading h2 {
        font-size: var(--font-size-3xl);
    }
    
    .hero {
        padding: var(--space-16) 0 var(--space-20);
    }
    
    .services,
    .about,
    .portfolio,
    .contact {
        padding: var(--space-20) 0;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: var(--font-size-lg);
    }
    
    .hero-text h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .section-heading h2 {
        font-size: var(--font-size-2xl);
    }
    
    .btn-primary {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-sm);
    }
    
    .service-card,
    .about-card,
    .portfolio-info {
        padding: var(--space-6);
    }
} 