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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 25%, #4a2c6a 50%, #6b3d8e 75%, #8b4fb8 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 20, 68, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 20, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 79, 184, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    33% { transform: translateX(-20px) translateY(-20px) rotate(1deg); }
    66% { transform: translateX(20px) translateY(20px) rotate(-1deg); }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 20, 68, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.nav-logo h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #ff1744, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

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

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff1744;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ff1744;
    transition: width 0.3s ease;
}

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

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 11, 46, 0.98);
    backdrop-filter: blur(15px);
    min-width: 220px;
    list-style: none;
    padding: 1rem 0;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 23, 68, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #ff1744;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-link:hover {
    color: #ffffff;
    background: rgba(255, 23, 68, 0.1);
    padding-left: 2rem;
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

.dropdown-link i {
    margin-right: 0.5rem;
    color: #ff1744;
    font-size: 0.8rem;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 25%, #4a2c6a 50%, #6b3d8e 75%, #8b4fb8 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: heroBackground 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    animation: heroPattern 20s linear infinite;
}

@keyframes heroBackground {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes heroPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50px) translateY(-50px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #ff1744, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #ff1744;
    color: white;
}

.btn-primary:hover {
    background: #ff4569;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 23, 68, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #ff1744;
    transform: translateY(-2px);
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    font-size: 5rem;
    opacity: 0.9;
    position: relative;
    padding: 2rem;
    flex-wrap: wrap;
    min-height: 200px;
    width: 100%;
}

.hero-graphic i {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 50%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 80px;
    min-height: 80px;
    z-index: 1;
    font-size: inherit;
    line-height: 1;
}

.hero-graphic i::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 3s linear infinite;
}

.hero-graphic i:nth-child(1) {
    animation: floatCode 4s ease-in-out infinite;
    color: #ff1744;
    animation-delay: 0s;
}

.hero-graphic i:nth-child(2) {
    animation: floatMobile 4s ease-in-out infinite;
    color: #ff4569;
    animation-delay: 1.3s;
}

.hero-graphic i:nth-child(3) {
    animation: floatShare 4s ease-in-out infinite;
    color: #ff1744;
    animation-delay: 2.6s;
}

.hero-graphic i:hover {
    transform: scale(1.3) rotate(15deg) translateY(-10px);
    filter: drop-shadow(0 0 30px currentColor);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.hero-graphic i:hover::before {
    opacity: 1;
}

/* Individual icon animations */
@keyframes floatCode {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-20px) rotate(5deg) scale(1.05); 
    }
    50% { 
        transform: translateY(-30px) rotate(0deg) scale(1.1); 
    }
    75% { 
        transform: translateY(-20px) rotate(-5deg) scale(1.05); 
    }
}

/* Ensure icons are visible and properly styled */
.hero-graphic i {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .hero-graphic i {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Font Awesome icon fixes */
.hero-graphic i::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Ensure icons have content */
.hero-graphic i.fa-code::before {
    content: "\f121" !important;
}

.hero-graphic i.fa-mobile-alt::before {
    content: "\f3cd" !important;
}

.hero-graphic i.fa-share-alt::before {
    content: "\f1e0" !important;
}

/* Debug styles to make icons visible */
.hero-graphic i {
    background-color: rgba(255, 23, 68, 0.3) !important;
    border: 3px solid #ff1744 !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

@keyframes floatMobile {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-25px) rotate(-3deg) scale(1.08); 
    }
    50% { 
        transform: translateY(-35px) rotate(0deg) scale(1.15); 
    }
    75% { 
        transform: translateY(-25px) rotate(3deg) scale(1.08); 
    }
}

@keyframes floatShare {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-18px) rotate(8deg) scale(1.06); 
    }
    50% { 
        transform: translateY(-28px) rotate(0deg) scale(1.12); 
    }
    75% { 
        transform: translateY(-18px) rotate(-8deg) scale(1.06); 
    }
}

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

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-graphic {
        gap: 2.5rem;
        font-size: 4.5rem;
        min-height: 180px;
    }
    
    .hero-graphic i {
        min-width: 70px;
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    .hero-graphic {
        gap: 2rem;
        font-size: 3.5rem;
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        min-height: 300px;
    }
    
    .hero-graphic i {
        padding: 0.8rem;
        margin: 0.5rem 0;
        min-width: 60px;
        min-height: 60px;
    }
    
    .hero-graphic i:nth-child(1) {
        animation: floatCodeMobile 4s ease-in-out infinite;
    }
    
    .hero-graphic i:nth-child(2) {
        animation: floatMobileMobile 4s ease-in-out infinite;
    }
    
    .hero-graphic i:nth-child(3) {
        animation: floatShareMobile 4s ease-in-out infinite;
    }
}

