/* Modern Dark Theme Variables */
:root {
    --bg-color: #0f172a;
    --bg-alt-color: #1e293b;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(56, 189, 248, 0.1);
}

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

body {
    font-family: 'Outfit', 'Montserrat', sans-serif !important;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

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

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background-color: #0ea5e9;
}

/* Utility Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-color), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.content a {
    position: relative;
    font-weight: 500;
}

.content a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.content a:hover::after {
    width: 100%;
}

/* Mobile Menu */
@media (max-width: 1024px) {
    .content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 40;
    }

    .content.active {
        right: 0;
    }

    .content ul {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .content a {
        font-size: 1.5rem;
        font-weight: 700;
    }
}

/* Hero Section */
.hero-image-container {
    position: relative;
}

.hero-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

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

/* Skills */
.skill-card {
    background: var(--bg-alt-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

/* Projects */
.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    group: group;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Reviews */
.review-card {
    background: var(--bg-alt-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

/* Contact */
.contact-input {
    background: var(--bg-alt-color);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #3b82f6);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* Burger Menu */
.burger {
    position: relative;
    width: 30px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    display: block;
}

.burger input {
    display: none;
}

.burger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-color);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger span:nth-child(2) {
    top: 0px;
}

.burger span:nth-child(3) {
    top: 9px;
}

.burger span:nth-child(4) {
    top: 18px;
}

.burger input:checked~span:nth-child(2) {
    top: 9px;
    transform: rotate(135deg);
    background: var(--accent-color);
}

.burger input:checked~span:nth-child(3) {
    opacity: 0;
    left: -60px;
}

.burger input:checked~span:nth-child(4) {
    top: 9px;
    transform: rotate(-135deg);
    background: var(--accent-color);
}