* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #4db6ac;  /* Teal */
    --secondary-color: #ffb74d; /* Muted Orange */
    --bg-dark: #1a1a1a;
    --bg-medium: #2a2a2a;
    --bg-light: #333333;
    --text-light: #acde9ef8;
    --text-medium: #bdbdbd;
    --shadow-dark: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s ease-in-out;

    --skills-back:  rgba(37, 24, 49, 0.514);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
}

.navbar {
    position: fixed;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(26, 26, 26, 0.9);
    box-shadow: var(--shadow-dark);
    transition: background-color var(--transition-speed);
    z-index: 1000;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

.logo {
    /* color: var(--dark-color); - Assuming dark-color is not defined, using text-light */
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    padding-bottom: 5px;
}

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

.hero {
    padding: 140px 20px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    position: relative; /* Needed for absolute positioning of stars */
    overflow: hidden;   /* Hide stars that go outside */
}

/* --- Shooting Stars Styles --- */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ensure it doesn't interfere with clicks */
    z-index: 0; /* Behind the content */
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: shooting-star linear infinite;
    opacity: 0; /* Start invisible */
}

/* Example star sizes and animation durations/delays - JS will set these */
/* .star.s1 { width: 1px; height: 1px; animation-duration: 5s; animation-delay: 0s; }
.star.s2 { width: 2px; height: 2px; animation-duration: 4s; animation-delay: 1s; }
.star.s3 { width: 1px; height: 1px; animation-duration: 6s; animation-delay: 2.5s; } */

@keyframes shooting-star {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1; /* Fade in quickly */
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100vw, 100vh); /* Move diagonally across */
        opacity: 0; /* Fade out */
    }
}
/* --- End Shooting Stars --- */

.hello-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    /* background: var(--bg-light); Original background */
    /* --- Acrylic Effect --- */
    background-color: rgba(51, 51, 51, 0.095); /* Semi-transparent background */
    backdrop-filter: blur(1px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    /* --- End Acrylic Effect --- */
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-dark);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Optional subtle border */
    position: relative; /* Ensure it's above the stars */
    z-index: 1;
}

.profile-wrapper {
    position: relative;
    text-align: center;
}

.profile-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 3px solid var(--primary-color);
}

.about-summary {
    padding-left: 30px;
}

.name {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    min-height: 1.5em;
}

.description {
    line-height: 1.8;
    margin-bottom: 35px;
    color: var(--text-light); /* Lighten text for better contrast on acrylic */
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-light); /* Lighten text */
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
}

/* Style buttons */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--bg-dark); /* Keep dark text for contrast */
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.cv-dwn {
    color: var(--bg-dark);
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-dark);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 15px; /* Add some space */
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-light); /* Lighten icons */
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

@media (max-width: 992px) { /* Adjust breakpoint for better layout */
    .hello-container {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
        text-align: center; /* Center text on smaller screens */
    }

    .profile-img {
        max-width: 250px; /* Slightly smaller image */
        margin-bottom: 20px;
    }

    .about-summary {
        padding-left: 0;
    }

     .contact-item, .social-links {
        justify-content: center; /* Center these items */
    }
}

@media (max-width: 768px) {
    .hello-container {
        padding: 20px;
    }

    .profile-img {
        max-width: 200px;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.3rem;
    }

    .nav-links {
        /* Consider adding a hamburger menu toggle here instead of just display: none */
         display: none;
    }
}

section {
    padding: 80px 20px; /* Consistent padding */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px; /* Increased margin */
    color: var(--primary-color); /* Use primary color */
    font-weight: 600; /* Bolder title */
}

/* Skills Section */
#skills {
    /* background-color: var(--bg-medium); */
    background-color: var(--bg-medium);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px; /* Increased gap */
    padding: 0 20px;
    align-items: start; /* Align items to the top */
}

.skill-content h3 {
    font-size: 1.8rem;
    color: var(--text-light); /* Lighter heading */
    margin-bottom: 20px;
}

.skill-description {
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 30px;
}

/* Language Cards */
.skill-cards h4 { /* Style the subheadings */
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--primary-color);
    display: inline-block;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Adjusted minmax */
    gap: 20px;
    margin-bottom: 40px; /* Space before domains */
}

.skill-card {
    background: var(--bg-light); /* Darker card background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle border */
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.03); /* Enhanced hover */
    box-shadow: var(--shadow-dark);
}

.skill-card i, .skill-card .custom-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block; /* Ensure icon is block */
    margin-left: auto; /* Center icon/image */
    margin-right: auto;
}

.skill-card .custom-icon {
    width: 40px;  /* Consistent size for custom icons */
    height: 40px;
    fill: var(--primary-color); /* Use primary color for fill */
}

