/* Modern CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #0b1120;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-hover: rgba(255, 255, 255, 0.1);
    --highlight-color: #ec4899;
    --success-color: #10b981;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

/* Background Animations */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

.blob-2 {
    bottom: -15%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -60px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Reusable Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Portfolio Wrapper */
.portfolio-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 64px;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-radius: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo-mark {
    background: linear-gradient(135deg, var(--primary-color), var(--highlight-color));
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.social-icon {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.social-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
    transform: translateY(-2px);
}

.copy-email-btn {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    gap: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.copy-email-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
    transform: translateY(-2px);
}

.copy-email-btn.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: 60vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    display: inline-block;
    border-color: rgba(99, 102, 241, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(to right, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    /* ~24px */
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 90%;
}

.cta-container {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.primary-btn,
.secondary-btn {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 1em 1.75em;
    border-radius: 0.75em;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.primary-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 0.625rem 1.5625rem -0.3125rem rgba(99, 102, 241, 0.4);
}

.primary-btn:hover {
    transform: translateY(-0.1875em);
    box-shadow: 0 1.25rem 1.875rem -0.625rem rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
}

.primary-btn.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0.625rem 1.5625rem -0.3125rem rgba(16, 185, 129, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
}

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

.hidden {
    display: none !important;
}

/* Decorative Visuals (Right side) */
.hero-visuals {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    position: absolute;
    animation: floatShape 6s infinite alternate ease-in-out;
}

@keyframes floatShape {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

.decorative-card-1 {
    width: 320px;
    padding: 24px;
    z-index: 2;
    background: inset;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.decor-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

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

.dot.red {
    background-color: #ef4444;
}

.dot.yellow {
    background-color: #f59e0b;
}

.dot.green {
    background-color: #10b981;
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.line {
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.w-100 {
    width: 100%;
}

.w-75 {
    width: 75%;
    background: rgba(99, 102, 241, 0.5);
}

.w-60 {
    width: 60%;
    background: rgba(236, 72, 153, 0.5);
}

.w-50 {
    width: 50%;
}

.w-25 {
    width: 25%;
    background: rgba(16, 185, 129, 0.5);
}

.indent-1 {
    margin-left: 20px;
}

.indent-2 {
    margin-left: 40px;
}

.decorative-card-2 {
    width: 250px;
    padding: 24px;
    z-index: 1;
    bottom: 20px;
    right: 0;
    animation-delay: -3s;
    background: rgba(255, 255, 255, 0.03);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsiveness */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 64px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .cta-container {
        justify-content: center;
    }

    .decorative-card-1 {
        display: none;
    }

    .decorative-card-2 {
        position: relative;
        left: 0;
        top: 0;
        margin: 0 auto;
    }

    .hero-visuals {
        display: block;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .hero-title {
        font-size: 2rem;
        /* ~32px */
    }

    .hero-subtitle {
        font-size: 1.25rem;
        /* ~20px */
    }

    .portfolio-wrapper {
        padding: 24px 16px;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
    }

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