/* --- Root Variables & Base Resets --- */
:root {
    --bg-main: #0a192f;
    --bg-surface: #112240;
    --bg-surface-light: #233554;
    --accent: #64ffda;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --font-stack: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.6;
}

/* --- Layout & Sections --- */
.section {
    padding: 100px 10%;
}

.bg-light {
    background-color: #0d2242;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin-top: 10px;
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 10%;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

.nav-btn {
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--accent) !important;
}

.nav-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* --- Hero Showcase --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    padding-top: 80px;
}

.hero-text .intro {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.hero-text .description {
    max-width: 540px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 45px;
}

/* --- Interactive Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-main);
}

.btn-primary:hover {
    background-color: #4cd6b4;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--accent);
    color: var(--accent);
    margin-top: 30px;
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* --- Project Grid Cards --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.card-image {
    height: 180px;
    width: 100%;
    opacity: 0.7;
}

.bg-blue { background: linear-gradient(135deg, #1e3c72, #2a5298); }
.bg-purple { background: linear-gradient(135deg, #654ea3, #eaafc8); }
.bg-green { background: linear-gradient(135deg, #11998e, #38ef7d); }

.card-content {
    padding: 25px;
}

.card-content h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.tags span {
    font-size: 0.8rem;
    background-color: var(--bg-surface-light);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- Technical Skills Layout --- */
.skills-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.skill-category {
    flex: 1;
    min-width: 250px;
    background-color: var(--bg-surface);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--accent);
}

.skill-category h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.skill-category li::before {
    content: '▹';
    color: var(--accent);
    margin-right: 10px;
}

/* --- Footer Elements --- */
.footer {
    padding: 80px 10% 30px 10%;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer p {
    color: var(--text-secondary);
}

.footer-bottom {
    margin-top: 80px;
    border-top: 1px solid var(--bg-surface-light);
    padding-top: 20px;
    font-size: 0.85rem;
}

/* --- Fully Responsive Breakpoints --- */
@media (max-width: 768px) {
    .navbar { padding: 20px 5%; }
    .nav-links { display: none; } /* Standard implementation requires a mobile toggle menu */
    .section { padding: 60px 5%; }
    .hero { padding: 0 5%; padding-top: 100px; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text h2 { font-size: 2.2rem; }
    .skills-container { flex-direction: column; }
}
