/* Color Variables based on your selection */
:root {
    --color-primary-bg: #031716;    /* Very dark green/black */
    --color-secondary-bg: #123524;  /* Dark forest green (for headings/sections) */
    --color-accent-bg: #032F30;     /* Dark teal (for secondary backgrounds) */
    --color-text-main: #f0f0f0;     /* Off-white for readability */
    --color-accent-text: #0C969C;   /* Bright teal (primary accent/links) */
    --color-hover: #0A7075;         /* Medium teal (hover state) */
    --color-button: #274D69;        /* Dark slate blue (button/strong accent) */
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-primary-bg);
    color: var(--color-text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--color-accent-text);
    margin-bottom: 20px;
}

a {
    color: var(--color-accent-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-hover);
}

/* Header & Navigation */
header {
    background: var(--color-secondary-bg);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

nav ul li a {
    padding: 10px 20px;
    font-weight: bold;
    color: var(--color-text-main);
}

nav ul li a:hover {
    color: var(--color-accent-text);
}

/* Button Styling */
.btn {
    display: inline-block;
    background: var(--color-button);
    color: var(--color-text-main);
    padding: 10px 25px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: var(--color-hover);
    color: var(--color-text-main); /* Keep text color white/light */
}

/* Sections */
section {
    padding: 100px 0;
    min-height: 100vh; /* Ensures sections take up full viewport height */
    display: flex;
    align-items: center; /* Center content vertically */
}

#home {
    background: var(--color-primary-bg);
    text-align: center;
}

#about, #skills, #projects {
    background: var(--color-accent-bg); /* Use dark teal for contrast sections */
}

#contact {
    background: var(--color-secondary-bg);
}

/* Skills Grid */
.skills-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.skill-item {
    text-align: center;
    padding: 20px;
    margin: 15px;
    width: 150px;
    border: 2px solid var(--color-accent-text);
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-item i {
    font-size: 3em;
    margin-bottom: 10px;
    color: var(--color-accent-text);
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: rgba(12, 150, 156, 0.1); /* Slight highlight on hover */
}

/* Projects Card */
.project-card {
    background: var(--color-primary-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--color-button);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
#contactForm input, #contactForm textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background: var(--color-primary-bg);
    color: var(--color-text-main);
    border: 1px solid var(--color-accent-text);
}

#contactForm textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: var(--color-secondary-bg);
    color: var(--color-text-main);
    border-top: 1px solid var(--color-accent-text);
}

/* --- INTERACTIVE STYLES (Animations) --- */

/* Initial state for elements that will fade in */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Final state when the element is visible */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}