/* ==========================================
   DESIGN TOKENS & CSS VARIABLES
   ========================================== */
:root {
    /* Colors - Professional, minimal palette */
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-border: #e5e7eb;
    --color-accent: #10b981;
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Audiowide', sans-serif;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
    --text-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
    --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-padding: var(--space-md);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-2xl);
}

h2 {
    font-size: var(--text-xl);
}

h3 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
}

.pt {
    padding-top: 80px;
}

.page-header h1 {
    padding-top: 50px;
}

.page-header h1.pt {
    padding-top: 80px;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    margin-bottom: var(--space-sm);
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
}

/* 12-Column Grid System */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-12 {
    grid-template-columns: repeat(12, 1fr);
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

/* ==========================================
   BACKGROUND WITH ROTATING ICONS
   ========================================== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

.bg-icon {
    position: absolute;
    opacity: 0.08;
    filter: blur(1px);
    animation: float-rotate 60s infinite linear;
}

.bg-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 80px;
    animation-delay: 0s;
}

.bg-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    width: 100px;
    animation-delay: -10s;
}

.bg-icon:nth-child(3) {
    bottom: 15%;
    left: 20%;
    width: 90px;
    animation-delay: -20s;
}

.bg-icon:nth-child(4) {
    bottom: 25%;
    right: 10%;
    width: 70px;
    animation-delay: -30s;
}

.bg-icon:nth-child(5) {
    top: 50%;
    left: 50%;
    width: 110px;
    animation-delay: -40s;
}

@keyframes float-rotate {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }

    50% {
        transform: translate(0, -40px) rotate(180deg);
    }

    75% {
        transform: translate(-20px, -20px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.flex {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: var(--space-lg) 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-sm) 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #1f2937 !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform var(--transition-base);
    z-index: 300;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Active Link Indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Bridge to menu */
    margin-bottom: -20px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius);
    padding: var(--space-xs) 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1000;
    list-style: none;
    border: 1px solid var(--color-border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    display: block;
}





.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: var(--space-md);
        display: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 100%;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
        transform: none;
    }

    .dropdown-menu li a {
        padding: 0.5rem 0;
    }
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-xs);
}

/* Spacing Utility for Fixed Header */
.pt-header {
    padding-top: 150px !important;
}

@media (max-width: 768px) {
    .pt-header {
        padding-top: 130px !important;
    }
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

/* ==========================================
   BLOG GRID UTILITIES
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    width: 100%;
}

.blog-image-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.card:hover .blog-image-placeholder {
    transform: scale(1.02);
}

.blog-grid-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.card:hover .blog-grid-image {
    transform: scale(1.02);
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card h3 {
    margin-bottom: var(--space-sm);
}

.card p {
    margin-bottom: var(--space-md);
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #ef4444;
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-sm);
        --space-3xl: 3rem;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-toggle {
        display: flex;
    }

    .grid-12 {
        grid-template-columns: 1fr;
    }

    .col-6,
    .col-4,
    .col-3 {
        grid-column: span 1;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-12 {
        grid-template-columns: repeat(6, 1fr);
    }

    .col-6 {
        grid-column: span 6;
    }

    .col-4 {
        grid-column: span 3;
    }

    .col-3 {
        grid-column: span 2;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.mb-0 {
    margin-bottom: 0;
}

.mt-lg {
    margin-top: var(--space-lg);
}

.hidden {
    display: none;
}

/* Loading animation for lazy images */
.lazy-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   HERO SECTION - MODERN
   ========================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-bg-alt), white);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-light);
    margin-bottom: var(--space-3xl);
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1.2s ease-out 0.6s both;
    margin-bottom: var(--space-3xl);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.hero-tech-stack {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease-out 0.8s both;
}

.tech-badge {
    padding: 0.5rem 1.125rem;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.tech-badge:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Responsive Styles */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: var(--space-xl) 0;
    }

    .hero-content {
        padding: 0 var(--space-sm);
    }

    .hero-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-md);
    }

    .hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-xl);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
        margin-bottom: var(--space-md);
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ==========================================
   ABOUT SECTION - MODERN
   ========================================== */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.stat-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all var(--transition-slow);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    font-weight: 600;
}

.skills-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.skill-card-modern {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 2px solid transparent;
    transition: all var(--transition-slow);
    text-align: center;
}

