/* --- Global Styles & Variables --- */
:root {
    --primary-color: #00ACC1; /* A nice teal for Flutter */
    --secondary-color: #007A8A;
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --text-color: #E0E0E0;
    --text-muted-color: #A0A0A0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Utility Classes --- */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
    /* --- ANIMATION --- */
    /* Initial state for scroll-triggered animations */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* --- ANIMATION --- */
/* Final state for scroll-triggered animations (toggled by script.js) */
.section-container.visible {
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    /* --- ANIMATION --- */
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    /* --- ANIMATION --- */
    transform: translateY(-3px); /* Subtle lift effect */
    box-shadow: 0 4px 8px rgba(0, 172, 193, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    /* --- ANIMATION --- */
    transform: translateY(-3px); /* Subtle lift effect */
}


/* --- Header & Navigation --- */
header {
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- This is the updated CSS for the logo --- */

.logo {
    /* 1. Use flexbox to arrange the text vertically */
    display: flex;
    flex-direction: column; 
    
    /* 2. Remove default link styling */
    text-decoration: none;
    
    /* Optional: Adjust line-height to bring them closer together */
    line-height: 1.2;
}

/* 3. Style the main name */
.logo-name {
    color: var(--primary-color); /* Your main theme color */
    font-size: 1.6rem;         /* Make it bigger */
    font-weight: 700;          /* Make it bold */
}

/* 4. Style the subtitle */
.logo-subtitle {
    color: var(--text-color);    /* Make it white */
    font-size: 0.9rem;         /* Make it smaller */
    font-weight: 500;          /* Make it normal weight */
    letter-spacing: 0.7px;     /* Optional: Adds a bit of spacing */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}


/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

/* --- ANIMATION --- */
/* Keyframes define the animation steps */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
    /* --- ANIMATION --- */
    animation: fadeIn 1s ease-out;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    /* --- ANIMATION --- */
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    max-width: 600px;
    margin: 1rem auto;
    /* --- ANIMATION --- */
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    /* --- ANIMATION --- */
    animation: slideUp 0.8s ease-out 0.6s backwards;
}
/* 'backwards' fill-mode makes the element adopt the 'from' state before the animation starts */


/* --- About Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--text-muted-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    background-color: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    font-weight: 600;
    /* --- ANIMATION --- */
    transition: transform 0.3s ease;
}

.skill-item:hover {
    /* --- ANIMATION --- */
    transform: scale(1.1); /* Grow effect on hover */
    color: var(--primary-color);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* --- ANIMATION --- */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    /* --- ANIMATION --- */
    transform: translateY(-10px); /* Lift effect on hover */
    box-shadow: 0 12px 24px rgba(0, 172, 193, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-muted-color);
    margin-bottom: 1rem;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-right: 1.5rem;
}

.project-links a i {
    margin-right: 0.5rem;
}


/* --- Contact Section --- */
#contact {
    text-align: center;
}

.contact-links {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: var(--primary-color);
}

.contact-links a i {
    margin-right: 0.8rem;
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface-color);
    color: var(--text-muted-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    nav ul {
        display: none; /* Simple mobile approach: hide nav links */
    }
}