.skill-card h5 {
    font-size: 1rem; /* Slightly smaller */
    margin-bottom: 8px;
    color: var(--text-light);
}

.skill-card p {
    font-size: 0.85rem; /* Slightly smaller */
    color: var(--text-medium);
}

/* Domain Tags */
.domains-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.domain-tag {
    background: var(--bg-light);
    color: var(--text-medium); /* Use medium text */
    padding: 8px 20px; /* Adjusted padding */
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.domain-tag:hover {
    background: var(--primary-color);
    color: var(--bg-dark); /* Dark text on hover */
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skill-content {
        text-align: center;
    }
     .skill-cards h4 {
        display: block; /* Center heading */
        text-align: center;
        border-bottom: none; /* Remove border on mobile */
    }
}

/* Education Section */
#education {
    background-color: var(--bg-medium); /* Keep dark background */
}

.education-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Add a timeline pseudo-element */
.education-container::before {
    content: '';
    position: absolute;
    left: 45px; /* Align with the center of the icon */
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--bg-light); /* Timeline color */
    z-index: 0;
}


.education-card {
    display: flex;
    gap: 25px;
    padding: 30px;
    background: var(--bg-medium); /* Use medium background */
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    margin-bottom: 30px;
    position: relative; /* Needed for hover and potential ::before */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-left: 4px solid var(--primary-color); /* Accent border */
    z-index: 1; /* Above the timeline */
}

.education-card:hover {
    transform: translateX(5px) scale(1.02); /* Shift right slightly */
    box-shadow: var(--shadow-dark);
}

.education-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid var(--bg-medium); /* Make it pop */
    position: relative;
    left: -51px; /* Position over the timeline */
    z-index: 2;
}

.education-icon i {
    color: var(--bg-dark); /* Dark icon */
    font-size: 1.2rem;
}

.education-content {
    flex: 1;
    margin-left: -25px; /* Adjust content position due to icon shift */
}

.education-year {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color); /* Use primary color */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px; /* Increased margin */
    font-weight: 500;
}

.education-degree {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 1.3rem; /* Larger degree */
}

.education-institution {
    color: var(--text-medium);
    margin-bottom: 5px; /* Less space */
    font-weight: 500;
}

@media (max-width: 768px) {
    .education-container::before {
        left: 20px; /* Adjust timeline for smaller screens */
    }
    .education-card {
        padding: 20px;
        border-left-width: 3px;
    }
    .education-icon {
        width: 40px;
        height: 40px;
        left: -31px; /* Adjust icon position */
         border-width: 2px;
    }
     .education-icon i {
        font-size: 1rem;
    }
    .education-content {
         margin-left: -15px; /* Adjust content */
    }
    .education-degree {
        font-size: 1.1rem;
    }
}


/* Projects Section */

#projects {
    background: var(--bg-medium);
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
    cursor: pointer;
}

.project-card:hover .project-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.project-subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 10px;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    color: var(--dark-color);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-image-container {
    width: 100%;
    height: 400px;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.modal-details {
    padding: 30px;
    color: #393737;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    color: #666;
}

.meta-item i {
    margin-right: 8px;
}

.project-description {
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-tag {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.project-link:hover {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
    }
    
    .modal-image-container {
        height: 250px;
    }
    
    .modal-details {
        padding: 20px;
    }
    
    .project-links {
        flex-direction: column;
    }
}

/* Contact Form */
#contact {
    background-color: var(--bg-dark);
    padding-bottom: 100px; /* More space before footer */
}

.contact-form {
    max-width: 700px; /* Wider form */
    margin: 0 auto;
    background: var(--bg-medium); /* Background for form area */
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-dark);
}

.form-group {
    margin-bottom: 25px; /* More space */
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px; /* More padding */
    border: 1px solid var(--bg-light); /* Subtle border */
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--bg-light); /* Input background */
    color: var(--text-light); /* Input text color */
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.3); /* Focus glow */
}

textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 150px; /* Minimum height */
}

button[type="submit"] {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem; /* Larger text */
    font-weight: 600;
    transition: background-color var(--transition-speed), transform 0.2s ease;
    text-decoration: none;
    display: block; /* Make button block */
    width: 100%; /* Full width */
    margin-top: 10px; /* Space above button */
    box-shadow: var(--shadow-light);
}


button[type="submit"]:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-dark);
}

a {
    text-decoration: none;
}

.footer {
    background-color: #111; /* Even darker footer */
    color: var(--text-medium); /* Medium text color */
    text-align: center;
    padding: 20px; /* More padding */
    font-size: 0.9rem;
    /* position: relative; Remove relative positioning if not needed */
    /* bottom: 0; */
    width: 100%;
    margin-top: auto; /* Push to bottom if content is short */
}