:root {
    --primary: #00ffcc;
    --bg: #0b1120;
    --card-bg: rgba(30, 41, 59, 0.6);
    --text: #ffffff;
    --text-muted: #94a3b8;
    --transition: all 0.3s ease;
}

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 20px 0;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo { font-size: 1.6rem; font-weight: 700; text-decoration: none; color: white; }
.logo span { color: var(--primary); }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: white; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

.menu-toggle { display: none; cursor: pointer; font-size: 1.5rem; }

/* Hero Section */
.hero { padding: 160px 0 100px; }
.hero-grid { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }
.hero-img { flex: 1; display: flex; justify-content: center; }

.badge { background: rgba(0, 255, 204, 0.1); color: var(--primary); padding: 5px 15px; border-radius: 50px; font-size: 0.8rem; }
h1 { font-size: 3.5rem; margin: 15px 0; line-height: 1.2; }
.highlight { color: var(--primary); }

.type-container { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 20px; min-height: 1.6em; }
#typewriter { color: var(--primary); font-weight: 600; }

.hero-btns { display: flex; gap: 15px; margin-top: 30px; }
.btn { padding: 12px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: var(--transition); display: inline-block; border: none; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 0 20px rgba(0, 255, 204, 0.4); transform: translateY(-3px); }
.btn-secondary { background: transparent; border: 2px solid var(--primary); color: var(--primary); }

.social-links { display: flex; gap: 20px; margin-top: 30px; }
.social-links a { font-size: 1.5rem; color: var(--text-muted); transition: var(--transition); }
.social-links a:hover { color: var(--primary); }

.blob-wrapper img {
    width: 350px; height: 350px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 6px solid var(--primary);
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 50% 50% 70% 30%; }
}

/* Sections */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.section-title span { color: var(--primary); }

/* Skills */
.skills { padding: 80px 0; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.skill-card { background: var(--card-bg); padding: 30px; text-align: center; border-radius: 15px; transition: var(--transition); border: 1px solid rgba(255,255,255,0.05); }
.skill-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 10px; }
.skill-card:hover { transform: translateY(-10px); border-color: var(--primary); }

/* Projects */
.projects { padding: 80px 0; background: rgba(0,0,0,0.1); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.project-card { background: var(--card-bg); border-radius: 20px; overflow: hidden; transition: var(--transition); }
.project-img img { width: 100%; height: 220px; object-fit: cover; }
.project-info { padding: 25px; }
.p-link { color: var(--primary); text-decoration: none; font-weight: 600; display: block; margin-top: 15px; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.c-card { background: var(--card-bg); padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.c-card i { font-size: 1.5rem; color: var(--primary); }

.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; background: #1e293b; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: white; margin-bottom: 15px;
}

/* Footer */
footer { text-align: center; padding: 40px 0; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.05); }

/* Responsive Design */
@media (max-width: 968px) {
    .hero-grid { flex-direction: column-reverse; text-align: center; }
    .hero-btns { justify-content: center; }
    .social-links { justify-content: center; }
    h1 { font-size: 2.8rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: var(--bg); flex-direction: column; padding: 20px; text-align: center;
    }
    .nav-links.active { display: flex; }
    .blob-wrapper img { width: 260px; height: 260px; }
}

/* Projects Preview - Overlapping Effect */
.projects-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.preview-stack {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 350px;
    margin: 0 auto;
}

.preview-stack img {
    position: absolute;
    width: 80%;
    border-radius: 15px;
    border: 4px solid var(--card-bg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.img-left {
    left: 0;
    top: 0;
    z-index: 1;
    transform: rotate(-5deg);
}

.img-right {
    right: 0;
    bottom: 0;
    z-index: 2;
    transform: rotate(5deg);
}

.preview-stack:hover .img-left {
    transform: rotate(-2deg) translate(-20px, -10px);
}

.preview-stack:hover .img-right {
    transform: rotate(2deg) translate(20px, 10px);
}

.all-projects-btn {
    font-size: 1.1rem;
    padding: 15px 40px;
}

@media (max-width: 768px) {
    .preview-stack { height: 250px; }
}