/* Root Variables - Modern Tech Palette */
:root {
    --bg-color: #0b1120; /* Deep dark blue/slate */
    --bg-light: #1e293b; /* Lighter slate for cards */
    --primary: #38bdf8; /* Sky blue (Flutter-like) */
    --secondary: #818cf8; /* Soft Indigo */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #2dd4bf; /* Teal for highlights */
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.3s ease;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.bg-light {
    background-color: #0f172a; /* Slightly lighter than body main */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--primary);
}

.btn-primary {
    background: var(--gradient);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600 !important; 
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.1), transparent 40%);
}

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

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 800;
}

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

.subtitle {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 500;
}

.description {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.social-hero a {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--text-muted);
}

.social-hero a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    display: inline-block;
}

/* Floating Code Card Animation */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.code-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    width: 380px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ef4444; }
.yellow { background: #eab308; }
.green { background: #22c55e; }

.code-content pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #cbd5e1;
    overflow-x: auto;
}

.keyword { color: #c084fc; }
.class-name { color: #fbbf24; }
.string { color: #a5f3fc; }
.function { color: #60a5fa; }
.type { color: #f472b6; }

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--text-main);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.info-item i {
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Skills Section */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: var(--bg-light);
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-tag:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.folder-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 15px;
}

.project-links a:hover {
    color: var(--text-main);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--accent);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    margin-bottom: 50px;
    width: 100%;
    position: relative;
}

.timeline-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 45%;
    position: relative;
    transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -60px; /* Adjust for line position */
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -60px; /* Adjust for line position */
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary);
}

.date {
    display: block;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Contact */
.contact-box {
    background: linear-gradient(135deg, var(--bg-light), #182235);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 15px 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.social-footer {
    margin-top: 20px;
}

.social-footer a {
    margin: 0 10px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.social-footer a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }
    .hamburger {
        display: block;
        color: var(--text-main);
    }
    .nav-links {
        display: none; /* Add JS toggle later if needed */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active {
        display: flex;
    }
    .hero {
        flex-direction: column-reverse;
        padding-top: 120px;
        text-align: center;
        gap: 50px;
    }
    .hero-content, .hero-buttons, .description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .timeline::before {
        left: 0;
    }
    .timeline-content {
        width: 100%;
        margin-left: 30px !important;
    }
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -39px;
    }
}