@media (max-width: 480px) {
    .hero-graphic {
        gap: 1.5rem;
        font-size: 3rem;
        padding: 1rem;
        min-height: 250px;
    }
    
    .hero-graphic i {
        padding: 0.6rem;
        min-width: 50px;
        min-height: 50px;
    }
}

/* Mobile-specific animations */
@keyframes floatCodeMobile {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    50% { 
        transform: translateY(-15px) rotate(10deg) scale(1.1); 
    }
}

@keyframes floatMobileMobile {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    50% { 
        transform: translateY(-20px) rotate(-10deg) scale(1.1); 
    }
}

@keyframes floatShareMobile {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    50% { 
        transform: translateY(-18px) rotate(15deg) scale(1.1); 
    }
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: rgba(26, 11, 46, 0.5);
}

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

.services-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.services-grid a:hover {
    transform: scale(1.02);
}

.services-grid a:hover .service-card {
    transform: translateY(-15px) scale(1.02);
}

.service-card {
    background: rgba(45, 27, 78, 0.6);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 23, 68, 0.3);
    position: relative;
    overflow: hidden;
    color: #ffffff;
    cursor: pointer;
    display: block;
    height: 100%;
}

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

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 23, 68, 0.2);
    border-color: #ff1744;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff1744, #ff4569);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    transition: all 0.3s ease;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.4);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #ff1744, #ff4569);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
    animation: iconSpin 0.6s ease-in-out;
}

.service-card:hover .service-icon::before {
    opacity: 0.3;
    animation: iconRipple 1s ease-out;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 23, 68, 0); }
}

@keyframes iconSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

@keyframes iconRipple {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: rgba(26, 11, 46, 0.3);
    color: #ffffff;
}

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

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

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

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff1744;
    margin-bottom: 0.5rem;
}

.stat p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.about-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

/* Tech Growth Animation Container */
.tech-growth-animation {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    overflow: visible;
}

/* Ensure proper stacking order */
.tech-growth-animation > * {
    position: absolute;
}

.central-hub {
    z-index: 10;
}

.orbit {
    z-index: 5;
}

.connection-lines {
    z-index: 3;
}

.floating-stats {
    z-index: 8;
}

.data-particles {
    z-index: 2;
}

/* Central Hub */
.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff1744, #ff4569);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    z-index: 10;
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.5);
    animation: hubGlow 3s ease-in-out infinite;
}

.hub-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 23, 68, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes hubGlow {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(255, 23, 68, 0.5);
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(255, 23, 68, 0.8);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    100% { 
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Orbit Containers */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 23, 68, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

.orbit-1 {
    width: 120px;
    height: 120px;
    animation-duration: 15s;
}

.orbit-2 {
    width: 180px;
    height: 180px;
    animation-duration: 20s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 240px;
    height: 240px;
    animation-duration: 25s;
}

@keyframes rotate {
    from { 
        transform: translate(-50%, -50%) rotate(0deg); 
    }
    to { 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

/* Ensure smooth animations */
.orbit,
.orbit-item,
.central-hub,
.stat-bubble,
.particle,
.line {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Orbit Items */
.orbit-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff4569, #ff1744);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 23, 68, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.orbit-item:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.5);
}

.orbit-item i {
    margin-bottom: 2px;
}

.orbit-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
    line-height: 1;
}

/* Position orbit items */
.orbit-1 .orbit-item {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-2 .orbit-item {
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
}

.orbit-3 .orbit-item {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}

/* Fix orbit item positioning within rotating containers */
.orbit-1 .orbit-item {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
}

.orbit-2 .orbit-item {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    transform-origin: center;
}

.orbit-3 .orbit-item {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #ff1744, transparent);
    height: 1px;
    opacity: 0.3;
    animation: dataFlow 3s ease-in-out infinite;
}

.line-1 {
    top: 50%;
    left: 50%;
    width: 60px;
    transform: translate(-50%, -50%) rotate(0deg);
    animation-delay: 0s;
}

.line-2 {
    top: 50%;
    left: 50%;
    width: 90px;
    transform: translate(-50%, -50%) rotate(120deg);
    animation-delay: 1s;
}

.line-3 {
    top: 50%;
    left: 50%;
    width: 120px;
    transform: translate(-50%, -50%) rotate(240deg);
    animation-delay: 2s;
}

@keyframes dataFlow {
    0%, 100% { 
        opacity: 0.1;
        transform: translate(-50%, -50%) scaleX(0.5);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scaleX(1);
    }
}

/* Floating Stats */
.floating-stats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stat-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    animation: floatBubble 4s ease-in-out infinite;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff1744;
    line-height: 1;
}

.stat-text {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1;
}

.stat-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.stat-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1.3s;
}

.stat-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 2.6s;
}

@keyframes floatBubble {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
    }
}

