/* Ocean Wave Animation Styles */
:root {
    --ocean-blue-dark: #001122;
    --ocean-blue-medium: #003366;
    --ocean-blue-light: #0066cc;
    --ocean-foam: #87ceeb;
    --sunlight-color: #ffd700;
    --text-light: #ffffff;
    --text-secondary: #b0c4de;
    --accent-color: #00bfff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--ocean-blue-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ocean Wave Background */
.ocean-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(
        180deg,
        var(--ocean-blue-dark) 0%,
        var(--ocean-blue-medium) 50%,
        var(--ocean-blue-light) 100%
    );
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23003366"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23003366"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23003366"/></svg>') repeat-x;
    animation: wave-animation 15s ease-in-out infinite;
    transform: translate3d(0, 0, 0);
}

.wave1 {
    animation-delay: 0s;
    opacity: 0.7;
}

.wave2 {
    animation-delay: -5s;
    opacity: 0.5;
    height: 80px;
}

.wave3 {
    animation-delay: -2s;
    opacity: 0.3;
    height: 60px;
}

.wave4 {
    animation-delay: -7s;
    opacity: 0.2;
    height: 40px;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.8);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

/* Sunlight Effect */
.sunlight {
    position: fixed;
    top: -50%;
    left: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 215, 0, 0.1) 30%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: -1;
    animation: sunlight-animation 20s ease-in-out infinite;
}

@keyframes sunlight-animation {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(20px) scale(1.1);
        opacity: 0.5;
    }
}

/* Navigation */
.navbar {
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(0, 17, 34, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 191, 255, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color) !important;
    text-decoration: none;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-color), var(--ocean-foam));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), var(--ocean-blue-light));
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background: transparent;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--ocean-blue-dark);
    transform: translateY(-3px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--ocean-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.3);
}

/* Floating Card */
.floating-card {
    background: rgba(0, 17, 34, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 191, 255, 0.2);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.typing-animation {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.code-line {
    display: block;
    color: var(--ocean-foam);
    margin: 0.5rem 0;
    opacity: 0;
    animation: typewriter 0.5s ease-in-out forwards;
}

@keyframes typewriter {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section.bg-dark {
    background: rgba(0, 17, 34, 0.8);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* About Section */
.about-content h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Tech Stack */
.image-card {
    background: rgba(0, 17, 34, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.tech-item {
    background: rgba(0, 191, 255, 0.1);
    color: var(--accent-color);
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(0, 191, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(0, 191, 255, 0.2);
    transform: translateY(-3px);
}

/* Skills Section */
.skill-category {
    background: rgba(0, 17, 34, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 191, 255, 0.2);
    height: 100%;
}

.skill-category h4 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--ocean-foam));
    width: 0;
    transition: width 2s ease-in-out;
    border-radius: 4px;
}

/* Projects Section */
.project-card {
    background: rgba(0, 17, 34, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 191, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, var(--ocean-blue-medium), var(--ocean-blue-light));
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 17, 34, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

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

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--ocean-blue-dark);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--ocean-foam);
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

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

.tech-tag {
    background: rgba(0, 191, 255, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

/* Contact Section */
.contact-item {
    text-align: center;
    padding: 2rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent-color), var(--ocean-foam));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--ocean-blue-dark);
}

.contact-item h5 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: rgba(0, 17, 34, 0.9);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 191, 255, 0.2);
}

.footer p {
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-card {
        padding: 1.5rem;
    }
    
    .wave {
        height: 60px;
    }
    
    .wave2 {
        height: 50px;
    }
    
    .wave3 {
        height: 40px;
    }
    
    .wave4 {
        height: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Performance Optimizations */
.wave {
    will-change: transform;
}

.floating-card {
    will-change: transform;
}

.hero-title {
    will-change: transform;
}

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

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

::-webkit-scrollbar-track {
    background: var(--ocean-blue-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--ocean-foam);
}