:root {
    --bg-color: #050505;
    --text-primary: #f2f2f2;
    --text-secondary: #a0a0a0;
    --accent-color: #6366f1; /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.4);
    --secondary-color: #ec4899; /* Pink */
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Abstract Blobs */
.blob-bg {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(5,5,5,0) 70%);
    top: -20vh;
    left: -20vw;
    z-index: -1;
    filter: blur(80px);
    animation: float 20s infinite alternate;
}

.blob-2 {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(5,5,5,0) 70%);
    top: auto;
    bottom: -20vh;
    left: auto;
    right: -20vw;
    animation: float-reverse 25s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 5vh) scale(1.1); }
}

@keyframes float-reverse {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10vw, -5vh) scale(1.1); }
}

/* Typography elements */
a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

.section-padding {
    padding: 100px 10%;
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    z-index: 1;
    position: relative;
}

.line-decorator {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 4px;
}

/* Reusable Components */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 10%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    bottom: 6px;
    right: -10px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    border-radius: 2px;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.greeting {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 1px;
}

.glitch-text {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
}

.dynamic-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
    height: 40px;
    display: flex;
    align-items: center;
}

.static {
    margin-right: 8px;
}

.typing-text {
    color: var(--text-primary);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 35px;
    background-color: var(--accent-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.abstract-shape {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    animation: morph 8s ease-in-out infinite alternate;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

@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: 50% 50% 50% 50% / 50% 50% 50% 50%; }
}

.main-card {
    width: 320px;
    position: absolute;
    background: rgba(10, 10, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-snippet {
    font-family: 'Fira Code', monospace, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.code-snippet .keyword { color: #ff79c6; }
.code-snippet .class-name { color: #8be9fd; font-style: italic; }
.code-snippet .type { color: #8be9fd; }
.code-snippet .string { color: #f1fa8c; }
.code-snippet .method { color: #50fa7b; }
.code-snippet .function { color: #50fa7b; }

/* About Section */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

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

.about-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.folder-icon {
    color: var(--accent-color);
}

.project-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--text-primary);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.contact-text h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.contact-text span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mt-4 {
    margin-top: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 10%;
    border-top: 1px solid var(--surface-border);
    margin-top: 5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations Trigger Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .section-padding { padding: 80px 5%; }
    .hero { padding: 0 5%; padding-top: var(--nav-height); flex-direction: column; justify-content: center; text-align: center; }
    .hero-content { margin-bottom: 3rem; }
    .cta-group { justify-content: center; }
    .hero-visual { 
        display: flex; 
        justify-content: center; 
        width: 100%; 
        margin-top: 2rem; 
    }
    .abstract-shape { 
        width: 280px; 
        height: 280px; 
    }
    .main-card { 
        width: 250px; 
        padding: 1rem; 
    }
    .code-snippet {
        font-size: 0.75rem;
    }
    
    .glitch-text { font-size: 3.5rem; }
    .dynamic-subtitle { justify-content: center; }
    .hero-desc { margin: 0 auto 2.5rem; }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        height: calc(100vh - var(--nav-height));
        padding-top: 3rem;
        gap: 2rem;
        border-top: 1px solid var(--surface-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .stats-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    
    .contact-methods { flex-direction: column; align-items: center; gap: 1.5rem; }
}

@media screen and (max-width: 480px) {
    .glitch-text { font-size: 2.8rem; }
    .dynamic-subtitle { font-size: 1.5rem; }
    .cta-group { flex-direction: column; }
    .section-title { font-size: 2rem; }
}
