/* Premium Dark Portfolio - Navy & Cyan Theme */
:root {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-tertiary: #94A3B8;
    --accent-cyan: #06B6D4;
    --accent-cyan-light: #22D3EE;
    --accent-gold: #F59E0B;
    --accent-gold-light: #FBBF24;
    --accent-emerald: #10B981;
    --gradient-primary: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
    --gradient-secondary: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-mesh: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 50%, #F59E0B 100%);
    --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.3);
    --shadow-gold: 0 0 40px rgba(245, 158, 11, 0.3);
}

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

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;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 120px 0; position: relative; }

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(50px, -50px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.nav-brand {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-cyan);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.hero-name {
    font-family: 'Syne', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-mesh);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease 0.5s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeInUp 0.6s ease 0.7s backwards;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto 4rem;
}

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

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

.highlight-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.highlight-card i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.highlight-card p {
    color: var(--text-tertiary);
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
}

.work-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.work-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.work-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-cyan);
    backdrop-filter: blur(10px);
}

.work-content {
    padding: 2rem;
}

.work-category {
    font-size: 0.85rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.work-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.work-description {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

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

.skill-category {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.skill-category:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-category-header i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.skill-category-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-info {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-item {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: 0.3s;
}

.contact-item a:hover {
    color: var(--accent-cyan-light);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.footer p {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

#footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

#footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: 0.3s;
}

#footer-links a:hover {
    color: var(--accent-cyan);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow-glow);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Hero with Image Layout */
.hero-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease 0.4s backwards;
}

.profile-image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 2;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(40px);
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

/* About Section with Image */
.about-flex {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-image-container {
    position: relative;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s ease;
}

.about-photo:hover {
    transform: translateY(-10px);
}

.about-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive */
@media (max-width: 968px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
    }
    .nav-menu.active { left: 0; }
    .hero-name { font-size: 4rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .hero-flex {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-image {
        order: -1;
    }
    .profile-image-wrapper {
        width: 300px;
        height: 300px;
    }
    .about-flex {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .section-title { font-size: 3rem; }
    .hero-name { font-size: 3rem; }
    .hero-title { font-size: 2rem; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .profile-image-wrapper {
        width: 250px;
        height: 250px;
    }
}
