/* CSS Variables for Next-Gen Dark Design */
:root {
    /* Minimalistic warm-neutral accent */
    --accent-color: #0d3b66;
    --primary-gradient: linear-gradient(0deg, var(--accent-color), var(--accent-color));
    --secondary-gradient: linear-gradient(0deg, var(--accent-color), var(--accent-color));
    --accent-gradient: linear-gradient(0deg, var(--accent-color), var(--accent-color));
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #cfcfcf;
    --text-light: #a8a8a8;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-dark: #000000;
    --bg-card: #151515;
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-medium: 0 16px 64px rgba(0, 0, 0, 0.45);
    --shadow-heavy: 0 32px 128px rgba(0, 0, 0, 0.55);
    --border-radius: 16px;
    --border-radius-large: 24px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-animation {
    text-align: center;
}

.loading-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    will-change: transform;
    /* Performance optimization */
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom Cursor - DISABLED */
.cursor-follower {
    display: none;
    /* Disabled mouse animations */
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    display: none;
    /* Disabled mouse animations */
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
}

/* Glass Morphism Effect */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
}

/* Override glass-effect for navbar specifically */
.navbar.glass-effect {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    /* Highest z-index to ensure it's always on top */
    padding: 1rem 0 !important;
    transition: all var(--transition-medium) !important;
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    /* Ensure navbar is always above everything */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.navbar.glass-effect.scrolled {
    background: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

.lang-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.lang-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-light);
}

.lang-flag {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #0f0f0f;
    /* Ensure hero content is always below the fixed navbar */
    padding-top: 100px;
    /* Base padding for all screen sizes */
    margin-top: 0;
    /* Ensure proper stacking and positioning */
    z-index: 1;
    /* Force hardware acceleration for better rendering */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.02;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    /* Ensure content is positioned correctly */
    width: 100%;
}

.hero-text {
    /* Ensure hero text content is properly positioned */
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    /* Ensure badge is always visible above navbar */
    position: relative;
    z-index: 4;
    /* Force hardware acceleration for better rendering */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Ensure proper stacking context */
    isolation: isolate;
}

.hero-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    /* Ensure text is always visible */
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(0.9rem, 2.2vw, 1.6rem);
    /* v2 - Compact hero title */
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-title span[data-i18n="hero.title1"] {
    font-weight: 400;
    /* Regular weight for better readability */
    font-size: 0.8em;
    /* Significantly larger */
    text-transform: uppercase;
    letter-spacing: 0.25em;
    /* Even more space */
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* More space between line and text */
    margin-bottom: 0.8rem;
    opacity: 1;
    /* Full visibility */
    color: var(--text-primary);
}

/* Decorative line before the eyebrow text */
.hero-title span[data-i18n="hero.title1"]::before {
    content: '';
    display: block;
    width: 60px;
    /* Longer line */
    height: 2px;
    /* Thicker line */
    background: var(--accent-color);
    /* Use accent color for visibility */
    opacity: 0.8;
}

