/* ======================================
   CSS for Developer Landing Page
   Author: Ed Souza
   Version: 1.1
   ====================================== */

/* ======================================
/* Self-Hosted GOOGLE FONTS - Optimized for Performance
/* Eliminates render-blocking requests
/*====================================== */

/* Poppins Font - latin */
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/poppins-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/poppins-v24-latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/poppins-v24-latin-700.woff2') format('woff2');
}

/* Poppins Font - latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/poppins-v24-latin_latin-ext-regular.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/poppins-v24-latin_latin-ext-600.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/poppins-v24-latin_latin-ext-700.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter Font - latin */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* Inter Font - latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ======================================
   1. RESET AND BASE STYLES
   ====================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================================
   2. CSS VARIABLES
   ====================================== */

:root {
    /* Color Palette */
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --error-color: #ef4444;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;
    --fs-6xl: 3.75rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* ======================================
   4. BASE TYPOGRAPHY
   ====================================== */

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-base);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    cursor: pointer;
}

a:hover {
    color: var(--primary-dark);
}

/* ======================================
   5. UTILITY CLASSES
   ====================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======================================
   6. BUTTONS
   ====================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: var(--fs-base);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--fs-lg);
}

.btn-submit .btn-loading {
    display: none;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ======================================
   7. SECTIONS
   ====================================== */

section {
    padding: var(--spacing-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-title {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle span {
    display: block;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--fs-base);
}

/* ======================================
   8. NAVIGATION
   ====================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--gray-900);
}

.nav-logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger button - transparent background, no border */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    width: 30px;
    height: 25px;
    z-index: calc(var(--z-fixed) + 10);
}

/* Bars - black in light mode */
.hamburger .bar {
    width: 100%;
    height: 3px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

/* Active state animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ======================================
   9. HERO SECTION
   ====================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-content {
    max-width: 600px;
    width: 100%;
}

.hero-title {
    font-size: var(--fs-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: var(--fs-xl);
    color: var(--gray-600);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--spacing-3xl);
    align-items: center;
    flex-wrap: nowrap;
    margin-top: 0;
    margin-left: 0;
}

.stat {
    text-align: center;
    position: relative;
    padding: var(--spacing-md) 0;
    flex-shrink: 0;
}

.stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.stat:hover::after {
    width: 100%;
}

.stat-number {
    display: block;
    font-size: var(--fs-5xl);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.stat-label {
    display: block;
    font-size: var(--fs-sm);
    color: var(--gray-700);
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-2xl);
    position: relative;
    z-index: 2;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: var(--fs-sm);
    animation: float 6s ease-in-out infinite;
}

.floating-element.html {
    top: 0%;
    left: 10%;
    color: #e34c26;
    animation-delay: 0s;
}

.floating-element.css {
    top: 20%;
    right: -10%;
    color: #1572b6;
    animation-delay: 1s;
}

.floating-element.js {
    bottom: 12%;
    left: 0%;
    color: #f7df1e;
    background: #323330;
    animation-delay: 2s;
}

.floating-element.react {
    bottom: 2%;
    right: 1%;
    color: #61dafb;
    animation-delay: 3s;
}

.floating-element.php {
    top: 50%;
    left: -14%;
    color: #777bb4;
    animation-delay: 4s;
}

.floating-element.next {
    top: 50%;
    right: -18%;
    color: #f3f0f1;
    background: #323330;
    animation-delay: 2s;
    margin-top: 0;
    margin-left: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    margin-bottom: -30px;
    bottom: var(--spacing-xl);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.scroll-indicator:hover {
    transform: translateY(-5px);
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    color: var(--gray-500);
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all var(--transition-normal);
    animation: bounce-arrow 2s ease-in-out infinite;
}

.scroll-indicator:hover .scroll-arrow {
    color: var(--primary-color);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ======================================
   10. ABOUT SECTION
   ====================================== */

.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-text h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--gray-900);
}

.about-text p {
    margin-bottom: var(--spacing-xl);
    font-size: var(--fs-lg);
    color: var(--gray-600);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.feature-icon {
    font-size: var(--fs-2xl);
    min-width: 40px;
}

.feature-content h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--gray-900);
    font-size: var(--fs-lg);
}

.feature-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: var(--fs-base);
}

/* ======================================
   11. SERVICES SECTION
   ====================================== */

.services {
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.service-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ======================================
   12. PORTFOLIO SECTION
   ====================================== */

.portfolio {
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
    filter: grayscale(0);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.portfolio-content {
    padding: var(--spacing-xl);
}

.portfolio-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
}

.portfolio-content p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-600);
}

