/* --- Base Variables from Upload --- */
:root {
    --bg-color: #FDFBF7; /* Creamy beige */
    --primary-text: #4A3B32; /* Dark Brown/Grey */
    --accent-color: #E6A592; /* Soft Terracotta */
    --accent-dark: #D68C7A;
    --btn-color: #DE8F7C;
    --white-translucent: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(163, 137, 130, 0.15);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* --- Animated Canvas Background --- */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
    opacity: 0.6;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    color: var(--primary-text);
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-text);
    margin: 0 15px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-dark);
}

.btn-portfolio {
    background-color: var(--btn-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-portfolio:hover {
    transform: scale(1.05);
    background-color: var(--accent-dark);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.tagline {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #8d7b75;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 400;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.sub-title {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
    color: #6d5a52;
}

.hero-cards-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.pill-card {
    background-color: #F3EAE3;
    padding: 15px 35px;
    border-radius: 50px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    color: #55443F;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    cursor: default;
    font-size: 0.85rem;
}

.pill-card:hover {
    transform: translateY(-5px);
    background-color: #ebe0d6;
}

/* --- Floating Icons --- */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    top: 0;
    left: 0;
}

.float-item {
    position: absolute;
    background: white;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
    font-size: 1.5rem;
}

.icon-chart { top: 60%; left: 15%; animation-delay: 0s; }
.icon-web { top: 65%; right: 20%; animation-delay: 1s; }
.icon-ai { top: 25%; right: 10%; border-radius: 12px; animation-delay: 2s; font-size: 1rem; font-weight: bold; padding: 10px 15px; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- Sections & Cards --- */
.learn-section, .products-section {
    padding: 5rem 10%;
}

.products-section {
    background: linear-gradient(to bottom, var(--bg-color), #f2e9e9);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary-text);
    margin-bottom: 3rem;
    text-align: center; /* Centered titles for cleaner look */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(163, 137, 130, 0.25);
}

/* Full Width Card for About */
.full-width {
    grid-column: 1 / -1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Service Card Specifics */
.service-icon {
    font-size: 2rem;
    color: var(--accent-dark);
    margin-bottom: 1rem;
}

.glass-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.glass-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Project Card Tags */
.project-desc {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tag {
    display: inline-block;
    background: rgba(255,255,255,0.5);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--primary-text);
    margin-right: 5px;
    font-family: 'Courier New', monospace;
}

.tech-stack-row {
    margin-top: 1rem;
}
.tech-stack-row span {
    display: inline-block;
    background: var(--btn-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9rem;
}

.text-center { text-align: center; }

/* Responsive */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 1rem; }
    .nav-links { gap: 1rem; font-size: 0.9rem; flex-wrap: wrap; justify-content: center; }
    .main-title { font-size: 3rem; }
    .hero-cards-container { flex-direction: column; width: 100%; align-items: center; }
    .pill-card { width: 80%; }
    .section-title { font-size: 2.5rem; }
}