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

:root {
    /* Enhanced Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --secondary-light: #a78bfa;
    --accent-color: #06b6d4;
    --accent-light: #22d3ee;
    --bg-primary: #0a0a1a;
    --bg-secondary: #111122;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(30, 30, 60, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-accent: #cbd5e1;
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(99, 102, 241, 0.3);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 70%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --blur: blur(20px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    z-index: -2;
    pointer-events: none;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 0 0, 0 0, 60px 60px, 60px 60px; }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
    transition: var(--transition);
}

.logo-img:hover {
    filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.7));
    transform: scale(1.05) rotate(5deg);
}

.logo h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.75rem;
    margin: 0;
    letter-spacing: -0.02em;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: var(--blur);
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 80%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 100% !important;
}

.navbar-brand {
    font-size: 1.5rem !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    margin-right: auto !important;
    padding-left: 0 !important;
}

.navbar-nav {
    margin-left: auto !important;
    padding-right: 0 !important;
}


.navbar.scrolled {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

.navbar-brand img {
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.6));
    transition: all 0.3s ease;
    width: 65px !important;
    height: 65px !important;
    margin-right: 0.75rem !important;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 18px rgba(99, 102, 241, 0.9));
    transform: rotate(5deg) scale(1.05);
}

.nav-link {
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative;
}

/* Desktop navigation with simple hover effects */
@media (min-width: 769px) {
    .nav-link {
        padding: 0.75rem 1.5rem !important;
        position: relative !important;
        color: var(--text-secondary) !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        border-radius: 1px;
        transition: var(--transition);
    }

    .nav-link:hover {
        color: var(--text-primary) !important;
        font-weight: 600 !important;
        background: transparent !important;
        transform: none !important;
    }

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

    /* Active link styling - no permanent underline but can show on hover */
    .nav-link.active {
        color: var(--text-primary) !important;
        font-weight: 600 !important;
        background: transparent !important;
    }

    .nav-link.active::after {
        width: 0;
    }

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

/* Modern Hero Section */
.hero-modern {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    animation: float 6s ease-in-out infinite;
}

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

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

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

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

.hero-content {
    z-index: 2;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* Tech Showcase */
.tech-showcase {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 5;
}

.orb-core {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #6366f1 0%, #8b5cf6 70%, transparent 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 3s ease-in-out infinite;
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.orb-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

.tech-cards {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tech-card {
    position: absolute;
    background: rgba(30, 30, 60, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    cursor: pointer;
    min-width: 100px;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.tech-card:hover::before {
    opacity: 0.5;
}

.tech-card:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.tech-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tech Card Positions */
.card-1 {
    top: 5%;
    left: 20%;
    animation: float-tech 6s ease-in-out infinite;
}

.card-2 {
    top: 10%;
    right: 15%;
    animation: float-tech 7s ease-in-out infinite 1s;
}

.card-3 {
    right: 5%;
    top: 50%;
    animation: float-tech 8s ease-in-out infinite 2s;
}

.card-4 {
    bottom: 15%;
    right: 20%;
    animation: float-tech 6.5s ease-in-out infinite 3s;
}

.card-5 {
    bottom: 10%;
    left: 15%;
    animation: float-tech 7.5s ease-in-out infinite 4s;
}

.card-6 {
    left: 5%;
    top: 45%;
    animation: float-tech 8.5s ease-in-out infinite 5s;
}

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

.connection-line {
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: dash-flow 3s linear infinite;
    opacity: 0.6;
}

/* Scroll Indicator */
.scroll-indicator {
    z-index: 10;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    animation: bounce 2s infinite;
}

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

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-tech {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 60px rgba(99, 102, 241, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 80px rgba(99, 102, 241, 0.8), inset 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -20;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--gradient-primary);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Services Section */
.services {
    background: 
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        var(--bg-secondary);
    position: relative;
    padding: 8rem 0;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

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

.service-card {
    background: var(--bg-glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

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

.service-card:hover::after {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        var(--shadow-glass),
        0 0 40px rgba(99, 102, 241, 0.2);
    border-color: var(--border-glow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    transition: var(--transition);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.service-card:hover .service-icon::before {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.service-icon i {
    font-size: 2.2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

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

.service-features li {
    color: var(--text-accent);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
}

.service-features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    animation: sparkle 2s ease-in-out infinite;
}

.service-card:hover .service-features li {
    color: var(--text-primary);
    transform: translateX(5px);
}

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

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 440px;
    position: relative;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.project-image {
    height: 200px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px 24px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Remove the gradient overlay - it was causing purple tint */

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    border-radius: 24px 24px 0 0;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.4s ease-out;
}

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

.project-link {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-link:hover {
    background: rgba(99, 102, 241, 1);
    transform: scale(1.15);
    color: white;
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-content {
    padding: 1.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
    position: relative;
}

.project-category {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-color);
    padding: 0.35rem 0.9rem;
    border-radius: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 0.25rem;
    display: inline-block;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    min-height: 4rem;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    min-height: 2rem;
    align-items: flex-start;
    padding-top: 0.5rem;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tech-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    z-index: -1;
}

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

.contact-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
    pointer-events: none;
    background: var(--bg-card);
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    font-size: 0.875rem;
    color: var(--primary-color);
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

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

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

.footer-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 3rem 0 2rem 0 !important;
    border-top: none !important;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.footer {
    background: var(--bg-secondary);
    padding: 0 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 4rem;
    }
    
    .hero-graphic {
        width: 400px;
        height: 400px;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Fix hero section mobile layout */
    .hero-modern {
        padding-top: 100px !important; /* Account for fixed navbar */
    }
    
    .hero-content {
        padding: 2rem 1rem !important;
    }
    
    /* Fix premium tech solution badge - center it properly */
    .badge.bg-gradient-primary {
        margin-top: 0 !important;
        margin-bottom: 2rem !important;
        display: block !important;
        width: fit-content !important;
        max-width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
    
    /* Remove mobile animation completely */
    .hero-visual-mobile {
        display: none !important;
    }
    
    .hero-stats {
        order: 2 !important; /* After text content */
    }
    
    .hero-buttons {
        order: 3 !important; /* Last */
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: rgba(17, 17, 34, 0.95);
        backdrop-filter: var(--blur);
        width: 100%;
        text-align: center !important;
        transition: var(--transition);
        box-shadow: var(--shadow-glass);
        padding: 3rem 0;
        border-top: 1px solid var(--border-glass);
        gap: 1rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Target Bootstrap navbar classes for mobile */
    .navbar-nav {
        flex-direction: column !important;
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2rem 0 !important;
    }

    .nav-item {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
    }

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

    .nav-menu a {
        padding: 1rem 0 !important;
        border-radius: 0 !important;
        margin: 0 auto !important;
        text-align: center !important;
        display: flex !important;
        width: 100% !important;
        max-width: none !important;
        font-weight: 500 !important;
        font-size: 1.1rem !important;
        color: var(--text-primary) !important;
        border: none !important;
        background: transparent !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        position: relative !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Also target .nav-link for Bootstrap compatibility */
    .nav-link {
        padding: 1rem 0 !important;
        border-radius: 0 !important;
        margin: 0 auto !important;
        text-align: center !important;
        display: flex !important;
        width: 100% !important;
        max-width: none !important;
        font-weight: 500 !important;
        font-size: 1.1rem !important;
        color: var(--text-primary) !important;
        border: none !important;
        background: transparent !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        position: relative !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .nav-menu a::before {
        display: none !important;
    }

    .nav-menu a::after {
        display: none !important;
    }

    .nav-menu a:hover {
        background: transparent !important;
        color: var(--primary-color) !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* Also apply to .nav-link for Bootstrap compatibility */
    .nav-link::before {
        display: none !important;
    }

    .nav-link::after {
        display: none !important;
    }

    .nav-link:hover {
        background: transparent !important;
        color: var(--primary-color) !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 2rem 0;
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-visual {
        order: -1;
        height: 400px;
        display: none !important; /* Hide desktop animation on mobile */
    }

    .hero-graphic {
        width: 350px;
        height: 350px;
    }

    /* Fix hero stats cards to take full width and proper content sizing */
    .hero-stats {
        margin-bottom: 3rem !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
    }
    
    .hero-stats .col-4 {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
    }
    
    .stat-card {
        background: var(--bg-glass);
        backdrop-filter: blur(15px);
        border: 1px solid var(--border-glass);
        padding: 1rem !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-bottom: 0.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    /* Mobile project card styles - complete restructure to fix skill tags */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
        overflow: visible !important;
    }

    .project-card {
        margin: 0 auto;
        max-width: 350px;
        height: auto !important;
        min-height: unset !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        background: var(--bg-card);
        border-radius: var(--border-radius);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        text-align: center; /* Center all text by default */
    }

    .project-image {
        height: 180px !important;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        overflow: hidden;
        flex-shrink: 0;
    }

    .project-content {
        padding: 1.5rem 1.25rem !important;
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1;
        position: relative !important;
        overflow: visible !important;
        text-align: center !important; /* Center content */
        align-items: center !important; /* Center align items */
    }

    .project-category {
        margin-bottom: 0.75rem !important;
        align-self: center !important;
    }

    .project-content h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.8rem !important;
        color: var(--text-primary);
        line-height: 1.3;
        display: block;
        width: 100%;
        text-align: center !important;
        font-weight: 700 !important;
    }

    .project-content p {
        font-size: 0.9rem !important;
        text-align: center !important;
        margin-bottom: 1.2rem !important;
        color: var(--text-secondary);
        line-height: 1.5 !important;
        display: block;
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        max-width: 100% !important;
    }

    .project-links {
        gap: 1rem;
        margin-bottom: 1rem !important;
        display: flex;
        justify-content: center;
    }

    .project-link {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* Fix tech tags to stay within card boundaries and center them */
    .project-tech {
        margin-top: auto !important;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        width: 100% !important;
        overflow: visible !important;
        justify-content: center !important; /* Center tech tags */
        align-items: center !important;
    }

    .tech-tag {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
        border-radius: 12px !important;
        background: rgba(99, 102, 241, 0.15) !important;
        color: var(--primary-color) !important;
        border: 1px solid rgba(99, 102, 241, 0.2) !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Center align services content */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        text-align: center !important;
    }
    
    .service-card .service-icon {
        margin: 0 auto 1.5rem auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .service-card h3,
    .service-card p,
    .service-card ul {
        text-align: center !important;
    }
    
    .service-card ul {
        list-style: none !important;
        padding: 0 !important;
    }
    
    .service-card ul li {
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

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

    /* Projects section mobile fixes */
    .projects {
        overflow: visible !important;
        padding: 3rem 0 !important;
    }
    
    .projects .container {
        overflow: visible !important;
    }

    /* Center contact section content */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center !important;
    }
    
    .contact-info {
        text-align: center !important;
    }
    
    .section-title {
        text-align: center !important;
    }
    
    .contact-description {
        text-align: center !important;
    }
    
    .contact-details {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    
    .contact-item {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .social-section {
        text-align: center !important;
    }
    
    .social-section h4 {
        text-align: center !important;
        margin-bottom: 1.5rem !important;
    }
    
    .social-links {
        display: flex !important;
        justify-content: center !important;
        gap: 1rem !important;
    }
    
    /* Center send message button */
    .contact-form {
        text-align: center !important;
    }
    
    .contact-form button {
        display: block !important;
        margin: 2rem auto 0 auto !important;
        text-align: center !important;
    }

    .logo h2 {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }

    .tech-card {
        padding: 1rem;
        font-size: 0.75rem;
    }

    .tech-card i {
        font-size: 1.5rem;
    }
    
    /* Hide ALL scrollbars on mobile - most aggressive approach */
    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    
    html {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    html::-webkit-scrollbar {
        display: none !important;
    }
    
    body {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        overflow-x: hidden !important;
    }
    
    body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        background: transparent !important;
    }
    
    .container,
    .container-fluid {
        overflow-x: hidden !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .col-4,
    .col-lg-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Reduce gaps between sections on mobile */
    .projects {
        padding-bottom: 2rem !important;
        margin-bottom: 0 !important;
    }
    
    .contact {
        padding-top: 2rem !important;
        margin-top: 0 !important;
    }
    
    section {
        padding: 3rem 0 !important;
    }


@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

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

    .hero-graphic {
        width: 280px;
        height: 280px;
    }

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

    .tech-card {
        padding: 0.75rem;
    }

    .orb-core {
        width: 80px;
        height: 80px;
    }

    .ring-1 { width: 110px; height: 110px; }
    .ring-2 { width: 140px; height: 140px; }
    .ring-3 { width: 170px; height: 170px; }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Comprehensive Responsive Design */

/* Ultra-wide screens (TV screens, large monitors) */
@media (min-width: 1920px) {
    .tech-showcase {
        height: 700px;
    }
    
    .central-orb {
        width: 180px;
        height: 180px;
    }
    
    .orb-pulse {
        width: 240px;
        height: 240px;
    }
    
    .tech-card {
        padding: 2rem;
        font-size: 1.1rem;
        min-width: 140px;
    }
    
    .tech-card i {
        font-size: 3.5rem;
    }
    
    .navbar-brand img {
        width: 70px;
        height: 70px;
    }
    
    .navbar-brand span {
        font-size: 2.5rem !important;
    }
    
    .hero-modern {
        min-height: 100vh;
    }
}

/* Large desktop screens */
@media (min-width: 1440px) and (max-width: 1919px) {
    .tech-showcase {
        height: 600px;
    }
    
    .central-orb {
        width: 150px;
        height: 150px;
    }
    
    .orb-pulse {
        width: 200px;
        height: 200px;
    }
    
    .tech-card {
        padding: 1.75rem;
        font-size: 1rem;
        min-width: 120px;
    }
    
    .tech-card i {
        font-size: 3rem;
    }
    
    .navbar-brand img {
        width: 60px;
        height: 60px;
    }
    
    .navbar-brand span {
        font-size: 2.2rem !important;
    }
}

/* Standard desktop screens */
@media (min-width: 1200px) and (max-width: 1439px) {
    .tech-showcase {
        height: 500px;
    }
    
    .central-orb {
        width: 120px;
        height: 120px;
    }
    
    .orb-pulse {
        width: 160px;
        height: 160px;
    }
    
    .tech-card {
        padding: 1.5rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .tech-card i {
        font-size: 2.5rem;
    }
    
    .navbar-brand img {
        width: 55px;
        height: 55px;
    }
    
    .navbar-brand span {
        font-size: 2rem !important;
    }
}

/* Tablet landscape */
@media (min-width: 992px) and (max-width: 1199px) {
    .tech-showcase {
        height: 450px;
    }
    
    .central-orb {
        width: 100px;
        height: 100px;
    }
    
    .orb-pulse {
        width: 140px;
        height: 140px;
    }
    
    .tech-card {
        padding: 1.25rem;
        font-size: 0.85rem;
        min-width: 90px;
    }
    
    .tech-card i {
        font-size: 2.2rem;
    }
    
    .navbar-brand img {
        width: 50px;
        height: 50px;
    }
    
    .navbar-brand span {
        font-size: 1.8rem !important;
    }
    
    .floating-shape {
        opacity: 0.8;
    }
}

/* Tablet portrait */
@media (min-width: 768px) and (max-width: 991px) {
    .tech-showcase {
        height: 400px;
    }
    
    .central-orb {
        width: 80px;
        height: 80px;
    }
    
    .orb-pulse {
        width: 120px;
        height: 120px;
    }
    
    .tech-card {
        padding: 1rem;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .tech-card i {
        font-size: 2rem;
    }
    
    .navbar-brand img {
        width: 45px;
        height: 45px;
    }
    
    .navbar-brand span {
        font-size: 1.7rem !important;
    }
    
    .floating-shape {
        opacity: 0.6;
    }
    
    .hero-modern {
        padding: 4rem 0;
    }
}

/* Mobile landscape */
@media (min-width: 576px) and (max-width: 767px) {
    .tech-showcase {
        height: 350px;
    }
    
    .central-orb {
        width: 70px;
        height: 70px;
    }
    
    .orb-pulse {
        width: 100px;
        height: 100px;
    }
    
    .tech-card {
        padding: 0.75rem;
        font-size: 0.75rem;
        min-width: 70px;
    }
    
    .tech-card i {
        font-size: 1.8rem;
    }
    
    .navbar-brand img {
        width: 40px;
        height: 40px;
    }
    
    .navbar-brand span {
        font-size: 1.5rem !important;
    }
    
    .floating-shape {
        opacity: 0.4;
    }
    
    /* Adjust tech card positions for mobile */
    .card-1 { top: 8%; left: 15%; }
    .card-2 { top: 12%; right: 10%; }
    .card-3 { right: 8%; top: 45%; }
    .card-4 { bottom: 18%; right: 15%; }
    .card-5 { bottom: 12%; left: 10%; }
    .card-6 { left: 8%; top: 40%; }
}

/* Mobile portrait */
@media (max-width: 575px) {
    .tech-showcase {
        height: 300px;
    }
    
    .central-orb {
        width: 60px;
        height: 60px;
    }
    
    .orb-pulse {
        width: 90px;
        height: 90px;
    }
    
    .tech-card {
        padding: 0.5rem;
        font-size: 0.7rem;
        min-width: 60px;
    }
    
    .tech-card i {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
    
    .navbar-brand span {
        font-size: 1.4rem !important;
    }
    
    .floating-shape {
        opacity: 0.3;
    }
    
    .hero-modern {
        padding: 3rem 0;
    }
    
    /* Compact tech card positions for small screens */
    .card-1 { top: 10%; left: 12%; }
    .card-2 { top: 15%; right: 8%; }
    .card-3 { right: 12%; top: 42%; }
    .card-4 { bottom: 20%; right: 12%; }
    .card-5 { bottom: 15%; left: 8%; }
    .card-6 { left: 12%; top: 38%; }
    
    /* Hide some floating shapes on very small screens */
    .shape-3, .shape-4 {
        display: none;
    }
}

/* Smartwatch and very small screens */
@media (max-width: 320px) {
    .tech-showcase {
        height: 250px;
    }
    
    .central-orb {
        width: 50px;
        height: 50px;
    }
    
    .orb-pulse {
        width: 75px;
        height: 75px;
    }
    
    .tech-card {
        padding: 0.4rem;
        font-size: 0.6rem;
        min-width: 50px;
    }
    
    .tech-card i {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        width: 30px;
        height: 30px;
    }
    
    .navbar-brand span {
        font-size: 1.2rem !important;
    }
    
    .floating-shape {
        opacity: 0.2;
    }
    
    /* Hide most floating shapes on smartwatch screens */
    .shape-2, .shape-3, .shape-4 {
        display: none;
    }
    
    /* Simplify tech card layout */
    .card-1 { top: 15%; left: 15%; }
    .card-2 { top: 20%; right: 15%; }
    .card-3 { right: 15%; top: 50%; }
    .card-4 { bottom: 25%; right: 15%; }
    .card-5 { bottom: 20%; left: 15%; }
    .card-6 { left: 15%; top: 45%; }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .orb-core {
        box-shadow: 
            0 0 120px rgba(99, 102, 241, 0.6),
            inset 0 0 60px rgba(255, 255, 255, 0.1);
    }
    
    .tech-card {
        backdrop-filter: blur(25px);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .tech-showcase {
        height: 350px;
    }
    
    .hero-modern {
        padding: 2rem 0;
    }
    
    .floating-shape {
        opacity: 0.5;
    }
}

/* Dark mode preference support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a1a;
        --bg-secondary: #111122;
        --text-primary: #ffffff;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .orb-core,
    .orb-pulse,
    .tech-card {
        animation: none !important;
    }
    
    .tech-card:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .floating-shape,
    .orb-pulse,
    .hero-background-elements {
        display: none;
    }
    
    .tech-showcase {
        height: auto;
    }
    
    .navbar {
        position: static;
        background: transparent !important;
    }
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Dynamic Projects Styles */
.project-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 0.6;
}

.project-overlay {
    z-index: 10;
}

/* Placeholder for no projects */
.placeholder-content {
    padding: 60px 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.placeholder-content i {
    opacity: 0.5;
    color: var(--text-secondary);
}

.placeholder-content h4 {
    margin-bottom: 10px;
    opacity: 0.7;
    color: var(--text-secondary);
}

.placeholder-content p {
    opacity: 0.6;
    color: var(--text-secondary);
}
}