.skill-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.skill-card-modern:hover::before {
    transform: scaleX(1);
}

.skill-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.skill-number {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-bg-alt);
    font-family: var(--font-heading);
    line-height: 1;
    transition: color var(--transition-base);
}

.skill-card-modern:hover .skill-number {
    color: var(--color-primary);
}

.skill-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    transition: transform var(--transition-base);
}

.skill-card-modern:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.skill-card-modern h3 {
    font-size: var(--text-md);
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.skill-card-modern p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

@media (max-width: 1024px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .skills-modern {
        grid-template-columns: 1fr;
    }

    .skill-number {
        font-size: 1.5rem;
    }
}

/* ==========================================
   SERVICES SECTION - MODERN DESIGN
   ========================================== */
.section-alt {
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.service-card-modern {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    overflow: hidden;
    border: 2px solid transparent;
    min-height: 280px;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card-modern:hover::before {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.service-number {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-bg-alt);
    font-family: var(--font-heading);
    line-height: 1;
    transition: color var(--transition-base);
}

.service-card-modern:hover .service-number {
    color: var(--color-primary);
}

.service-icon-modern {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: transform var(--transition-base);
}

.service-card-modern:hover .service-icon-modern {
    transform: scale(1.1) rotate(5deg);
}

.service-icon-modern svg {
    width: 28px;
    height: 28px;
    color: white;
}

.service-card-modern h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.service-card-modern>p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    font-size: var(--text-sm);
}



.service-tech-stack {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--space-md);
}

.service-tech-stack span {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.service-tech-stack span:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-number {
        font-size: 2rem;
    }
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
/* ==========================================
   TESTIMONIALS SECTION - MODERN
   ========================================== */
.testimonials-slider {
    overflow: hidden;
    position: relative;
    padding: var(--space-xl) 0;
}

.testimonials-track {
    display: flex;
    gap: var(--space-xl);
    animation: scroll-testimonials 40s linear infinite;
    width: max-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card-modern {
    min-width: 350px;
    max-width: 350px;
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.testimonial-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.quote-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-bg-alt), white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.quote-icon svg {
    width: 20px;
    height: 20px;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-md);
    color: #fbbf24;
    /* Star gold color */
}

.testimonial-text {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.testimonial-author-modern {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-info strong {
    display: block;
    font-size: var(--text-base);
    color: var(--color-text);
}

.author-info span {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-350px * 4 - var(--space-xl) * 4));
    }
}

/* ==========================================
   PROJECTS SECTION - MODERN
   ========================================== */
.projects-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.project-card-modern {
    position: relative;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    border: 2px solid transparent;
}

.project-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.project-number {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    font-family: var(--font-heading);
    line-height: 1;
    z-index: 2;
    transition: color var(--transition-base);
}

.project-card-modern:hover .project-number {
    color: var(--color-primary);
    opacity: 0.2;
}

.project-image-wrapper {
    position: relative;
    aspect-ratio: 18/10;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
    image-rendering: auto;
}

.project-card-modern:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card-modern:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.project-content {
    padding: var(--space-xl);
}

.project-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.project-content p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.project-tags span {
    padding: 0.25rem 0.625rem;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .projects-modern {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-content {
    gap: var(--space-2xl);
    align-items: start;
}

.contact-form {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-email {
    display: inline-block;
    font-size: var(--text-lg);
    color: var(--color-primary);
    font-weight: 600;
    margin: var(--space-md) 0;
    transition: color var(--transition-fast);
}

.contact-email:hover {
    color: var(--color-primary-dark);
}

.info-card-email {
    margin-top: 50px;
    display: flex;
    align-items: self-start;
    gap: var(--space-md);
}

.info-card-next {
    margin-top: 50px;
    display: flex;
    align-items: self-start;
    gap: var(--space-md);
}

.contact-details {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
}

.contact-details h4 {
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.contact-details ol {
    padding-left: var(--space-lg);
    color: var(--color-text-light);
}

.contact-details li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #ffffff;
    padding: var(--space-4xl) 0 var(--space-2xl);
    position: relative;
    border-top: 1px solid var(--color-border);
    padding-top: 50px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--color-text-light);
    max-width: 300px;
    line-height: 1.6;
}

.footer-links-group h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-light);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-social h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.social-icons {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.scroll-top {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }

    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
    }

    @keyframes scroll-testimonials {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-300px * 3 - var(--space-lg) * 3));
        }
    }

    .project-row {
        gap: var(--space-lg);
    }

    .contact-content {
        gap: var(--space-xl);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-card {
        min-width: 350px;
        max-width: 350px;
    }

    @keyframes scroll-testimonials {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-350px * 3 - var(--space-lg) * 3));
        }
    }
}

