/* =================================================================
   Root Variables & Base Styles
================================================================= */
:root {
    --bg-light: #F4F7FC;
    --text-light: #2c3e50;
    --primary-light: #3498db;
    --secondary-light: #e74c3c;
    --card-light: #FFFFFF;
    --bg-dark: #2c3e50;
    --text-dark: #ecf0f1;
    --primary-dark: #5dade2;
    --secondary-dark: #e74c3c;
    --card-dark: #34495e;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --bg-color: var(--bg-light);
    --text-color: var(--text-light);
    --primary-color: var(--primary-light);
    --secondary-color: var(--secondary-light);
    --card-color: var(--card-light);
}

[data-theme="dark"] {
    --bg-color: var(--bg-dark);
    --text-color: var(--text-dark);
    --primary-color: var(--primary-dark);
    --secondary-color: var(--secondary-dark);
    --card-color: var(--card-dark);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.7;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

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

[data-theme="dark"] .btn-outline {
    border-color: var(--text-dark);
}

/* =================================================================
   Navbar
================================================================= */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background-color: rgba(44, 62, 80, 0.8);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.navbar-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    transition: var(--transition);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.theme-switcher i {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* =================================================================
   Hero Section
================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Needed for the overlay */
    background: url('../imgs/background.jpg') no-repeat center center/cover; /* CHANGE 'back.jpg' TO YOUR IMAGE */
    color: #fff; /* Text color is now white for contrast */
}

/* This overlay adds a dark tint to your background image for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
}

.hero-content {
    position: relative; /* Ensures content is above the overlay */
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 10px 0 30px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 0 10px;
}

.hero .btn-outline {
    border-color: #fff;
    color: #fff;
}

.hero .btn-outline:hover {
    background-color: #fff;
    color: #333;
}


/* =================================================================
   About Section
================================================================= */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex-shrink: 0;
}

.about-img img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--card-color);
    box-shadow: var(--shadow);
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    margin-bottom: 20px;
}

.info-list li {
    margin-bottom: 10px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-right: 20px;
    transition: var(--transition);
}

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

/* =================================================================
   Resume Section
================================================================= */
.resume-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.resume-column-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.resume-column-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.resume-card {
    background-color: var(--card-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.resume-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.resume-card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.resume-card-subtitle {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 15px;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
}

.skill-item {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

[data-theme="dark"] .skill-item {
    background-color: var(--card-dark);
}

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

.project-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-img-placeholder {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-style: italic;
}

.project-img-placeholder::before {
    content: 'Project Image';
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

[data-theme="dark"] .project-img-placeholder {
    background-color: #4a637e;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 1rem;
    opacity: 0.8;
}

/* =================================================================
   Contact Section
================================================================= */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
    margin-bottom: 20px;
    font-family: var(--font-family);
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .contact-form .form-control {
    border-color: #4f6a85;
}

.contact-form .btn {
    width: 100%;
}

/* =================================================================
   Footer
================================================================= */
.footer {
    text-align: center;
    padding: 30px 0;
    background-color: var(--card-color);
    margin-top: 100px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.02);
}

/* =================================================================
   Animations & Responsive Design
================================================================= */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .navbar-links {
        display: none; /* Hides nav links on smaller screens for simplicity */
    }
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .about-img {
        margin-bottom: 30px;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .resume-wrapper {
        grid-template-columns: 1fr;
    }
}