/* The fallback font if all else fails */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --accent: #38bdf8;
    --accent-hover: #0284c7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
}

/* This single line enables smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-darker);
    background-image: radial-gradient(circle at top right, #1e293b, transparent 40%),
                      radial-gradient(circle at bottom left, #0f172a, transparent 40%);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Header & Profile Image */
header {
    padding: 120px 0 100px 0;
    text-align: center;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

header h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 25px;
    font-weight: 400;
}

.summary-text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-darker);
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Outline Button */
.btn-outline {
    display: inline-block;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--bg-darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* Sections & Grid */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(56, 189, 248, 0.3);
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.demo-btn {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.demo-btn:hover {
    background-color: var(--accent);
    color: var(--bg-darker);
}

/* Contact & Footer */
#contact {
    text-align: center;
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}

#contact p {
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-darker);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================= */
/* FORCED LIGHT MODE & DOCUMENT STYLING      */
/* ========================================= */

/* 1. Nuke the dark backgrounds and gradients */
body, #about, header, main, .container {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important; 
    font-family: 'Aptos', 'Inter', -apple-system, sans-serif !important;
}

/* 2. Force text to charcoal */
body, p, h1, h3, h4, li, .summary-text, .nav-links a, .section-title, .project-card p {
    color: #333333 !important;
}

/* 3. Match the Logo and Systems Engineer Text perfectly */
header h2, .logo {
    color: #0066cc !important; 
    font-family: 'Aptos Display', 'Inter', -apple-system, sans-serif !important;
}

header h2 {
    font-weight: 600 !important; /* Thickens the font so the blue matches optically */
}

/* 4. The Signature Size Fix */
.document-signature {
    width: 180px !important; /* Perfect signature size */
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 30px auto 0 auto !important;
    mix-blend-mode: multiply !important;
}

/* 5. Clean up the Profile Picture */
.profile-img {
    border: 3px solid #e0e0e0 !important; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important; 
}

/* 6. Fix the Navbar */
nav {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important; 
}

/* 7. Light Mode Project Cards */
.project-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.project-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: #0052cc !important;
}

.demo-btn {
    color: #0052cc !important;
    border-color: #0052cc !important;
}

.demo-btn:hover {
    background-color: #0052cc !important;
    color: #ffffff !important;
}

/* Contact Area Fix */
#contact, footer {
    background-color: #fafafa !important;
    border-top: 1px solid #e0e0e0 !important;
}

/* 8. Light Mode Outline Button ("View My Work") */
.btn-outline {
    border: 2px solid #0066cc !important;
    color: #0066cc !important;
    background: transparent !important;
    display: inline-block !important;
    padding: 12px 32px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-outline:hover {
    background-color: #0066cc !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2) !important;
}
