:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
    --nav-bg: rgba(5, 5, 5, 0.7);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation - Glassmorphism */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.primary-btn .arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.primary-btn:hover .arrow {
    transform: translateY(3px);
}

/* Sections */
.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    margin: 0 auto 1.5rem auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About / Hero Section */
#about {
    position: relative;
    padding-top: 150px;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Projects Section */
.project-grid-squares {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.project-square {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-square:hover {
    z-index: 10;
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.square-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-square:hover .square-content {
    opacity: 1;
}

.square-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    transform: translateY(20px);
    transition: transform var(--transition);
    letter-spacing: 1px;
}

.project-square:hover .square-content h3 {
    transform: translateY(0);
}

.bg-blue {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.bg-purple {
    background: linear-gradient(135deg, #4c1d95, #8b5cf6);
}

.bg-pink {
    background: linear-gradient(135deg, #831843, #ec4899);
}

.bg-green {
    background: linear-gradient(135deg, #065f46, #10b981);
}

.bg-orange {
    background: linear-gradient(135deg, #9a3412, #f97316);
}

.bg-teal {
    background: linear-gradient(135deg, #115e59, #14b8a6);
}

/* Contact Section */
.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 4rem;
    backdrop-filter: blur(10px);
    text-align: center;
}

.contact-info .section-title {
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.contact-details li {
    display: flex;
    align-items: center;
}

.contact-details span {
    font-weight: 600;
    width: 60px;
    color: var(--text-color);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
    background-color: #020202;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand span {
    color: var(--primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.icp-info a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.icp-info a:hover {
    color: #fff;
}

/* Fluid Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .project-grid-squares {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .project-grid-squares {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.nav-active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}