/* =========================================
   CSS Variables & Theme Setup
========================================= */
:root {
    /* Color Palette */
    --bg-main: #0B0F19;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    
    /* Gradients */
    --accent-gradient: linear-gradient(135deg, #3B82F6, #8B5CF6);
    --accent-gradient-hover: linear-gradient(135deg, #2563EB, #7C3AED);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --max-width: 1200px;
}
/* =========================================
   Reset & Global Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
/* Dynamic Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}
.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.3);
}
.shape-2 {
    bottom: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.3);
    animation-delay: -5s;
}
.shape-3 {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: rgba(236, 72, 153, 0.15);
    animation-delay: -10s;
}
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(10deg); }
}
/* =========================================
   Typography & Utilities
========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}
a {
    text-decoration: none;
    color: inherit;
}
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 20px;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition-medium);
}
.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}
/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-fast);
}
.navbar.scrolled {
    padding: 15px 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo span {
    color: #3B82F6;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
}
.nav-links a:hover::after {
    width: 100%;
}
/* =========================================
   Hero Section
========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}
.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out forwards;
}
.greeting {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: var(--font-body);
}
.name {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #FFF, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.role {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #3B82F6;
    margin-bottom: 1.5rem;
}
.summary {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================
   About Section
========================================= */
.about-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .about-card {
        grid-template-columns: 3fr 2fr;
    }
}
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}
.skill-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #93C5FD;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
/* =========================================
   Projects Section
========================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.project-image {
    height: 200px;
    width: 100%;
    transition: var(--transition-medium);
}
.project-card:hover .project-image {
    transform: scale(1.05);
}
.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.project-link {
    color: #3B82F6;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}
.project-link:hover {
    text-decoration: underline;
}
/* =========================================
   Contact Section
========================================= */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.input-group {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}
@media (min-width: 600px) {
    .input-group {
        flex-direction: row;
    }
}
input, textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}
input:focus, textarea:focus {
    border-color: #3B82F6;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.btn-block {
    width: 100%;
}
/* =========================================
   Footer
========================================= */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-glass);
    margin-top: 4rem;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile fallback, can add hamburger menu in JS if needed */
    }
}
