/* Logo with Text Overlay */
.logo-container {
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f172a;
    --secondary-color: #3b82f6;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-2);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-1);
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--bg-dark);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

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

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

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

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

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #5b21b6 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: 2px solid rgba(226, 232, 240, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.btn-full {
    width: 100%;
}

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

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loader-logo-img {
    height: 60px;
    width: auto;
    animation: fadeInScale 0.8s ease-out;
}

.logo-text-loader {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    display: inline-block;
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.loader-logo .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loader-progress {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loader-text {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.logo .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.logo .logo-text:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin-left: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.3s ease;
}

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

.nav-cta {
    display: none;
}

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

/* Reset styles for semantic buttons used as icons */
.menu-toggle,
.close-modal,
.close-service-modal {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-secondary), transparent);
}

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

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.label-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

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

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

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

.hero-visual {
    position: relative;
    height: 500px;
}

.device-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device {
    position: absolute;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.device.laptop {
    width: clamp(300px, 40vw, 500px);
    height: clamp(180px, 24vw, 300px);
    left: 50%;
    top: 50%;
    transform: translate(-55%, -50%) perspective(1200px) rotateY(-15deg);
    z-index: 2;
}

.device.mobile {
    width: clamp(120px, 15vw, 180px);
    height: clamp(240px, 30vw, 360px);
    left: 50%; /* Ensure it's relative to center */
    top: 50%;
    transform: translate(30%, -40%);
    z-index: 3;
    border-radius: 24px;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    padding: 10px;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
}

.code-editor {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.editor-dots {
    display: flex;
    gap: 6px;
}

.editor-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.editor-dots span:nth-child(1) { background: #ff5f56; }
.editor-dots span:nth-child(2) { background: #ffbd2e; }
.editor-dots span:nth-child(3) { background: #27c93f; }

.editor-title {
    color: var(--text-light);
    font-size: 0.75rem;
}

.editor-code {
    flex: 1;
    padding: 12px;
    overflow: auto;
}

.editor-code pre {
    color: #d4d4d4;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.mobile-app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
}

.app-header {
    height: 60px;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.app-nav {
    width: 80%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.app-content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-card {
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-element {
    position: absolute;
    background: var(--gradient-2);
    border-radius: 50%;
    opacity: 0.1;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation: float 15s ease-in-out infinite;
}

.element-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 10%;
    animation: float 12s ease-in-out infinite reverse;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 10%;
    left: 20%;
    animation: float 18s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    margin: 10px auto 0;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.icon-bg {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--success-color);
    font-size: 0.875rem;
}

.service-link {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

/* Technologies Section */
.technologies {
    /* This prevents the tech-slider from causing horizontal overflow on the body */
    overflow: hidden;
}

.tech-slider {
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    width: 100vw;
    margin: 0 calc(50% - 50vw);
    /* Gradient mask for smooth fade-in/out at edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    width: max-content;
    padding: 1rem 0;
}

.tech-set {
    display: flex;
    gap: 4.5rem;
    padding-right: 4.5rem;
}

.track-1 {
    animation: scroll-left 40s linear infinite;
}

.track-2 {
    animation: scroll-right 40s linear infinite;
}

.tech-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.tech-item {
    text-align: center;
    transition: var(--transition);
    width: 100px;
    flex-shrink: 0;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.1);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tech-item:hover .tech-icon {
    background: var(--gradient-2);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.tech-icon i {
    font-size: 1.75rem;
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

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

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-2);
    color: white;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-item {
    contain: layout style;
    will-change: transform opacity;
}

.portfolio-image img {
    contain-intrinsic-size: 600 400;
}

.portfolio-item {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item {
    opacity: 1;
    transform: scale(1);
    transition: var(--transition);
}

.portfolio-item.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.portfolio-item:hover:not(.filtered-out) {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portfolio-item:hover .portfolio-content .portfolio-title {
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transform: scale(1.05);
}

.portfolio-info .portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color var(--transition), transform var(--transition), text-shadow var(--transition);
}

.portfolio-item:hover .portfolio-info .portfolio-title {
    color: var(--secondary-color);
    transform: translateY(-3px);
    text-shadow: 0 3px 8px rgba(59, 130, 246, 0.4);
}

.portfolio-category {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.portfolio-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.portfolio-info {
    padding: 1.5rem;
    text-align: center;
}

.portfolio-info .portfolio-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.portfolio-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.portfolio-cta {
    text-align: center;
    padding: 3rem;
    background: var(--gradient-2);
    border-radius: 16px;
    color: white;
}

.portfolio-cta p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

/* Process Section */
.process {
    background: var(--bg-secondary);
}

.process-timeline {
    position: relative;
}

.process-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.process-item::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    width: 2px;
    height: calc(100% + 2rem);
    background: var(--border-color);
}

.process-item:last-child::before {
    display: none;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process-content {
    flex: 1;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.process-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.process-deliverables {
    list-style: none;
}

.process-deliverables li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.process-deliverables li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    overflow: hidden;
}

.testimonial-item {
    display: none;
    padding: 3rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-item.active {
    display: block;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    color: var(--warning-color);
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.author-position {
    color: var(--text-light);
    font-size: 0.875rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-control {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-control:hover {
    background: var(--gradient-2);
    color: white;
    border-color: transparent;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--gradient-2);
    width: 32px;
    border-radius: 6px;
}

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

.contact-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.method-icon {\n    width: 48px;\n    height: 48px;\n    background: var(--gradient-2);\n    color: white;\n    border-radius: 12px;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n\n.gmail-icon {\n    color: #DB4437; /* Gmail red */\n    font-size: 1.25rem;\n    transition: var(--transition);\n}\n\n.contact-method:hover .gmail-icon {\n    transform: scale(1.1);\n    filter: drop-shadow(0 2px 4px rgba(219, 68, 55, 0.4));\n}\n\n.method-icon:hover .gmail-icon {\n    background: linear-gradient(135deg, #DB4437, #EA4335);\n    -webkit-background-clip: text;\n    -webkit-text-fill-color: transparent;\n    background-clip: text;\n}

.method-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.method-content p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-social h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-2);
    color: white;
    transform: translateY(-4px);
}

.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: var(--bg-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    z-index: 10000;
    pointer-events: none;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: fadeInTooltip 0.2s ease-out;
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.footer-logo-container:hover .footer-logo-img {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
}

.footer-logo-text:hover {
    transform: scale(1.05);
    letter-spacing: 1.5px;
}

.footer-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.footer-social .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-social .social-link:hover {
    background: var(--gradient-2);
}

.footer-social .social-link i {
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: white;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    transform: translateX(4px);
}

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

.footer-bottom a {
    color: var(--text-light);
}

.footer-bottom a:hover {
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--bg-primary);
    margin: auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: var(--text-light);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-service-modal:hover {
    color: var(--secondary-color) !important;
}

.close-service-modal {
    color: var(--text-light);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    max-height: 400px;
}

.modal-details h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-category {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.modal-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    flex-wrap: wrap;
}

.modal-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-features {
    list-style: none;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

/* Service Modal Specific Styles */
.service-modal-content {
    max-width: 600px;
}
.service-modal-body {
    grid-template-columns: 1fr;
}
.service-modal-details {
    text-align: center;
}
.service-modal-icon {
    margin: 0 auto 1.5rem auto;
    width: 64px;
    height: 64px;
    font-size: 2rem;
}
.service-modal-title {
    margin-bottom: 1rem;
}
.service-modal-description {
    font-size: 1.1rem;
}
.service-modal-features-container {
    margin-top: 2rem;
    text-align: left;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
}
.service-modal-features-container h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.service-modal-features-container ul {
    padding-left: 0;
}
.service-modal-action {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-wrapper {
        gap: 1rem;
    }

    .nav-menu ul {
        gap: 1.25rem;
    }

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

    .hero-description,
    .section-subtitle,
    .footer-brand {
        max-width: 100%;
    }
    
    .hero-visual {
        height: 350px;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
    
    /* Hero Visual Adjustments for 480px-768px */
    .device.laptop {
        width: clamp(280px, 50vw, 400px); /* Slightly smaller clamp for laptop */
        height: clamp(170px, 30vw, 250px);
        left: 50%;
        top: 50%;
        transform: translate(-60%, -50%) perspective(800px) rotateY(-10deg); /* Less dramatic 3D effect */
        z-index: 2;
    }

    .device.mobile {
        width: clamp(100px, 18vw, 150px); /* Slightly smaller clamp for mobile */
        height: clamp(200px, 35vw, 300px);
        left: 50%;
        top: 50%;
        transform: translate(20%, -30%) perspective(800px) rotateY(5deg); /* Adjust positioning and add slight rotation */
        z-index: 3;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 0 clamp(12px, 5vw, 20px);
    }
    .container {
        padding: 0 clamp(12px, 5vw, 20px);
    }

    .nav-wrapper {
        padding: 0.875rem 0;
    }

    .logo .logo-text {
        font-size: 1.25rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82%, 320px);
        height: 100vh;
        background: var(--bg-primary);
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .nav-cta {
        display: none;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 70px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .section-header {
        margin-bottom: 2.75rem;
    }

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

    .portfolio-item {
        box-shadow: var(--shadow-sm) !important;
    }

    .portfolio-item:hover:not(.filtered-out) {
        transform: none !important;
        box-shadow: var(--shadow-md) !important;
    }

    .portfolio-filters {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.65rem 1rem;
    }
    
    .process-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .process-item::before {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .testimonial-item {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .footer {
        padding-top: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom p {
        line-height: 1.8;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }

    .hero-label {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        justify-items: center;
    }
    
    .hero-stats .stat-item:last-child {
        grid-column: span 2;
    }

    .stat-number {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem; /* Adjust section titles for smaller screens */
    }

    .section-subtitle {
        font-size: 1rem; /* Adjust section subtitles for smaller screens */
    }

    .portfolio-image {
        height: 220px;
    }

    .portfolio-info,
    .portfolio-content {
        padding: 1.25rem;
    }

    .portfolio-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .device-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* Hero Visual Adjustments for very small screens */
    .device.laptop {
        width: clamp(250px, 80vw, 320px);
        height: clamp(150px, 45vw, 200px);
        left: 50%;
        top: 40%; /* Adjust vertical position */
        transform: translate(-50%, -50%) perspective(600px) rotateY(0deg); /* Flatten it more */
    }
    
    .device.mobile {
        width: clamp(90px, 28vw, 140px);
        height: clamp(180px, 50vw, 280px);
        left: 50%;
        top: 65%; /* Adjust vertical position */
        transform: translate(10%, -10%) perspective(600px) rotateY(0deg); /* Flatten and position relative to laptop */
    }

    .service-card,
    .contact-card,
    .contact-form,
    .process-content { /* Ensure consistent padding for these elements */
        padding: 1.5rem;
    }

    .filter-btn,
    .btn-large,
    .btn-full {
        width: 100%;
    }
    
    .testimonial-item {
        padding: 2rem 1.5rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        flex-wrap: wrap;
    }

    .footer-bottom {
        font-size: 0.875rem;
    }
}
