
:root {
    --bg-main: #fbfbfd;
    --bg-surface: rgba(255, 255, 255, 0.6);
    --border-glass: rgba(0, 0, 0, 0.1);
    --text-primary: #1d1d1f;
    --text-secondary: #5a5a65;
    
    --accent-blue: #0055ff;
    --accent-purple: #7a22ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    
    --transition-snappy: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* --- Dynamic Background --- */
.dynamic-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.4;
    animation: float 20s infinite alternate var(--transition-snappy);
}

.orb-1 {
    width: 500px; height: 500px;
    background: var(--accent-purple);
    top: -100px; left: -100px;
}

.orb-2 {
    width: 600px; height: 600px;
    background: #004d40;
    bottom: -150px; right: -150px;
    animation-delay: -5s;
}

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

/* --- Glassmorphism Utils --- */
.glassmorphism {
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); 
}


.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--accent-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* --- Typography & Elements --- */
h1, h2, h3 { font-family: 'Outfit', sans-serif; }

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.primary-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    color: var(--accent-blue);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}


.projects-section {
    padding: 5rem 2rem 10rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s var(--transition-snappy), border-color 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08); /* Enhanced hover shadow for light mode */
}

.project-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-snappy);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.05); /* Light mode tag bg */
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
}

.project-name {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

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

/* --- Footer --- */
.footer {
    padding: 0 2rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-content {
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

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

.social-icon {
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--accent-blue);
    transform: translateY(-3px) scale(1.1);
}

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

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

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-desc { font-size: 1rem; }
    .nav-links { display: none; }
}
