/* --- Design System & Tokens --- */
:root {
    --primary-red: #E63946;
    --primary-red-hover: #D62828;
    --accent-blue: #1D3557;
    --accent-blue-light: #457B9D;
    --white: #F1FAEE;
    --black: #0D1321;
    --gray-light: #E0E1DD;
    
    --font-main: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-med: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

/* --- Typography --- */
.highlight {
    color: var(--primary-red);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* --- UI Components --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Modular Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(241, 250, 238, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(13, 19, 33, 0.05);
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--primary-red);
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-blue-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract shapes for visual flair instead of placeholder images */
.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-red), transparent);
    top: 50px;
    right: 50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-blue), transparent);
    bottom: 50px;
    left: 50px;
    animation-delay: -3s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-blue-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.05); }
}

/* --- Skills Section --- */
.skills {
    padding: 6rem 0;
    background-color: var(--gray-light);
}

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

.skill-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(13, 19, 33, 0.05);
    transition: var(--transition-med);
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 57, 70, 0.2);
    box-shadow: 0 20px 40px rgba(13, 19, 33, 0.1);
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.skill-card p {
    font-size: 0.95rem;
    color: #555;
}

/* Simple CSS geometric icons */
.skill-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sys-admin {
    background: rgba(29, 53, 87, 0.1);
}
.sys-admin::before {
    content: '';
    width: 20px; height: 12px;
    border: 3px solid var(--accent-blue);
    border-radius: 3px;
}

.server-mgmt {
    background: rgba(230, 57, 70, 0.1);
}
.server-mgmt::before {
    content: '';
    width: 20px; height: 24px;
    border: 3px solid var(--primary-red);
    border-radius: 3px;
}
.server-mgmt::after {
    content: '';
    position: absolute;
    width: 14px; height: 3px;
    background: var(--primary-red);
    top: 15px;
}

.linux {
    background: rgba(13, 19, 33, 0.1);
}
.linux::before {
    content: '$_';
    font-weight: 800;
    color: var(--black);
    font-family: monospace;
    font-size: 1.2rem;
}

.ms-office {
    background: rgba(69, 123, 157, 0.1);
}
.ms-office::before {
    content: '';
    width: 22px; height: 22px;
    background: var(--accent-blue-light);
    clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
}

/* --- Contact / CTA --- */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--accent-blue), var(--black));
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title::after {
    background: var(--white);
}

.contact-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- Modular Footer --- */
.footer {
    background-color: var(--black);
    color: var(--gray-light);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer p {
    font-size: 0.9rem;
}

/* --- Responsive Media Queries --- */
@media screen and (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 7rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
        width: 100%;
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition-med);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
}