/* ==========================================
   PROJECTS PAGE
   ========================================== */
.page-header {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
    background: var(--color-bg-alt);
}

.page-header h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.project-full {
    padding: var(--space-2xl) 0;
    border-bottom: 2px solid var(--color-border);
}

.project-full:last-child {
    border-bottom: none;
}

.project-full-image {
    width: 100%;
    height: auto;
    max-width: 1000px;
    margin: 0 auto var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: block;
}

.project-full h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.project-meta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.project-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.project-section {
    margin-bottom: var(--space-lg);
}

.project-section h3 {
    font-size: var(--text-lg);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.project-section p {
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.project-section ul {
    padding-left: var(--space-lg);
    color: var(--color-text-light);
}

.project-section li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.results-list {
    list-style: none;
    padding-left: 0;
}

.results-list li {
    padding-left: var(--space-lg);
    position: relative;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.results-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: var(--text-lg);
}

.results-list strong {
    color: var(--color-accent);
}

.project-tech {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.project-tech strong {
    color: var(--color-text);
}

.projects-cta {
    margin-top: var(--space-3xl);
    padding: var(--space-3xl) var(--space-xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    color: white;
}

.projects-cta h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.projects-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
}

.projects-cta .btn-primary {
    background: white;
    color: var(--color-primary);
}

.projects-cta .btn-primary:hover {
    background: var(--color-bg-alt);
    transform: translateY(-2px);
}

/* ==========================================
   MODERN CONTACT INFO PANEL
   ========================================== */
.contact-info-panel {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

@media (max-width: 768px) {
    .contact-info-panel {
        grid-template-columns: 1fr;
    }
}

.info-card-modern {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.info-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.info-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.info-card-modern:hover .info-icon-wrapper {
    background: var(--color-primary);
    color: white;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.info-content p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.email-link {
    font-weight: 600;
    color: var(--color-primary);
    word-break: break-all;
    position: relative;
    display: inline-block;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.email-link:hover::after {
    width: 100%;
}

.process-list {
    list-style: none;
    margin-top: 0.5rem;
}

.process-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.process-list li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

/* Services Detail Page */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
}

.service-detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-detail-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* FAQ Page */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-md);
}

.faq-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.faq-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Article / Case Study Styles */
.article-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.article-stats-grid .stat-card {
    padding: 1.5rem;
    box-shadow: none;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
}

.code-block {
    background: #1e293b;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    color: #e2e8f0;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .article-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .article-content {
        font-size: 1rem;
    }
}

/* ==========================================
   CREATIVE TESTIMONIALS (Bento Grid)
   ========================================== */
.testimonials-section {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

/* Decorative Background Blobs */
.bento-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: blobFloat 10s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(var(--color-primary-rgb), 0.1);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(var(--color-accent-rgb), 0.15);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 40px) scale(1.1);
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-card-creative {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: var(--space-xl);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 10px 15px -3px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.testimonial-card-creative:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 8px 10px -6px rgba(0, 0, 0, 0.01);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(var(--color-primary-rgb), 0.2);
}

/* Gradient overlay on hover */
.testimonial-card-creative::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.testimonial-card-creative:hover::after {
    transform: translateX(100%);
}

.bento-large {
    grid-column: span 8;
}

.bento-medium {
    grid-column: span 4;
}

.bento-vertical {
    grid-column: span 4;
    grid-row: span 2;
}

.quote-icon-creative {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    opacity: 0.1;
    position: absolute;
    top: 24px;
    right: 24px;
    transform: rotate(180deg);
}

.t-creative-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.bento-large .t-creative-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.t-creative-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.t-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text);
}

.t-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Responsive Bento */
@media (max-width: 1024px) {

    .bento-large,
    .bento-medium,
    .bento-vertical {
        grid-column: span 6;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-medium,
    .bento-vertical {
        grid-column: span 1;
        grid-row: auto;
    }

    .testimonial-card-creative {
        min-height: 250px;
    }
}