:root {
    --primary-dark: #0d1164;
    --primary-purple: #640d5f;
    --accent-pink: #ea2264;
    --accent-orange: #f78d60;
    --dark-blue: #090040;
    --purple: #471396;
    --light-purple: #b13bff;
    --yellow: #ffcc00;
    --neon-blue: #00f3ff;
    --neon-pink: #ff00c8;
    
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary-purple));
    --gradient-accent: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
    --gradient-purple: linear-gradient(135deg, var(--purple), var(--light-purple));
    --gradient-dark: linear-gradient(135deg, var(--dark-blue), var(--primary-dark));
    --gradient-neon: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    
    --shadow-glow: 0 0 20px rgba(234, 34, 100, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(177, 59, 255, 0.3);
    --shadow-glow-neon: 0 0 15px rgba(0, 243, 255, 0.7);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Smooth in-page scrolling for anchor navigation */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: var(--gradient-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 30px;
}

.preloader .logo-icon {
    background: var(--gradient-accent);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    border-radius: 10px;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Header Styles */
header {
    background: rgba(9, 0, 64, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(9, 0, 64, 0.95);
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: padding 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    background: var(--gradient-accent);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s;
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-button {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(234, 34, 100, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(177, 59, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-purple);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: var(--shadow-glow-purple);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(177, 59, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(177, 59, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(177, 59, 255, 0); }
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.hero-badge:hover::before {
    left: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    position: relative;
}

.title-line {
    display: block;
}

.hero-title span:not(.typing-text) {
    background: linear-gradient(135deg, #fff 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--neon-blue);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 5px;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.7;
}

.hero-description strong {
    color: var(--accent-orange);
    font-weight: 600;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature i {
    color: var(--accent-orange);
    font-size: 0.8rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-neon {
    /* Subtle, theme-matching CTA: softer purple gradient and gentler glow */
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(71, 19, 150, 0.12);
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(71, 19, 150, 0.18);
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 10px rgba(0, 243, 255, 0.7); }
    50% { box-shadow: 0 0 20px rgba(0, 243, 255, 0.9), 0 0 30px rgba(255, 0, 200, 0.5); }
    100% { box-shadow: 0 0 10px rgba(0, 243, 255, 0.7); }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(234, 34, 100, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-device {
    width: 85%;
    height: 75%;
    background: var(--gradient-primary);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.device-frame {
    width: 100%;
    height: 100%;
    position: relative;
}

.device-header {
    height: 25px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.device-dots {
    display: flex;
    gap: 5px;
}

.device-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.device-screen {
    width: 100%;
    height: calc(100% - 25px);
    background: #1a1a2e;
    padding: 15px;
}

.screen-content {
    width: 100%;
    height: 100%;
}

.app-window {
    width: 100%;
    height: 100%;
    background: #0f0f1e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-header {
    height: 30px;
    background: #2d2d4d;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f57; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #28ca42; }

.app-body {
    padding: 20px;
    height: calc(100% - 30px);
}

.code-editor {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: codeTyping 3s infinite;
}

.code-line.animated:nth-child(1) {
    width: 85%;
    animation-delay: 0s;
}

.code-line.animated:nth-child(2) {
    width: 70%;
    animation-delay: 0.3s;
}

.code-line.animated:nth-child(3) {
    width: 60%;
    animation-delay: 0.6s;
}

.code-line.animated:nth-child(4) {
    width: 75%;
    animation-delay: 0.9s;
}

.code-line.animated:nth-child(5) {
    width: 65%;
    animation-delay: 1.2s;
}

@keyframes codeTyping {
    0% { background: rgba(255, 255, 255, 0.1); }
    50% { background: rgba(255, 255, 255, 0.3); }
    100% { background: rgba(255, 255, 255, 0.1); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: var(--gradient-accent);
}

.element-2 {
    width: 50px;
    height: 50px;
    top: 60%;
    left: 75%;
    animation-delay: 2s;
    background: var(--gradient-purple);
}

.element-3 {
    width: 45px;
    height: 45px;
    top: 30%;
    left: 80%;
    animation-delay: 4s;
    background: var(--gradient-neon);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Services Section */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 5px;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    box-shadow: var(--shadow-glow-purple);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.service-card:hover .service-icon::before {
    left: 100%;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s;
}

.service-link:hover::after {
    width: 100%;
}

.service-link:hover {
    gap: 10px;
}

/* Additional Services Section */
#additional-services {
    background: rgba(255, 255, 255, 0.02);
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.additional-service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.additional-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.additional-service-card:hover::before {
    left: 100%;
}

.additional-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--gradient-purple);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    box-shadow: var(--shadow-glow-purple);
    transition: all 0.3s;
}

.additional-service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.additional-service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.additional-service-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Stats Section */
.stats {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.1"><circle cx="50" cy="50" r="2" fill="white"/></svg>') repeat;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Dark overlay to make featured images a bit darker and more consistent */
.portfolio-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    transition: background 0.3s;
}

/* Slightly reduce overlay on hover so hover state feels responsive */
.portfolio-item:hover .portfolio-image-container::after {
    background: rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.3s;
    /* Subtle blur and slight darkening for featured project images */
    filter: blur(2px) brightness(0.8);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 0, 64, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
}

.portfolio-actions {
    display: flex;
    gap: 15px;
}

.portfolio-action-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.portfolio-action-btn:hover {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(9, 0, 64, 0.9), transparent);
    color: white;
    transform: translateY(100px);
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-category {
    color: var(--accent-orange);
    font-weight: 600;
}

.portfolio-cta {
    text-align: center;
    margin-top: 40px;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border: 2px solid var(--accent-pink);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-accent);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-period {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--yellow);
}

/* Testimonials Section */
.testimonials {
    background: var(--gradient-primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.1"><polygon points="50,10 61,35 88,35 66,52 73,78 50,63 27,78 34,52 12,35 39,35" fill="white"/></svg>') repeat;
    animation: moveBackground 30s linear infinite;
}

.testimonials-slider {
    display: flex;
    overflow: hidden;
    margin-bottom: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    z-index: 1;
    min-width: 100%;
    transition: transform 0.5s;
}

.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: rgba(255, 255, 255, 0.2);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info h4 {
    font-weight: 700;
    margin-bottom: 5px;
}

.author-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--gradient-accent);
    transform: scale(1.1);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-purple);
    z-index: -1;
    opacity: 0.1;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
    background: var(--dark-blue);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
}

.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--accent-orange);
    margin-top: 3px;
    font-size: 1.1rem;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-item span {
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* Disabled/footer items that look like links but are not clickable */
.footer-links .disabled-item {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: default;
    pointer-events: none;
}

/* Ensure the icon spacing/appearance matches anchored links */
.footer-links .disabled-item i {
    width: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-links a i {
    width: 20px;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: white;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.phone {
    background: var(--gradient-accent);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.floating-btn:hover::after {
    transform: translateX(0);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--gradient-dark);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent-orange);
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.modal-image {
    width: 100%;
    margin-bottom: 30px;
}

.modal-image img {
    width: 100%;
    border-radius: 10px;
}

.modal-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-category {
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-description {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.modal-technologies {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.modal-link {
    align-self: flex-start;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-visual {
        height: 350px;
        max-width: 450px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .modal-body {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 0, 64, 0.95);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        gap: 15px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 14px 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .hero-features {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 130px 0 60px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .feature {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(9, 0, 64, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    left: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.mobile-nav-logo-icon {
    background: var(--gradient-accent);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-content {
    flex: 1;
    padding: 30px 20px;
    overflow-y: auto;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-links li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left 0.3s ease;
    z-index: -1;
}

.mobile-nav-links li a:hover::before {
    left: 0;
}

.mobile-nav-links li a:hover {
    transform: translateX(10px);
    color: white;
}

.mobile-nav-links li a i {
    width: 20px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.mobile-nav-links li a:hover i {
    transform: scale(1.2);
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-nav-cta {
    width: 100%;
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-glow);
    text-decoration: none;
    display: block;
}

.mobile-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 34, 100, 0.4);
}

/* Animation for menu items */
.mobile-nav-links li {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }

/* Hide original mobile menu button on larger screens */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

/* Elegant Mobile Navigation Effects */
.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}

/* Subtle hover effect */
.mobile-nav-links li a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    color: white;
}

/* Elegant accent line on hover */
.mobile-nav-links li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 3px;
    height: 0;
    background: var(--accent-orange);
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
}

.mobile-nav-links li a:hover::before {
    transform: translateY(-50%) scaleX(1);
    height: 60%;
}

/* Icon animation */
.mobile-nav-links li a i {
    width: 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-nav-links li a:hover i {
    transform: scale(1.1);
    color: var(--accent-orange);
}

/* Text animation */
.mobile-nav-links li a span {
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-links li a:hover span {
    font-weight: 600;
}

/* Active state - subtle and elegant */
.mobile-nav-links li a.active {
    background: rgba(234, 34, 100, 0.1);
    border-color: rgba(234, 34, 100, 0.3);
    color: white;
}

.mobile-nav-links li a.active i {
    color: var(--accent-orange);
}

.mobile-nav-links li a.active::before {
    transform: translateY(-50%) scaleX(1);
    height: 60%;
    background: var(--accent-orange);
}

/* Click feedback */
.mobile-nav-links li a:active {
    transform: translateX(8px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Staggered entrance animation - subtle */
.mobile-nav-links li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) { 
    transition-delay: 0.1s; 
}
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) { 
    transition-delay: 0.15s; 
}
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) { 
    transition-delay: 0.2s; 
}
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(4) { 
    transition-delay: 0.25s; 
}
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(5) { 
    transition-delay: 0.3s; 
}
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(6) { 
    transition-delay: 0.35s; 
}

/* Subtle shadow on hover */
.mobile-nav-links li a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Clean separator between items */
.mobile-nav-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

