:root {
    --bg-color: #0B1C2C; /* Midnight Blue */
    --accent-color: #F4D03F; /* Vibrant Yellow */
    --text-primary: #D0E1D4; /* Light Gray Green */
    --text-secondary: #8BA89E;
    --glass-bg: rgba(11, 28, 44, 0.7);
    --glass-border: rgba(208, 225, 212, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background: radial-gradient(circle at top right, #152d42, #0B1C2C);
}

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(244, 208, 63, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    color: #fff;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem !important; /* Override glass-panel padding */
}

.logo a, .logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.page-icon-top {
    width: 300px; /* A larger size for the main page icon */
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem auto; /* Center it horizontally and add margin below */
    display: block; /* To apply margin: auto for centering */
}

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

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

/* Hero Section */
#hero {
    min-height: 80vh; /* Takes up most of the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

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

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 208, 63, 0.3);
}

/* About & Contact Sections */
#about, #contact {
    margin-bottom: 4rem;
}

.contact-link {
    color: var(--accent-color);
    font-size: 1.2rem;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    border-bottom-color: var(--accent-color);
}

/* Projects Section */
#projects {
    margin-bottom: 4rem;
}

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

.project-grid > .project-card:first-child {
    grid-column: 1 / -1; /* Make the first card span all columns */
}

.project-card.coming-soon {
    grid-column: 1 / -1; /* Make the coming-soon card span all columns */
}

.project-card {
    display: flex; /* Make the card a flex container */
    align-items: center; /* Vertically center icon and text */
    gap: 3rem; /* Space between icon and text content */
    transition: transform 0.3s ease;
    border-left: 3px solid transparent;
    background: rgba(11, 28, 44, 0.9); /* A more opaque version of the glass */
    padding: 1.5rem;
    border-radius: 12px; /* A slightly smaller radius than the main panel */
    color: inherit; /* Ensure text color is not the default link blue */
    text-decoration: none; /* Remove underline from link */
}

.project-text-content {
    flex-grow: 1; /* Allow text content to take remaining space */
}

.project-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--accent-color);
}

.project-card h3 {
    margin-bottom: 0.5rem; /* Revert h3 to its original text styling */
}

.project-icon {
    width: 120px; /* Set a fixed width */
    aspect-ratio: 1; /* Ensure height matches width */
    flex-shrink: 0; /* Prevent icon from shrinking */
    border-radius: 50%; /* Still round */
    object-fit: cover; /* Ensure image covers the area nicely */
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--accent-color);
    font-weight: 500;
}

.coming-soon {
    opacity: 0.7;
    border: 1px dashed var(--glass-border);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* Simple mobile hide for now, could be a hamburger later */
    }
    
    nav {
        justify-content: center;
    }

    .project-card {
        flex-direction: column; /* Stack icon and text vertically */
        align-items: center;   /* Center them horizontally */
        text-align: center;    /* Center the text inside the card */
    }

    .project-icon {
        width: 25vw;      /* Set width relative to the viewport */
        max-width: 80px;    /* But cap it at 80px */
        margin-bottom: 0.5rem; /* Add some space below the icon */
    }
}
