/* --- Brand Variables --- */
:root {
    --bg-color: #1A1A1B; /* Deep Obsidian */
    --text-color: #F4F4F4; /* Titanium White */
    --accent-green: #889E73; /* Lichen Green */
    --accent-blue: #4A90E2; /* Steel Blue */
    --card-bg: #252526;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* --- Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(26, 26, 27, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

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

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

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    margin-left: 1rem;
}

.secondary-btn:hover {
    background-color: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.outline-btn {
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.outline-btn:hover {
    background-color: var(--accent-green);
    color: var(--bg-color);
}

/* --- Layout & Sections --- */
section {
    padding: 6rem 10% 4rem;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--accent-green);
    bottom: -10px;
    left: 25%;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #2a2a2c 0%, var(--bg-color) 100%);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, var(--accent-green));
    
    /* Vendor-prefixed properties for WebKit browsers */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Standard properties for modern compatibility */
    background-clip: text;
    color: transparent; 
}

.hero-content h2 {
    font-size: 1.5rem;
    color: #aaa;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-content p {
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #ccc;
}

/* --- About Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #ccc;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-bottom: 3px solid var(--accent-blue);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-green);
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.portfolio-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media(min-width: 768px) {
    .portfolio-card {
        flex-direction: row;
    }
}

.portfolio-img {
    flex: 1;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tech-stack {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.portfolio-info p {
    margin-bottom: 2rem;
    color: #ccc;
}

/* --- Experience Timeline --- */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--accent-green);
    padding-left: 2rem;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--accent-green);
    border-radius: 50%;
    left: -2.4rem;
    top: 5px;
}

.timeline-item .date {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-size: 1.3rem;
}

.timeline-item h4 {
    color: #aaa;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 4rem 10% 2rem;
    background-color: #111;
    border-top: 1px solid #333;
}

footer h2 {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: #aaa;
    font-weight: 600;
}

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

footer p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Responsive Media Queries --- */
@media(max-width: 768px) {
    .nav-links {
        display: none; /* In a full build, replace with a JS hamburger menu */
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    section {
        padding: 5rem 5% 3rem;
    }
    
    .secondary-btn {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: max-content;
    }
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-green);
}

.contact-info p {
    margin-bottom: 2rem;
    color: #ccc;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    display: block;
    color: var(--accent-blue);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-socials {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.contact-socials a {
    font-size: 0.9rem;
    color: #aaa;
    border-bottom: 1px solid transparent;
}

.contact-socials a:hover {
    color: var(--accent-green);
    border-bottom: 1px solid var(--accent-green);
}

/* --- Form Styling --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.contact-form .btn {
    width: max-content;
    padding: 1rem 2.5rem;
    border: none;
}

/* --- Refined Footer Styles --- */
.site-footer {
    background-color: #111112; /* Darker than the main background */
    padding: 3rem 10% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #888;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-top {
    margin-bottom: 2rem;
}

.back-to-top {
    font-size: 0.9rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: var(--accent-green);
}

.footer-main {
    margin-bottom: 2.5rem;
}

.footer-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-name span {
    color: var(--accent-green);
}

.footer-tagline {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

.footer-bottom {
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    color: #444;
}

/* --- Animation Classes (Triggered by JS) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}