:root {
    --bg-color: #0f172a;
    --surface-color: rgba(30, 41, 59, 0.6);
    --surface-hover: rgba(30, 41, 59, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --gradient-1: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Blobs for dynamic look */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.highlight {
    color: var(--accent-primary);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-link {
    color: var(--accent-primary);
    position: relative;
}
.highlight-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-primary);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.highlight-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--accent-primary);
}

.btn-outline {
    border: 2px solid var(--accent-primary);
    color: var(--text-primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 1.5rem;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 1.5rem 0;
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.8);
    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.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}
.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links a {
    font-weight: 500;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}
.nav-links a:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
.hero-content {
    flex: 1;
}
.greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
}
.hero-image-wrapper {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

/* Profile Card */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 350px;
    position: relative;
    overflow: hidden;
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--gradient-1);
    opacity: 0.2;
    z-index: 0;
}
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1;
    margin-bottom: 1.5rem;
    object-fit: cover;
}
.profile-name {
    font-size: 1.8rem;
    z-index: 1;
}
.profile-location {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    z-index: 1;
}

/* About Section */
.about-panel {
    max-width: 800px;
    margin: 0 auto;
}
.about-panel p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.skill-item {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition-medium);
    cursor: pointer;
}
.skill-item:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.skill-item i {
    font-size: 3rem;
}
.skill-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

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

.projects-grid.full-display {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}
.projects-grid.full-display .project-image {
    height: 300px;
}
.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-medium);
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .app-screenshot {
    transform: scale(1.05);
}
.project-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}
.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    text-align: center;
}
.footer-content {
    margin-bottom: 2rem;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}
.footer-logo span {
    color: var(--accent-primary);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.social-links a {
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .subtitle {
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: circle(0 at center top);
        transition: clip-path 0.5s ease-in-out;
    }
    .nav-links.active {
        clip-path: circle(100% at center top);
    }
    .title {
        font-size: 3rem;
    }
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    .projects-grid, .projects-grid.full-display {
        grid-template-columns: 1fr;
    }
}
