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

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --dark-purple: #2d1b69;
    --light-purple: #4c3a8a;
    --accent-purple: #6b46c1;
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #2d1b69 100%);
    --gradient-secondary: linear-gradient(135deg, #2d1b69 0%, #6b46c1 100%);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-accent: #e0e7ff;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 25px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.nav-logo h2 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.8rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 5px rgba(107, 70, 193, 0.3)); }
    100% { filter: drop-shadow(0 0 15px rgba(107, 70, 193, 0.6)); }
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(107, 70, 193, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(45, 27, 105, 0.4) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.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: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.4);
}

.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(-3px);
    box-shadow: 0 15px 40px rgba(107, 70, 193, 0.6);
}

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

.btn-secondary:hover {
    background: var(--accent-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.4);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-card {
    position: absolute;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.floating-card span {
    font-weight: 600;
    color: var(--text-primary);
}

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

.card-2 {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

.hero-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: spherePulse 4s ease-in-out infinite;
}

@keyframes spherePulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--accent-purple);
    border-bottom: 2px solid var(--accent-purple);
    transform: rotate(45deg);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out;
}

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

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

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

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(45, 27, 105, 0.2) 0%, transparent 50%);
}

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

.service-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: cardSlideUp 0.8s ease-out;
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(107, 70, 193, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-primary);
    animation: iconRotate 3s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

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

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

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.service-features span {
    background: rgba(107, 70, 193, 0.2);
    color: var(--text-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* About Section */
.about {
    background: var(--primary-black);
}

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

.about-text {
    animation: slideInLeft 1s ease-out;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(107, 70, 193, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-visual {
    animation: slideInRight 1s ease-out;
}

/* 3D Laptop Styles - Spline Inspired */
.laptop-container {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    cursor: none;
    background: radial-gradient(ellipse at center, rgba(0, 255, 127, 0.05) 0%, transparent 70%);
}

.laptop-3d {
    width: 450px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: rotateX(-10deg) rotateY(15deg) rotateZ(-2deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.laptop-screen {
    width: 450px;
    height: 280px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 12px 12px 4px 4px;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: bottom center;
    transform: rotateX(-25deg);
    border: 8px solid #2a2a2a;
    border-bottom: 4px solid #2a2a2a;
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.8),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 80px rgba(0, 0, 0, 0.9),
        inset 0 4px 20px rgba(255, 255, 255, 0.02);
}

.screen-bezel {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #0a0a0a, #000000);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 2px solid #1a1a1a;
}

.webcam {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #333 30%, #000 70%);
    border-radius: 50%;
    box-shadow: 
        0 0 3px rgba(255, 255, 255, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.screen-content {
    width: calc(100% - 24px);
    height: calc(100% - 32px);
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    border-radius: 6px;
    margin: 16px 12px 16px 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.95);
}

.screen-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 10;
}

.code-terminal {
    width: 100%;
    height: 100%;
    padding: 15px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    color: #00ff7f;
    position: relative;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid rgba(0, 255, 127, 0.2);
    margin-bottom: 10px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-buttons span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.terminal-title {
    font-size: 10px;
    color: rgba(0, 255, 127, 0.7);
    font-weight: 500;
}

.terminal-body {
    font-size: 11px;
    line-height: 1.6;
}

.code-line {
    opacity: 0;
    animation: typeIn 3s ease-in-out infinite;
    animation-delay: calc(var(--line-index, 0) * 0.8s);
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
    font-size: 10px;
    margin: 2px 0;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: #00ff7f;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes typeIn {
    0%, 20% { opacity: 0; transform: translateX(-10px); }
    30%, 80% { opacity: 1; transform: translateX(0); }
    90%, 100% { opacity: 0.7; }
}

.code-line:nth-child(1) { --line-index: 0; }
.code-line:nth-child(2) { --line-index: 1; }
.code-line:nth-child(3) { --line-index: 2; }
.code-line:nth-child(4) { --line-index: 3; }

.laptop-base {
    width: 470px;
    height: 35px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a, #0f0f0f);
    border-radius: 0 0 25px 25px;
    position: absolute;
    bottom: -12px;
    left: -10px;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.8),
        0 5px 25px rgba(0, 0, 0, 0.6),
        inset 0 4px 12px rgba(255, 255, 255, 0.08),
        inset 0 -2px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid #333;
    border-top: none;
}

.laptop-hinge {
    position: absolute;
    top: -8px;
    left: 20px;
    right: 20px;
    height: 6px;
    background: linear-gradient(90deg, #333, #222, #333);
    border-radius: 3px;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5);
}

.laptop-keyboard {
    position: absolute;
    top: -28px;
    left: 35px;
    width: 400px;
    height: 22px;
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    padding: 2px;
}

.key-row {
    display: flex;
    gap: 1.5px;
    justify-content: center;
    height: 3px;
}

.function-row {
    margin-bottom: 2px;
}

.bottom-row {
    margin-top: 1px;
}

.key {
    height: 3px;
    background: linear-gradient(145deg, #404040, #2a2a2a, #1a1a1a);
    border-radius: 2px;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        inset 0 0.5px 1px rgba(255, 255, 255, 0.1);
    border: 0.5px solid #555;
    font-size: 4px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'SF Pro', system-ui, sans-serif;
    font-weight: 400;
    text-transform: lowercase;
    overflow: hidden;
}

.key.fn {
    width: 10px;
    font-size: 3px;
    background: linear-gradient(145deg, #333, #222, #111);
}

.key:not(.fn):not(.wide):not(.extra-wide):not(.spacebar):not(.arrow):not(.small) {
    width: 12px;
}

.key.wide {
    width: 18px;
}

.key.extra-wide {
    width: 24px;
}

.key.spacebar {
    width: 80px;
}

.key.arrow {
    width: 10px;
    font-size: 6px;
}

.key.small {
    width: 8px;
    height: 1.5px;
    font-size: 4px;
}

.key-group {
    display: flex;
    flex-direction: column;
    gap: 0.5px;
}

.laptop-trackpad {
    position: absolute;
    top: -20px;
    right: 45px;
    width: 60px;
    height: 15px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a, #0f0f0f);
    border-radius: 8px;
    border: 2px solid #333;
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.trackpad-surface {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.trackpad-click-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.speaker-left, .speaker-right {
    position: absolute;
    top: -25px;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #222, #111, #222);
    border-radius: 2px;
}

.speaker-left {
    left: 50px;
}

.speaker-right {
    right: 50px;
}

.speaker-holes {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 1px,
        rgba(0, 0, 0, 0.5) 1px,
        rgba(0, 0, 0, 0.5) 2px
    );
    border-radius: 2px;
}

.laptop-ports {
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.port {
    width: 8px;
    height: 3px;
    background: #000;
    border-radius: 1.5px;
    border: 1px solid #333;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.port.usb-c {
    border-radius: 1.5px;
}

.port.headphone {
    width: 3px;
    height: 3px;
    border-radius: 50%;
}

.laptop-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 15px;
    background: linear-gradient(135deg, #333, #222);
    border-radius: 2px 2px 6px 6px;
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Portfolio Section */
.portfolio {
    background: var(--secondary-black);
}

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

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: portfolioFadeIn 1s ease-out;
}

@keyframes portfolioFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    position: relative;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    padding: 2rem;
}

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

.portfolio-item:hover {
    transform: translateY(-10px);
}

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

.portfolio-overlay p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-view {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.4);
}

/* Contact Section */
.contact {
    background: var(--primary-black);
}

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

.contact-info {
    animation: slideInLeft 1s ease-out;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 15px;
    border: 1px solid rgba(107, 70, 193, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-purple);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-purple);
    width: 20px;
}

.contact-form {
    animation: slideInRight 1s ease-out;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(107, 70, 193, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--secondary-black);
    border-top: 1px solid rgba(107, 70, 193, 0.2);
}

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

.footer-brand h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

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

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

.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: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-purple);
    transform: translateX(5px);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(107, 70, 193, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 70, 193, 0.2);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 50%;
        transform: translateX(-50%) translateY(-100vh);
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: calc(100% - 20px);
        max-width: 400px;
        text-align: center;
        transition: transform 0.3s ease;
        padding: 2rem 0;
        border-radius: 20px;
        border: 1px solid rgba(107, 70, 193, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(-50%) translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

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

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

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .service-card,
    .portfolio-item {
        margin: 0 10px;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(107, 70, 193, 0.3);
    border-top: 3px solid var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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