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

:root {
    /* Marine Color Palette */
    --deep-ocean: #0B1426;
    --ocean-blue: #1E3A8A;
    --coral: #FF6B6B;
    --seafoam: #4ECDC4;
    --pearl: #F8FAFC;
    --sunset: #FF8A65;
    --aqua: #00D4FF;
    --emerald: #10B981;
    
    /* Tech Colors */
    --neon-cyan: #00FFFF;
    --electric-blue: #3B82F6;
    --cyber-purple: #8B5CF6;
    --matrix-green: #00FF41;
    
    /* Organic Colors */
    --forest: #22C55E;
    --sage: #9CA3AF;
    --cream: #FEF7ED;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--pearl);
    background: var(--deep-ocean);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Ocean Background */
.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        var(--deep-ocean) 0%, 
        var(--ocean-blue) 50%, 
        var(--seafoam) 100%);
    overflow: hidden;
}

.ocean-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(78, 220, 196, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    animation: waveFlow 20s ease-in-out infinite;
}

@keyframes waveFlow {
    0%, 100% { transform: translateX(0) translateY(0) scale(1); }
    33% { transform: translateX(-20px) translateY(-10px) scale(1.05); }
    66% { transform: translateX(20px) translateY(10px) scale(0.95); }
}

/* Dolphins Animation */
.dolphin {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: dolphinSwim 15s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--aqua));
}

.dolphin-1 {
    top: 20%;
    left: -50px;
    animation-delay: 0s;
}

.dolphin-2 {
    top: 60%;
    right: -50px;
    animation-delay: 5s;
    animation-duration: 18s;
}

.dolphin-3 {
    bottom: 30%;
    left: -50px;
    animation-delay: 10s;
    animation-duration: 12s;
}

@keyframes dolphinSwim {
    0% {
        transform: translateX(-100px) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateX(50vw) translateY(-30px) rotate(10deg);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0) rotate(0deg);
        opacity: 0;
    }
}

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

.tech-particles::before,
.tech-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: particleFloat 10s linear infinite;
}

.tech-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tech-particles::after {
    top: 70%;
    right: 15%;
    animation-delay: 5s;
    background: var(--matrix-green);
    box-shadow: 0 0 10px var(--matrix-green);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(0);
        opacity: 0;
    }
}

/* Organic Vines */
.organic-vines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

.organic-vines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, var(--forest) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--emerald) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--sage) 0%, transparent 50%);
    animation: organicPulse 8s ease-in-out infinite;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 20, 38, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    position: relative;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pearl);
}

.brand-accent {
    color: var(--aqua);
    text-shadow: 0 0 10px var(--aqua);
}

.brand-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--aqua), transparent);
    opacity: 0.5;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

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

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

.nav-link:hover {
    color: var(--aqua);
    text-shadow: 0 0 10px var(--aqua);
}

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

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

.cta-button {
    background: linear-gradient(135deg, var(--aqua), var(--electric-blue));
    color: var(--pearl);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    position: relative;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--aqua);
    margin-bottom: 1.5rem;
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--pearl), var(--aqua));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-highlight {
    display: block;
    font-size: 2rem;
    color: var(--seafoam);
    font-weight: 400;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--aqua);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(248, 250, 252, 0.7);
}

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

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--aqua), var(--electric-blue));
    color: var(--pearl);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--pearl);
    border: 2px solid var(--aqua);
}

.btn-secondary:hover {
    background: var(--aqua);
    color: var(--deep-ocean);
    transform: translateY(-3px);
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: rgba(11, 20, 38, 0.9);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 400px;
    overflow: hidden;
    animation: floatWindow 6s ease-in-out infinite;
}

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

.window-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #FF5F56; }
.control.minimize { background: #FFBD2E; }
.control.maximize { background: #27CA3F; }

.window-title {
    font-size: 0.875rem;
    color: var(--pearl);
    margin-left: 1rem;
}

.code-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-keyword { color: var(--cyber-purple); }
.code-variable { color: var(--aqua); }
.code-string { color: var(--matrix-green); }
.code-property { color: var(--sunset); }

/* Sections */
.expertise, .portfolio, .contact {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--pearl);
}

.section-title i {
    color: var(--aqua);
    margin-right: 0.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 3rem;
}

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

.expertise-card {
    background: rgba(11, 20, 38, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--aqua);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--aqua);
    margin-bottom: 1rem;
}

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

.expertise-card p {
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--aqua);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

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

.portfolio-item {
    background: rgba(11, 20, 38, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.portfolio-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.portfolio-preview {
    font-size: 3rem;
    color: var(--aqua);
    margin-bottom: 1rem;
}

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

.portfolio-item p {
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-link {
    color: var(--aqua);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    color: var(--electric-blue);
    text-shadow: 0 0 10px var(--aqua);
}

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

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pearl);
}

.contact-info p {
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--aqua);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--electric-blue);
    transform: translateX(5px);
}

/* Contact Form */
.contact-form {
    background: rgba(11, 20, 38, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--border-radius);
    color: var(--pearl);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

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

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--aqua), var(--electric-blue));
    color: var(--pearl);
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* Footer */
.footer {
    background: rgba(11, 20, 38, 0.9);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--pearl);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: rgba(248, 250, 252, 0.7);
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: rgba(248, 250, 252, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-highlight {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .code-window {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .expertise-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Parallax Effects */
.hero {
    transform: translateZ(0);
    will-change: transform;
}

.expertise,
.portfolio,
.contact {
    transform: translateZ(0);
    will-change: transform;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
