/* --- General Styling & Minimalist Theme (Black, White, Aqua) --- */
:root {
    --bg-color: #ffffff;       /* White Background */
    --primary-text: #000000;   /* Black Text */
    --secondary-text: #555555; /* Dark Gray for secondary info */
    --accent-color: #45c490;   /* ✅ MODIFIED: Darker Aqua Green Accent */
    --card-bg: #ffffff;        /* White for Cards */
    --border-color: #e5e7eb;   /* Light Gray for borders */
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h1, h2, h3 {
    color: var(--primary-text);
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center; 
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

h3 {
    /* General h3 styles can go here if needed */
}

p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

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

a:hover {
    filter: brightness(90%);
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    transition: top 0.3s;
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

nav .logo .logo-initial {
    color: var(--primary-text);
    background-color: var(--accent-color);
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 8px;
    font-weight: 600;
}


nav ul {
    display: flex;
    list-style: none;
    align-items: center; 
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--primary-text);
    font-weight: 500;
}

.btn-nav {
    padding: 8px 18px;
    font-size: 0.9rem;
}


/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    overflow: hidden;
    padding: 0 2rem;
    padding-top: 50px;

}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.hero-left {
    text-align: left;
    max-width: 600px;
}

.hero-left h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.hero-about-heading {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    text-align: left;
}

.hero-right {
    margin-top: -4rem; 
}


.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.profile-pic {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    /* ✅ MODIFIED: Set image position as requested */
    object-position: 70% 50%; 
    border: 5px solid var(--accent-color);
    box-shadow: 0 0 25px rgba(110, 246, 187, 0.5);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    color: var(--primary-text);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.hero-socials {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    justify-content: flex-start;
}

.hero-socials a {
    color: var(--secondary-text);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hero-socials a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* --- About Section --- */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

/* ✅ MODIFIED: Styles for the new vertical skill layout */
.skills-grid span {
    background-color: var(--card-bg);
    padding: 20px 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column; /* Stacks icon and text */
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between icon and text */
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
    font-size: 1rem; /* Increased text size */
    font-weight: 500;
}

.skills-grid span i {
    color: var(--accent-color);
    font-size: 2.5rem; /* Increased icon size */
}

/* --- Experience Section --- */
.experience-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.experience-image {
    flex: 1;
    max-width: 350px;
}

.experience-image img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.experience-details {
    flex: 2;
}

.experience-details h3 {
    font-size: 1.5rem;
    color: var(--primary-text);
    margin-bottom: 0.25rem;
}

.experience-details .experience-company {
    color: var(--secondary-text);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.experience-details .experience-date {
    display: block;
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: 0.25rem;
}

.experience-details ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.experience-details ul li {
    color: var(--secondary-text);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-details ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* --- Projects Section (Light Minimalist Theme) --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
}

.project-card {
    background-color: var(--card-bg); /* White card background */
    border: 1px solid var(--border-color); /* Light gray border */
    border-radius: 8px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color); /* Accent color on hover */
}

.project-card h3 {
    color: var(--primary-text);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.project-card p {
    color: var(--secondary-text);
    line-height: 1.5;
    font-size: 0.95rem;
}

.project-tags span {
    background-color: rgba(69, 196, 144, 0.1); /* Light aqua background */
    color: var(--accent-color);
    border: 1px solid rgba(69, 196, 144, 0.25);
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 6px;
    margin-bottom: 6px;
    display: inline-block;
}

.project-links {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.project-btn {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(69, 196, 144, 0.3);
    padding: 6px 14px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.project-btn:hover {
    background-color: rgba(69, 196, 144, 0.15);
    box-shadow: 0 0 10px rgba(69, 196, 144, 0.2);
}

/* 5th project centered */
.project-card:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 60%;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: 1fr 1fr;
    }
    .project-card:nth-child(5) {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    .project-card:nth-child(5) {
        width: 100%;
    }
}
/* --- Contact Section --- */
/* --- Contact Section --- */
#contact p {
    max-width: 100%;
    margin: 0 0 2rem 0;
    text-align: center;
}

#contact-form {
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
}

#contact-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
}

#contact-form button {
    display: block;
    margin: 0 auto;
    width: auto;
    cursor: pointer;
    padding-left: 3rem;
    padding-right: 3rem;
}

.social-links {
    margin-top: 2rem;
    text-align: center;
}

.social-links a {
    font-size: 1.8rem;
    margin: 0 1rem;
    color: var(--secondary-text);
}

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

/* --- Footer --- */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h2 {
        text-align: center;
    }
    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }

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

    .hero-buttons, .hero-socials {
        justify-content: center;
    }

    .hero-left h1 {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .profile-pic {
        width: 250px;
        height: 250px;
    }
    
    .hero-right {
        margin-top: 0;
    }

    nav ul {
        display: none;
    }

    .experience-item {
        flex-direction: column;
    }
    .experience-image {
        max-width: 100%;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #contact-form .form-group {
        flex-direction: column;
    }
}


