 :root {
    /* 🌤️ Vibrant Sky & Sea Palette */
    --sky-vibrant: #38bdf8;
    --sky-light: #90d3ff;
    --sea-bright: #22d3ee;
    --ocean-deep: #083344;
    --electric-blue: #0ea5e9;
    --aqua-mist: #99f6e4;
    --sun-bright: #fbbf24;
    --glass-white: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-main: #0f172a;
    --text-muted: #475569;
    --nature-gradient: linear-gradient(135deg, #0ea5e9, #22d3ee);
    --surface-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.15);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #46c6f0 0%, #ffffff 50%, #00f2ff 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Global Utility ── */
.lao-text {
    display: block;
    color: var(--electric-blue);
    font-size: 0.9em;
    margin-top: 0.5rem;
}

/* 🌊 Animated Ocean Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* ── Header ── */
header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(to right, #0ea5e9, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1px;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--electric-blue);
    cursor: pointer;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nature-gradient);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--electric-blue);
}

/* ── Hero Section ── */
.hero {
    padding: 12rem 0 8rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-items: center;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

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

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

.profile-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.profile-container {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    cursor: pointer;
}

.profile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ocean-deep);
    margin: 0;
    letter-spacing: -0.5px;
}

.profile-status {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.profile-status i {
    color: var(--electric-blue);
    margin-right: 4px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981; /* Emeral/Green */
}

.status-indicator i {
    font-size: 0.5rem;
    color: #10b981;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    position: relative;
    z-index: 2;
    background: #f8fafc;
    transition: var(--transition-smooth);
}

.profile-container:hover .profile-img {
    transform: rotate(5deg) scale(1.05);
}

.profile-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 45px;
    background: linear-gradient(45deg, #0ea5e9, #22d3ee);
    filter: blur(25px);
    opacity: 0.3;
    z-index: 1;
    animation: orbit 10s linear infinite;
}

@keyframes orbit {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.hero-badge {
    background: rgba(14, 165, 233, 0.08);
    color: var(--electric-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--ocean-deep);
    letter-spacing: -3px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, #0ea5e9, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    font-weight: 400;
}

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

/* ── Hero Visual ── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

.visual-inner {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.1);
    z-index: 5;
    animation: floating 4s ease-in-out infinite;
}

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

.projects-card {
    bottom: 10%;
    right: 0;
    animation-delay: 1s;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: var(--nature-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ocean-deep);
    line-height: 1;
}

.stat-txt {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.abstract-shape {
    position: relative;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: shapeMorph 8s ease-in-out infinite alternate;
    border: 2px solid rgba(14, 165, 233, 0.1);
}

.shape-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--sky-vibrant) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0.2;
    z-index: -1;
}

.shape-content .main-icon {
    font-size: 5rem;
    color: var(--electric-blue);
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.3));
}

.floating-icons i {
    position: absolute;
    font-size: 1.8rem;
    color: var(--electric-blue);
    opacity: 0.4;
    animation: iconFloat 6s ease-in-out infinite;
    top: var(--t);
    left: var(--l);
    animation-delay: var(--d);
}

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

@keyframes shapeMorph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

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

/* ── Tech Wall ── */
.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    perspective: 1000px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tech-group {
    margin-bottom: 0.8rem;
}

.tech-group-title {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tech-pill {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tech-pill i {
    font-size: 1.4rem;
}

.tech-pill span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ocean-deep);
}

.tech-pill:hover {
    transform: translateY(-5px);
    background: #fff;
    border-color: var(--electric-blue);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.1);
}

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

/* ── Buttons ── */
.btn {
    background: var(--nature-gradient);
    color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 16px;
    font-weight: 700;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(14, 165, 233, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
    padding: 1rem 2.2rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: var(--electric-blue);
    color: #fff;
}

.btn-full {
    width: 100%;
    border: none;
    justify-content: center;
}

/* ── Sections ── */
section {
    padding: 8rem 0;
}

.skills-section, .projects-section, .contact-section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--ocean-deep);
    letter-spacing: -1.5px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 5rem;
    font-size: 1.1rem;
}

/* ── Skills ── */
.skill-tag {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Projects ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    background: #fff;
    box-shadow: var(--surface-shadow);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: #f0f9ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--electric-blue);
    margin-bottom: 2rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

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

.btn-sm, .btn-sm-outline {
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    background: var(--text-main);
    color: #fff;
}

.btn-sm-outline {
    border: 1.5px solid #e2e8f0;
    color: var(--text-muted);
}

.btn-sm:hover, .btn-sm-outline:hover {
    transform: translateY(-2px);
}

/* ── Contact ── */
.contact-box {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}


input, textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    margin-bottom: 1.5rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* ── Rate Dots ── */
.rate-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rate-dots { display: flex; gap: 6px; }
.rate-dot { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.rate-dot.available { background: var(--electric-blue); }
.rate-dot.used { background: #f87171; }

/* ── Footer ── */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── Responsive ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-feedback {
    margin-top: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.cooldown-message {
    margin-top: 0.5rem;
    color: #f87171;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .container {
        padding: 0 4rem;
    }

    .hero {
        padding-top: 10rem;
    }

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

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

    .profile-header {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .profile-text {
        align-items: center;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

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

    .contact-box {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1.5px;
    }

    .profile-container {
        width: 140px;
        height: 140px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn, .btn-outline {
        width: 100%;
        justify-content: center;
    }

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