:root {
    --bg-dark: #0a0a0f;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #8a2387;
    --accent-glow: rgba(0, 242, 254, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    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;
    position: relative;
}

/* Background Animated Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}
.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}
.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}
.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Common Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

h2.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}
h2.section-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--primary);
}
.btn-secondary:hover {
    background: rgba(0, 242, 254, 0.1);
    transform: translateY(-2px);
}

.btn-primary.small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}
.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    display: inline-block;
}
.btn-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.btn-text:hover::after {
    width: 100%;
}

.w-full { width: 100%; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-light);
    letter-spacing: 1px;
}
.logo span { color: var(--primary); }
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary); }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
.hero-text { flex: 1; }
.greeting {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
/* Glitch Effect */
.glitch {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: white;
}
.subtitle {
    font-size: 2.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.subtitle span {
    color: var(--text-light);
}
.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-cta {
    display: flex;
    gap: 1.5rem;
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 4px solid var(--glass-border);
    position: relative;
    z-index: 2;
    animation: morph 8s ease-in-out infinite;
    background-color: #2a2a35; /* placeholder color */
}
.image-backdrop {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    opacity: 0.5;
    filter: blur(20px);
    animation: morph 8s ease-in-out infinite reverse;
}
@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.tech-stack h3 {
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
}
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.skill-tag {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 242, 254, 0.2);
    transition: var(--transition);
}
.skill-tag:hover {
    background: var(--primary);
    color: var(--bg-dark);
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.stat-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-label {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    padding: 2.5rem 2rem;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--text-muted);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 254, 0.3);
}
.project-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #1a1a24;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.project-card:hover .project-img img {
    transform: scale(1.05);
}
.project-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}
.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}
.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.project-tags span {
    font-size: 0.8rem;
    color: var(--secondary);
    background: rgba(79, 172, 254, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Contact */
.contact-section {
    text-align: center;
}
.contact-desc {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    text-align: left;
}
.form-group {
    margin-bottom: 1.5rem;
}
input, textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin-top: 4rem;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
}
.footer-logo span { color: var(--primary); }
.social-links {
    display: flex;
    gap: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}
.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}
.fade-in-left {
    animation: fadeInLeft 1s ease forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scroll Fade utility */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }
    .glitch { font-size: 3.5rem; }
    .subtitle { font-size: 1.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .image-wrapper {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        right: 0;
    }
    .mobile-toggle {
        display: flex;
        z-index: 101;
    }
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    h2.section-title { font-size: 2.5rem; }
}