.hero-description {
    font-size: clamp(0.95rem, 2.6vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.4rem, 6vw, 2.5rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: var(--border-radius-large);
    border: 1px solid var(--glass-border);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder.modern {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-content {
    text-align: center;
    color: var(--text-primary);
}

.placeholder-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.placeholder-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.placeholder-text p {
    color: var(--text-light);
    font-size: 1rem;
}

.floating-cards {
    display: none;
    /* Minimal aesthetic: disable decorative floating cards */
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-light);
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 1.5s;
}

.card-3 {
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
    z-index: 10;
    pointer-events: none;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-light), transparent);
    position: relative;
    animation: scrollDown 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--text-light);
    border-bottom: 1.5px solid var(--text-light);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.8;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes fadePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-description {
    font-size: clamp(0.95rem, 2.6vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.about-visual {
    position: relative;
}

.about-image-container {
    position: relative;
}

.about-image.modern {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image.modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-image.modern:hover img {
    transform: scale(1.05);
}

.tech-badges {
    position: absolute;
    top: -20px;
    right: -20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.service-features span {
    background: var(--glass-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.service-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-medium);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.portfolio-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.portfolio-image .image-placeholder.modern {
    height: 100%;
    border-radius: 0;
    border: none;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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


.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-content h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-weight: 600;
}

.portfolio-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.85rem;
}

.portfolio-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.portfolio-tech span {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-card {
    padding: 2rem 2.5rem 1.7rem;
    border-radius: var(--border-radius-large);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    height: fit-content;
    align-self: start;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-form-container {
    position: relative;
}

.contact-form {
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    font-size: 1rem;
    background: var(--bg-primary);
    transition: all var(--transition-fast);
    font-family: inherit;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gradient);
    background: var(--bg-secondary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
    /* Hide placeholder text to avoid overlap with floating label */
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 20px;
    color: var(--text-light);
    transition: all var(--transition-fast);
    pointer-events: none;
    font-size: 1rem;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 0 5px;
}

/* Float label when JS adds .focused (works for <select> and any field) */
.form-group.focused label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 0 5px;
}

/* Always float label for select to prevent overlap with selected option text */
.form-group select+label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 0 5px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-fast);
}

.form-group input:focus~.form-line,
.form-group textarea:focus~.form-line {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    color: white;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design - Comprehensive Cross-Device Support */
/* Large Desktop and Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .hero-content {
        gap: 6rem;
    }

    .hero {
        padding-top: 120px;
        /* Extra padding for large screens */
    }
}

/* Standard Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
        padding: 0 30px;
    }

    .hero-content {
        gap: 3rem;
    }

    .about-content {
        gap: 3rem;
    }

    .contact-content {
        gap: 3rem;
    }

    .hero {
        padding-top: 110px;
        /* Adjusted padding for desktop */
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .container {
        max-width: 900px;
        padding: 0 25px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .section-title {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero {
        padding-top: 105px;
        /* Adjusted padding for tablet landscape */
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: left var(--transition-medium);
        padding: 2rem 0;
        border-top: 1px solid var(--glass-border);
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-actions {
        gap: 0.5rem;
        order: -1;
    }

    .language-selector {
        margin-right: 0;
    }

    .lang-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .nav-cta {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* Ensure hero content clears the fixed navbar on all browsers */
    .hero {
        padding-top: 120px;
        /* Increased padding for mobile */
        min-height: 90vh;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .hero-description {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .floating-cards {
        display: none;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .section-description {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-features {
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .image-placeholder.modern {
        height: 250px;
    }

    /* Improve touch targets on mobile */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }

    .nav-link {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Large Mobile */
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 1.9rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 130px;
        /* Extra padding for large mobile */
    }
}

/* Standard Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
        line-height: 1.2;
    }

    .section-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
        line-height: 1.2;
    }

    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
        line-height: 1.5;
    }

    .section-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
        line-height: 1.5;
    }

    .hero,
    .about,
    .services,
    .portfolio,
    .contact {
        padding: 60px 0;
    }

    /* Ensure hero content is always below navbar on all browsers */
    .hero {
        padding-top: 140px;
        /* Maximum padding for small mobile */
        padding-bottom: 60px;
        min-height: 85vh;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .scroll-arrow {
        height: 35px;
    }

    .service-card,
    .contact-form,
    .contact-card {
        padding: 1.5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-number {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Improve form usability on mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .form-group label {
        font-size: 0.9rem;
    }

    /* Better spacing for mobile */
    .feature-item {
        gap: 0.8rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-item {
        gap: 0.8rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: clamp(1.4rem, 8vw, 1.8rem);
    }

    .section-title {
        font-size: clamp(1.2rem, 7vw, 1.6rem);
    }

    .hero-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hero-badge span {
        font-size: 0.8rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .service-card,
    .contact-form,
    .contact-card {
        padding: 1.2rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .image-placeholder.modern {
        height: 200px;
    }

    .hero {
        padding-top: 150px;
        /* Maximum padding for very small mobile */
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: clamp(1.2rem, 8vw, 1.6rem);
    }

    .section-title {
        font-size: clamp(1.1rem, 7vw, 1.4rem);
    }

    .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .service-card,
    .contact-form,
    .contact-card {
        padding: 1rem;
    }

    .hero-stats {
        gap: 0.8rem;
    }

    .stat-number {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .hero {
        padding-top: 160px;
        /* Maximum padding for extra small mobile */
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 100px;
        /* Reduced padding for landscape */
        padding-bottom: 40px;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 1rem;
    }

    .hero-stats {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-bg-shapes .shape {
        transform: scale(0.5);
    }
}

/* Print Styles */
@media print {

    .loading-screen,
    .navbar,
    .hamburger,
    .scroll-indicator,
    .floating-cards {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn {
        border: 1px solid #000;
        background: none;
        color: #000;
    }

    .service-card,
    .portfolio-item,
    .contact-form,
    .contact-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Accessibility and Reduced Motion */
@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;
    }

    .loading-circle {
        animation: none;
    }

    .shape {
        animation: none;
    }

    .floating-card {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* Dark mode support - already using dark theme by default */

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Ensure proper focus indicators */
.btn:focus,
.nav-link:focus,
.filter-btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --glass-border: rgba(255, 255, 255, 0.3);
    }

    .btn {
        border: 2px solid currentColor;
    }

    .service-card,
    .portfolio-item,
    .contact-form,
    .contact-card {
        border: 2px solid var(--glass-border);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

/* Counters Grid for Inquiry Form */
.counters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.counter-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.counter-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.counter-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 4px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.counter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.counter-value {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

@media (max-width: 640px) {
    .counters-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10001;
    /* Above navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    /* Viewport height limit */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10002;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
    text-decoration: none;
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--accent-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 18px;
        padding: 10px;
        width: 40px;
        height: 40px;
    }
}

/* Service Selection Checkboxes */
.service-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.service-selection-grid .service-checkbox {
    position: relative;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    /* Override .form-group label */
    top: auto;
    left: auto;
}

.service-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.service-checkbox .service-label {
    display: block;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-checkbox:hover .service-label {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.service-checkbox input:checked~.service-label {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(13, 59, 102, 0.4);
    transform: translateY(-2px);
}

.form-group .static-label {
    position: relative;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: auto;
    top: auto;
    left: auto;
}

.checkmark {
    display: none;
    /* Hidden simpler design */
}

/* Portfolio Gallery Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.active {
    display: flex;
    opacity: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-main-image {
    max-width: 90%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.modal-nav-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.modal-nav-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-nav-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(13, 59, 102, 0.4);
}

.modal-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 90%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
}

.modal-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.modal-thumbnail {
    min-width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.modal-thumbnail.active {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(13, 59, 102, 0.6);
}

.modal-counter {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-main-image {
        max-height: 50vh;
    }

    .modal-thumbnails {
        max-width: 100%;
    }

    .modal-thumbnail {
        min-width: 80px;
        height: 60px;
    }

    .modal-close {
        right: 20px;
        top: 10px;
        font-size: 30px;
    }
}