/* --- Base Styles & Typography --- */
:root {
    --primary-color: #3f51b5; /* Indigo */
    --secondary-color: #ff9800; /* Amber/Orange */
    --dark-bg: #212121; /* Dark Gray */
    --light-text: #f5f5f5; /* Off-White */
    --card-bg: #303030;
    --font-family: 'Arial', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--dark-bg);
    color: var(--light-text);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--light-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 10px 25px;
    margin-top: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #303f9f;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* --- Header & Navigation --- */
header {
    background: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: var(--dark-bg);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 50px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h2 {
    font-size: 4rem;
    margin: 10px 0;
    color: var(--primary-color);
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: var(--card-bg);
    overflow: hidden;
    /* Placeholder styles - replace with your actual image */
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-align: center;
}

.social-links a {
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--light-text);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* --- About & Skills Section --- */
.about-skills {
    background: var(--card-bg);
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-card {
    background: #1a1a1a;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid var(--primary-color);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.skill-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* --- Projects Section --- */
.projects {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--secondary-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.project-links {
    margin-top: 20px;
}

.link-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.link-btn:hover {
    background-color: #303f9f;
}

.link-btn.secondary {
    background-color: var(--secondary-color);
}

.link-btn.secondary:hover {
    background-color: #e65100;
}


/* --- Contact Section --- */
.contact {
    background: #1a1a1a;
    padding: 80px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 5px;
}

.contact-form textarea {
    resize: vertical;
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h2 {
        font-size: 3rem;
    }

    .hero-image {
        margin-top: 40px;
    }

    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 10px;
        padding-bottom: 5px;
    }

    nav ul li {
        margin: 0 10px;
    }
}