/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0a2463;  /* Deep Blue */
    --secondary-color: #3e92cc; /* Bright Blue */
    --accent-color: #d8315b;   /* Magenta */
    --light-bg: #f8f9fa;      /* Light Gray */
    --dark-text: #333;
    --light-text: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--light-text);
    color: var(--dark-text);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--secondary-color); }

/* --- Header & Navigation --- */
.site-header {
    background: var(--light-text);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 90%;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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


/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(10, 36, 99, 0.8), rgba(10, 36, 99, 0.8)), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
}

.hero-section h1 {
    color: var(--light-text);
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #c22b50; /* Darker accent */
    transform: translateY(-2px);
}

/* --- About Section --- */
.about-section {
    background-color: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* --- Projects Section --- */
.projects-section {
    background-color: var(--light-text);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--accent-color);
}

.project-link:hover {
    text-decoration: underline;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
}

.contact-section h2 {
    color: var(--light-text);
}

/* --- Footer --- */
.site-footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 2rem 0;
}

.social-links a {
    color: var(--light-text);
    margin: 0 0.75rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.site-footer p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-section h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }

    .navbar {
        flex-direction: column;
        padding: 0.5rem 0;
    }

    .nav-links {
        margin-top: 0.5rem;
        padding-left: 0; /* remove default ul padding */
    }

    .nav-links li {
        margin: 0 1rem;
    }
}