/* Data Particles */
.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff1744;
    border-radius: 50%;
    animation: particleFlow 6s linear infinite;
}

.particle-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 30%;
    left: 40%;
    animation-delay: 2s;
}

.particle-4 {
    top: 40%;
    left: 10%;
    animation-delay: 3s;
}

.particle-5 {
    top: 80%;
    right: 40%;
    animation-delay: 4s;
}

.particle-6 {
    top: 10%;
    right: 30%;
    animation-delay: 5s;
}

@keyframes particleFlow {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    90% {
        transform: translate(50px, -50px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(100px, -100px) scale(0);
        opacity: 0;
    }
}

/* Service Pages Styles */
.service-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 25%, #4a2c6a 50%, #6b3d8e 75%, #8b4fb8 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
    margin-top: 70px;
}

.service-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.service-icon-large {
    font-size: 5rem;
    color: #ff1744;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.service-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #ff1744, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
}

.service-hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.service-details {
    padding: 4rem 0;
    background: rgba(26, 11, 46, 0.3);
    color: #ffffff;
}

.service-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-main h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.service-main h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #ff1744;
}

.service-main p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

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

.service-features-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    background: rgba(45, 27, 78, 0.4);
    border-radius: 10px;
    border-left: 3px solid #ff1744;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.service-features-list li:hover {
    background: rgba(45, 27, 78, 0.6);
    transform: translateX(5px);
}

.service-features-list li i {
    color: #ff1744;
    margin-right: 0.5rem;
}

.why-choose {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(45, 27, 78, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(255, 23, 68, 0.3);
    transition: all 0.3s ease;
}

.why-item:hover {
    background: rgba(45, 27, 78, 0.6);
    border-color: #ff1744;
    transform: translateY(-5px);
}

.why-item i {
    font-size: 2rem;
    color: #ff1744;
    flex-shrink: 0;
}

.why-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.why-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.service-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #4a2c6a 100%);
    text-align: center;
    color: #ffffff;
}