.portfolio-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    font-size: var(--fs-xs);
    font-weight: 500;
}

/* ======================================
   13. TESTIMONIALS SECTION
   ====================================== */

.testimonials {
    background: var(--gray-50);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonials-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
}

.testimonial-card {
    display: none;
    background: var(--white);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stars {
    margin-bottom: var(--spacing-lg);
    color: #fbbf24;
    font-size: var(--fs-lg);
}

.testimonial-text {
    font-size: var(--fs-lg);
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    margin: 0;
    color: var(--gray-900);
    font-size: var(--fs-lg);
}

.author-info span {
    color: var(--gray-600);
    font-size: var(--fs-sm);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-dot.active,
.nav-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ======================================
   14. CONTACT SECTION
   ====================================== */

.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.contact-button {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-button:hover {
    background: var(--gray-50);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-button:hover .contact-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    transform: scale(1.05);
}

.contact-button:hover h3,
.contact-button:hover p {
    color: var(--primary-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contact-details h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--gray-900);
    font-size: var(--fs-lg);
}

.contact-details p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.4;
}

.contact-cta {
    background: var(--gradient-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    color: var(--white);
    text-align: center;
}

.contact-cta h3 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.contact-cta p {
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.cta-features span {
    font-size: var(--fs-sm);
    opacity: 0.9;
}

/* Contact Form */
.contact-form-container {
    background: var(--gray-50);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: var(--fs-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--fs-base);
    transition: border-color var(--transition-fast);
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-size: var(--fs-sm);
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: bold;
}

/* ======================================
   15. FOOTER
   ====================================== */

.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-4xl) 0 var(--spacing-xl) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
}

.footer-logo a {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--white);
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-description {
    margin: var(--spacing-lg) 0 var(--spacing-xl) 0;
    color: var(--gray-400);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    font-size: var(--fs-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    color: var(--gray-400);
    font-size: var(--fs-sm);
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-divider {
    height: 1px;
    background: var(--gray-800);
    margin: var(--spacing-xl) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-bottom-content p {
    margin: 0;
    color: var(--gray-500);
    font-size: var(--fs-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: var(--fs-sm);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* ======================================
   16. BACK TO TOP BUTTON
   ====================================== */

.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ======================================
   17. LOADING & MESSAGES
   ====================================== */

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.message {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    display: none;
}

.message.success {
    background: rgba(74, 222, 128, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.message.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================
   18. RESPONSIVE - TABLETS
   ====================================== */

@media (max-width: 1024px) {
    .hero-container {
        gap: var(--spacing-2xl);
    }

    .hero-title {
        font-size: var(--fs-5xl);
    }

    .hero-img {
        width: 320px;
        height: 320px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
}

/* ======================================
   19. RESPONSIVE - MOBILE
   ====================================== */

@media (max-width: 768px) {
    h1 { font-size: var(--fs-4xl); }
    h2 { font-size: var(--fs-3xl); }
    h3 { font-size: var(--fs-2xl); }
    h4 { font-size: var(--fs-xl); }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Mobile menu toggle */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: var(--spacing-3xl);
        gap: var(--spacing-2xl);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: calc(var(--z-fixed) - 1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: var(--fs-lg);
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-3xl);
    }

    .hero-content {
        max-width: 100%;
        order: 1;
    }

    .hero-image {
        order: 2;
        position: relative;
        display: block;
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .hero-image-container {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-title {
        font-size: var(--fs-4xl);
    }

    .hero-subtitle {
        font-size: var(--fs-lg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-xl);
        justify-content: center;
        margin-top: var(--spacing-xl);
    }

    .stat {
        min-width: 120px;
    }

    .hero-img {
        width: 200px;
        height: 200px;
    }

    .floating-elements {
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    .floating-element {
        display: block;
        position: absolute;
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .floating-element.html {
        top: 10px;
        left: 15px;
    }

    .floating-element.css {
        top: 30px;
        right: 0px;
    }

    .floating-element.js {
        bottom: 60px;
        left: -10px;
    }

    .floating-element.react {
        bottom: 8px;
        right: -14px;
    }

    .floating-element.php {
        top: 80px;
        left: -18px;
    }

    .floating-element.next {
        top: 70px;
        right: -32px;
        margin-top: 50px;
        margin-left: 12px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: var(--spacing-xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .social-links {
        justify-content: center;
    }
}

/* ======================================
   20. ACCESSIBILITY & PRINT
   ====================================== */

.btn:focus-visible,
.nav-link:focus-visible,
.social-links a:focus-visible,
.back-to-top:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

@media (prefers-contrast: high) {
    :root {
        --gray-600: #000000;
        --gray-700: #000000;
        --gray-900: #000000;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating-element {
        animation: none;
    }

    .scroll-arrow {
        animation: none;
    }
}

@media print {
    .navbar,
    .hero-scroll,
    .back-to-top,
    .floating-elements {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }

    section {
        padding: var(--spacing-lg) 0;
        break-inside: avoid;
    }

    .btn {
        background: transparent !important;
        color: var(--gray-900) !important;
        border: 1px solid var(--gray-900) !important;
    }
}

/* ======================================
   21. DARK MODE SUPPORT
   ====================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --gray-50: #242424;
        --gray-100: #2a2a2a;
        --gray-200: #3a3a3a;
        --gray-300: #4a4a4a;
        --gray-400: #6a6a6a;
        --gray-500: #8a8a8a;
        --gray-600: #b0b0b0;
        --gray-700: #d0d0d0;
        --gray-800: #e0e0e0;
        --gray-900: #f5f5f5;
    }

    body {
        background-color: #1a1a1a;
        color: #d0d0d0;
    }

    .navbar {
        background: rgba(26, 26, 26, 0.95);
        border-bottom: 1px solid #3a3a3a;
    }

    .navbar.scrolled {
        background: rgba(26, 26, 26, 0.98);
    }

    /* Hamburger bars - WHITE in dark mode */
    .hamburger .bar {
        background: #ffffff;
    }

    .nav-menu {
        background: #1a1a1a;
    }

    .hero {
        background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
    }

    .hero::before {
        background:
                radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.15) 0%, transparent 50%);
    }

    .hero-img {
        border: 8px solid #2a2a2a;
    }

    .floating-element {
        background: #2a2a2a;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }

    .floating-element.js,
    .floating-element.next {
        background: #3a3a3a;
    }

    .service-card,
    .portfolio-card,
    .testimonial-card {
        background: #242424;
        border: 1px solid #3a3a3a;
    }

    .service-card:hover,
    .portfolio-card:hover {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .about-image img {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    }

    .contact-form-container {
        background: #242424;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #2a2a2a;
        border: 2px solid #3a3a3a;
        color: #d0d0d0;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #6a6a6a;
    }

    .contact-button:hover {
        background: #2a2a2a;
    }

    .checkmark {
        border: 2px solid #4a4a4a;
    }

    .footer {
        background: #0f0f0f;
    }

    .social-links a {
        background: #242424;
    }

    .footer-divider {
        background: #2a2a2a;
    }

    .legal-page {
        background: #1a1a1a;
    }

    .legal-content {
        background: #242424;
    }

    .back-link {
        border-top: 1px solid #3a3a3a;
    }

    .portfolio-tags span {
        background: #2a2a2a;
        color: #d0d0d0;
    }

    ::-webkit-scrollbar-track {
        background: #242424;
    }

    ::-webkit-scrollbar-thumb {
        background: #4a4a4a;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }
}

/* ======================================
   22. LEGAL PAGES STYLES
   ====================================== */

.legal-page {
    padding: var(--spacing-5xl) 0 var(--spacing-4xl) 0;
    background: var(--white);
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-3xl);
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.legal-content h1 {
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    font-size: var(--fs-4xl);
}

.last-update {
    color: var(--gray-500);
    font-size: var(--fs-sm);
    margin-bottom: var(--spacing-3xl);
    font-style: italic;
}

.legal-content h2 {
    color: var(--gray-900);
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    font-size: var(--fs-2xl);
}

.legal-content h3 {
    color: var(--gray-800);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: var(--fs-xl);
}

.legal-content p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    font-size: var(--fs-base);
}

.legal-content ul {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.legal-content li {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.legal-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.back-link {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--gray-300);
    text-align: center;
}

.back-link .btn {
    display: inline-flex;
    color: var(--white);
}

@media (max-width: 768px) {
    .legal-page {
        padding: var(--spacing-3xl) 0 var(--spacing-2xl) 0;
    }

    .legal-content {
        padding: var(--spacing-xl);
    }

    .legal-content h1 {
        font-size: var(--fs-3xl);
    }

    .legal-content h2 {
        font-size: var(--fs-xl);
        margin-top: var(--spacing-2xl);
    }

    .legal-content h3 {
        font-size: var(--fs-lg);
    }

    .legal-content ul {
        padding-left: var(--spacing-lg);
    }
}
