/* =========================================
   1. Global Variables & Color Theme
   ========================================= */
:root {
    /* Background: Deep Navy (Not pitch black) */
    --bg-color: #0a192f;
    
    /* Card Background: Slightly lighter navy to distinguish cards */
    --card-bg: #112240;
    
    /* Text: Soft white for main text, blue-grey for secondary text */
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    
    /* Accent: Bright Green/Cyan (High contrast against navy) */
    --accent: #64ffda;
    
    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

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

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

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

ul {
    list-style: none;
}

/* =========================================
   2. Utility Classes
   ========================================= */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Standard Section Title (Left aligned with underline) */
.section-title {
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    display: flex;
}

/* =========================================
   3. Navigation Bar
   ========================================= */
.navbar {
    display: flex;
    justify-content: flex-end; /* Align links to the right */
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(18, 18, 18, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* =========================================
   4. Hero Section (Design, Logic, & Code)
   ========================================= */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Grid Layout for Hero: Text on Left, Image on Right */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    padding-top: 40px;
}

.hero-text {
    text-align: left;
}

/* Small tag above the big title */
.small-role {
    font-family: var(--font-code);
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Large Hero Title Styles */
.hero-title-large {
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Transparent text with stroke outline */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

/* Hero Image Container and Frame */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-frame {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Glow effect behind the image */
.image-frame::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: var(--accent);
    filter: blur(60px);
    opacity: 0.15;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.profile-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    /* Removed filter: grayscale(100%); to keep image colorful */
    filter: none; 
    transition: transform 0.3s ease;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    margin-right: 15px;
    border: 1px solid var(--accent);
    display: inline-block;
}

.btn.primary {
    background-color: rgba(0, 173, 181, 0.1);
    color: var(--accent);
}

.btn.secondary {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.btn:hover {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* =========================================
   5. About Section
   ========================================= */
.about-content {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px;
    margin-top: 20px;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.skills-list li::before {
    content: "▹ ";
    color: var(--accent);
}

/* =========================================
   6. Projects Section
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--text-main);
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.project-tech {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.project-tech span {
    margin-right: 10px;
}

.project-links a {
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
}

.project-links a:hover {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

/* =========================================
   7. Contact Section (Centered)
   ========================================= */
#contact {
    text-align: center; /* Center everything in this section */
    padding: 120px 0;
    margin-bottom: 50px;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 50px auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.big-btn {
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 4px;
    margin-top: 15px;
}

/* =========================================
   8. Footer
   ========================================= */
footer {
    text-align: center;
    padding: 40px;
    color: #555;
    font-family: var(--font-code);
    font-size: 0.8rem;
}

/* =========================================
   9. Mobile Responsiveness
   ========================================= */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr; /* Stack into single column */
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        order: 2; /* Move text below image on mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-image-container {
        order: 1; /* Move image to top on mobile */
        margin-bottom: 20px;
    }
    
    .hero-title-large {
        font-size: 3rem;
    }
    
    .image-frame {
        max-width: 70%;
        margin: 0 auto;
    }

    .navbar {
        justify-content: center;
        padding: 20px;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
}