/* ===================================
   VINARKY - Global Styles
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0066ff;
    --secondary-color: #00d9ff;
    --dark-bg: #0a0e27;
    --light-bg: #f5f7fa;
    --text-dark: #1a2332;
    --text-light: #666;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

/* ===================================
   Container & Layout
   =================================== */

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

@media (max-width: 1400px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 2.75rem;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

strong, b {
    font-weight: 600;
}

/* ===================================
   Navigation Bar
   =================================== */

.navbar {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

@media (max-width: 768px) {
    .navbar .container {
        padding: var(--spacing-md);
    }
}

.nav-brand {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.0625rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    animation: slideInDown 0.8s ease;
}

.hero .subtitle {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    animation: slideInUp 0.8s ease;
    line-height: 1.6;
}

/* ===================================
   CTA Button
   =================================== */

.cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    letter-spacing: -0.01em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ===================================
   Features Section
   =================================== */

.features {
    padding: var(--spacing-3xl) var(--spacing-lg);
    background-color: var(--light-bg);
}

.features h2 {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 100%;
}

.feature-card {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a3a52 100%);
    color: var(--white);
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.75rem;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    font-size: 1.1875rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    line-height: 1.7;
}

.cta-section .cta-button {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: var(--spacing-3xl) var(--spacing-lg) var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-section p {
    color: #bbb;
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9375rem;
}

/* ===================================
   Blog Styling
   =================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.2);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.blog-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    background-color: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.01em;
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.category-filter {
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid #ddd;
    padding: 0.625rem 1.25rem;
    margin: 0 var(--spacing-xs) var(--spacing-sm) 0;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    font-weight: 500;
}

.category-filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-filter.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===================================
   Animations
   =================================== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--box-shadow);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--light-bg);
    }

    .nav-menu a {
        display: block;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-menu a.active {
        background-color: var(--light-bg);
    }

    .nav-brand {
        font-size: 1.375rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.125rem;
    }

    .features h2,
    .cta-section h2 {
        font-size: 2.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .category-filter {
        margin: 0 var(--spacing-xs) var(--spacing-xs) 0;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: var(--spacing-xs);
        font-size: 0.875rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .features,
    .cta-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .features h2,
    .cta-section h2 {
        font-size: 1.875rem;
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .blog-card-content {
        padding: var(--spacing-md);
    }
    
    .blog-grid {
        gap: var(--spacing-md);
    }
    
    .footer {
        padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-md);
    }
}