.service-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-graphic {
        height: 300px;
    }
    
    .service-hero {
        min-height: 50vh;
        padding: 6rem 0 3rem;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-hero-description {
        font-size: 1rem;
    }

    .service-icon-large {
        font-size: 3.5rem;
    }
    
    .service-main h2 {
        font-size: 2rem;
    }
    
    .service-main h3 {
        font-size: 1.5rem;
    }
    
    .why-choose {
        grid-template-columns: 1fr;
    }
    
    .service-cta h2 {
        font-size: 2rem;
    }
    
    .tech-growth-animation {
        width: 250px;
        height: 250px;
    }
    
    .central-hub {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .orbit-1 {
        width: 100px;
        height: 100px;
    }
    
    .orbit-2 {
        width: 150px;
        height: 150px;
    }
    
    .orbit-3 {
        width: 200px;
        height: 200px;
    }
    
    .orbit-item {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .orbit-label {
        font-size: 0.5rem;
    }
    
    .stat-bubble {
        padding: 6px 10px;
        min-width: 50px;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-text {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .about-graphic {
        height: 250px;
    }
    
    .tech-growth-animation {
        width: 200px;
        height: 200px;
    }
    
    .central-hub {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .orbit-1 {
        width: 80px;
        height: 80px;
    }
    
    .orbit-2 {
        width: 120px;
        height: 120px;
    }
    
    .orbit-3 {
        width: 160px;
        height: 160px;
    }
    
    .orbit-item {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .orbit-label {
        font-size: 0.45rem;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: rgba(26, 11, 46, 0.5);
    color: #ffffff;
}

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

.portfolio-item {
    background: rgba(45, 27, 78, 0.6);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: #ffffff;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff4569, #ff1744);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.portfolio-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.portfolio-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: rgba(26, 11, 46, 0.3);
    color: #ffffff;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: #ff1744;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: rgba(45, 27, 78, 0.4);
    color: #ffffff;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff1744;
    background: rgba(45, 27, 78, 0.6);
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #4a2c6a 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 23, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 207, 232, 0.05) 0%, transparent 50%);
    animation: footerBackground 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes footerBackground {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
    background: linear-gradient(45deg, #ffffff, #ff1744, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: footerTitleShimmer 3s ease-in-out infinite;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ff4569;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff1744, #ff4569);
    transition: width 0.3s ease;
}

.footer-section h4:hover::after {
    width: 100%;
}

@keyframes footerTitleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

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

.footer-section ul li {
    position: relative;
    transition: all 0.3s ease;
}

.footer-section ul li::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: #ff1744;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.footer-section ul li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 5px;
}

.footer-section ul li a:hover {
    color: #ff1744;
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #374151, #4b5563);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    font-size: 1.2rem;
}

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

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: linear-gradient(135deg, #ff1744, #ff4569);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 23, 68, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Individual social media colors */
.social-links a:nth-child(1):hover {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-links a:nth-child(2):hover {
    background: linear-gradient(135deg, #1da1f2, #42a5f5);
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.4);
}

.social-links a:nth-child(3):hover {
    background: linear-gradient(135deg, #0077b5, #42a5f5);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

.social-links a:nth-child(4):hover {
    background: linear-gradient(135deg, #e4405f, #fd1d1d);
    box-shadow: 0 10px 25px rgba(228, 64, 95, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 23, 68, 0.2);
    color: #9ca3af;
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(255, 23, 68, 0.1), transparent);
    background-size: 200% 100%;
    animation: footerBottomShimmer 4s ease-in-out infinite;
}

@keyframes footerBottomShimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.footer-bottom p {
    position: relative;
    transition: all 0.3s ease;
}

.footer-bottom p:hover {
    color: #ff1744;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
    transform: scale(1.02);
    cursor: pointer;
}

/* Footer Animation Keyframes */
@keyframes socialPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes socialRipple {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes socialParticleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--endX), var(--endY)) scale(0);
        opacity: 0;
    }
}

@keyframes confettiFall {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--endX), var(--endY)) scale(0);
        opacity: 0;
    }
}

/* Responsive Design - Tablets and small screens */
@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 18px;
    }

    .nav-logo h2 {
        font-size: 1.25rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        background: rgba(26, 11, 46, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding-top: 5.5rem; /* start below navbar so nothing is cut off */
        padding-right: max(1.5rem, env(safe-area-inset-right));
        padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
        padding-left: max(1.5rem, env(safe-area-inset-left));
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
    }

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

    .nav-menu li {
        margin: 0;
    }

    .nav-menu .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.05rem;
    }
    
    .nav-item.dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(45, 27, 78, 0.5);
        margin-top: 0.25rem;
        margin-left: 0;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        box-shadow: none;
        border: none;
        padding: 0.25rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-link {
        display: block;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
    
    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }
    
    .nav-item.dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

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

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats {
        justify-content: center;
    }

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

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

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

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 16px;
    }

    .nav-logo h2 {
        font-size: 1.1rem;
    }

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

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        text-align: center;
    }

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

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .services,
    .about,
    .portfolio,
    .contact {
        padding: 3rem 0;
    }

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

    .service-card,
    .portfolio-item {
        padding: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card p,
    .service-features li {
        font-size: 0.9rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.75rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .contact-content {
        gap: 2rem;
    }

    .contact-item {
        flex-wrap: wrap;
    }

    .contact-item i {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* prevents zoom on iOS */
    }

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

    .footer-section h3 {
        font-size: 1.25rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-section ul li::before {
        display: none;
    }

    /* Service pages (e.g. ai-services.html) on small screens */
    .service-hero {
        padding: 5rem 0 2.5rem;
    }

    .service-hero h1 {
        font-size: 1.75rem;
    }

    .service-icon-large {
        font-size: 3rem;
    }

    .service-hero-description {
        font-size: 0.95rem;
    }

    .service-details {
        padding: 2.5rem 0;
    }

    .service-main h2 {
        font-size: 1.5rem;
    }

    .service-main h3 {
        font-size: 1.25rem;
    }

    .service-main p {
        font-size: 0.95rem;
    }

    .service-features-list li {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .why-item {
        padding: 1rem;
    }

    .why-item h4 {
        font-size: 1.1rem;
    }

    .why-item p {
        font-size: 0.9rem;
    }

    .service-cta {
        padding: 2.5rem 0;
    }

    .service-cta h2 {
        font-size: 1.5rem;
    }

    .service-cta p {
        font-size: 0.95rem;
    }
}

/* Extra small screens (e.g. iPhone SE, small Android) */
@media (max-width: 375px) {
    .container,
    .nav-container {
        padding: 0 12px;
    }

    .nav-logo h2 {
        font-size: 1rem;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .service-card,
    .portfolio-item {
        padding: 1rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }
}

/* Smooth scrolling and animations */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .portfolio-item {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .service-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .service-card:nth-child(3) {
        animation-delay: 0.4s;
    }

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

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}
