:root {
    --primary: #00d2ff;
    --secondary: #9d50bb;
    --bg-dark: #0a0b1e;
    --text-light: #f4f4f4;
    --text-dim: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.obf:empty::before {
    content: '\00a0';
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 200vh;
    /* Allow scrolling to see sticky header */
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #ff0080;
    top: 50%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.2);
    }
}

/* Glassmorphism General Helper */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Typography Helpers */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Floating Header */
header {
    position: sticky;
    top: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.8;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
}

.primary-btn:hover {
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
}

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

.glass-button {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* Sections Styling */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    padding: 8rem 0;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title.text-left {
    text-align: left;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.skills-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Services */

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

.card-icon {
    color: var(--primary);
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    margin-bottom: 1rem;
}

.glass-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    height: 300px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item.large {
    grid-row: span 2;
    height: auto;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

/* Contact */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-container p {
    margin-bottom: 2rem;
    color: var(--text-dim);
}

.form-group {
    margin-bottom: 1rem;
}

input,
textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
}

/* Floating Footer */
footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 1.5rem 2rem;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    opacity: 0.7;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.2);
}

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

.pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.price {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.price .amount {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.pricing-features i {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.4s;
}

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

@media (max-width: 768px) {
    header {
        width: 95%;
        padding: 0.8rem 1.5rem;
        top: 15px;
    }

    .mobile-menu-btn {
        display: flex;
        position: relative;
        top: auto;
        right: auto;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        z-index: 2000;
        cursor: pointer;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent),
            rgba(5, 6, 15, 0.75);
        backdrop-filter: blur(45px);
        -webkit-backdrop-filter: blur(45px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        text-align: center;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: 1px;
        color: white;
        text-decoration: none;
        transition: var(--transition);
        display: inline-block;
        padding: 0.5rem 1rem;
    }

    .nav-links a:hover {
        color: var(--primary);
        transform: scale(1.1);
    }

    .nav-links a::after {
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s;
        margin: 0 auto;
    }

    .nav-links a:hover::after {
        width: 60%;
    }

    /* Animation delays for staggered effect via JS class */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.4s;
    }

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

    .section-title.text-left {
        text-align: center;
    }

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

    footer .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}