/* --- Global Styles & Resets --- */
:root {
    --primary-color: #00f0ff; /* Bright cyan/blue accent */
    --secondary-color: #9e00ff; /* Purple accent for contrast if needed */
    --bg-color: #0e1116; /* Very dark blue/black */
    --bg-color-light: #1a1f2b; /* Slightly lighter dark shade for cards/sections */
    --text-color: #e0e0e0; /* Light gray for text */
    --text-color-dark: #a0a0a0; /* Darker gray for less important text */
    --heading-color: #ffffff;
    --border-color: #2a303f;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Orbitron', sans-serif; /* Futuristic font for headings */

    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px; /* Base font size */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Optional: Add a subtle pattern or gradient for futuristic feel */
    /* background-image: radial-gradient(circle, rgba(26,31,43,0.8) 0%, rgba(14,17,22,1) 70%); */
    /* Or a subtle noise pattern */
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%232a303f' fill-opacity='0.1' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E"); */
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 500;
}

h1 { font-size: 2.8rem; text-shadow: 0 0 10px var(--primary-color); }
h2 { font-size: 2.2rem; } /* Section titles */
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8effff; /* Lighter shade of primary */
}

ul {
    list-style: none;
    padding-left: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}
.section:last-child {
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-secondary);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.btn-tertiary { /* For project links */
    padding: 8px 18px;
    font-size: 0.9rem;
    background-color: var(--bg-color-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}
.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

/* --- Header --- */
#header {
    background-color: rgba(14, 17, 22, 0.85); /* Semi-transparent dark */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}
.enadream-logo-header {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--primary-color);
}

.social-icons-header {
    display: flex;
    align-items: center;
}
.social-icons-header .social-icon {
    width: 22px;
    height: 22px;
    margin-left: 15px;
    filter: invert(80%) sepia(100%) saturate(300%) hue-rotate(150deg) brightness(1.1); /* To match primary color better */
    transition: filter 0.3s ease, transform 0.3s ease;
}
.social-icons-header .social-icon:hover {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(2); /* Brighter white */
    transform: scale(1.1);
}

.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above nav */
}
.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height); 
    background: linear-gradient(45deg, var(--bg-color) 0%, #1f293b 100%); 
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Adjusted gap */
}
.hero-text h1 {
    font-size: 3.5rem; 
    margin-bottom: 0.5rem;
}
.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 400;
    margin-bottom: 1.5rem; /* Adjusted margin */
}
.cta-buttons { /* Added to group buttons */
    margin-bottom: 1.5rem; /* Space before professional links */
}
.cta-buttons a {
    margin: 0 10px;
}
.hero-visual .hero-logo-main {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 25px var(--primary-color));
    animation: pulseLogo 4s infinite ease-in-out;
}

/* --- Hero Professional Links --- */
.hero-professional-links {
    margin-top: 1rem; /* Space from CTA buttons */
    margin-left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px; /* Row and column gap */
    align-items: center;
    justify-content: center; 
}
.hero-professional-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: var(--font-primary); /* Ensure consistent font */
}
.hero-professional-links a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}
.hero-professional-links .link-icon {
    width: 16px;
    height: 16px;
    /* Basic filter for a neutral icon color, assumes single-color SVGs */
    filter: invert(75%) sepia(0%) saturate(100%) hue-rotate(200deg) brightness(0.9);
}
.hero-professional-links a:hover .link-icon {
    /* Filter to approximate primary color for hover */
    filter: invert(69%) sepia(73%) saturate(5820%) hue-rotate(160deg) brightness(102%) contrast(102%);
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 25px var(--primary-color));}
    50% { transform: scale(1.05); filter: drop-shadow(0 0 35px var(--primary-color));}
}

/* --- About Section --- */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.personal-statement p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5em;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

.project-card {
    background-color: var(--bg-color-light);
    border-radius: 8px;
    /*overflow: hidden;*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.1); /* Use RGB for alpha */
}

.project-image-container {
    width: 100%;
    height: 220px; /* Fixed height for images */
    overflow: hidden;
}
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, crop if needed */
    transition: transform 0.4s ease;
}
.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
    flex-grow: 1; /* Allows card to grow and push links to bottom */
    display: flex;
    flex-direction: column;
}
.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
}
.project-date {
    font-size: 0.85rem;
    color: var(--text-color-dark);
    margin-bottom: 8px;
}
.project-role-tech {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-color-dark);
    margin-bottom: 15px;
}
.project-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes links to bottom */
}
.project-description p {
    margin-bottom: 0.5em;
}
.project-description ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 0.5em;
    margin-bottom: 1em;
}
.project-description ul li {
    margin-bottom: 0.3em;
}
.project-links {
    margin-top: auto; /* Pushes to the bottom */
}
.project-links a {
    margin-right: 10px;
    margin-bottom: 10px; /* For wrapping */
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.skill-category {
    background-color: var(--bg-color-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.skill-category h3 {
    margin-bottom: 15px;
    color: var(--heading-color);
}
.skill-category ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}
.skill-category ul li::before {
    content: '»'; /* Futuristic bullet */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Education Section --- */
.education-section .section-title {
    margin-bottom: 60px;
}
.education-content-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 35px;
}

.education-block {
    background-color: var(--bg-color-light);
    padding: 25px 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.education-block h3 { /* Main heading for the block (e.g., "University Education") */
    color: var(--heading-color);
    margin-bottom: 20px;
    font-size: 1.4rem; /* Was 1.4rem */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.education-block h4 { /* Sub-heading within a block (e.g., Degree title, "Undergraduate") */
    color: var(--primary-color);
    margin-top: 10px; /* Added margin top for spacing */
    margin-bottom: 10px;
    font-size: 1.15rem;
}
.education-block.university-education h4 { /* Specific styling for degree title */
    margin-top: 0; /* No top margin for the first h4 in this block */
}

.education-block p {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.7;
}
.education-block p strong {
    color: var(--text-color); /* Slightly more emphasis */
    font-weight: 500;
}

.education-block ul {
    list-style: none;
    padding-left: 0;
}
.education-block ul li {
    margin-bottom: 10px; /* Increased spacing */
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px; 
}
.education-block ul li::before {
    content: '▹'; 
    position: absolute;
    left: 0;
    top: 1px; 
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em; /* Slightly larger bullet */
}
.education-block.certificates ul li a {
    font-weight: 500;
    color: var(--text-color); /* Default link color for certs */
}
.education-block.certificates ul li a:hover {
    text-decoration: none; /* Remove underline for cleaner look */
    color: var(--primary-color); 
}

.coursework-columns {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Gap between Undergraduate and Online Courses columns */
}
.coursework-columns > div h4 { /* "Undergraduate" / "Online Courses" sub-heading */
    font-size: 1.1rem;
    color: var(--text-color); 
    font-weight: 500;
    margin-bottom: 15px;
    /* Optional: remove border-bottom if block h3 has it */
    /* border-bottom: 1px solid var(--border-color); */
    /* padding-bottom: 8px; */
}

.education-block-group { 
    display: grid;
    grid-template-columns: 1fr; 
    gap: 35px; /* Gap between Languages and Interests if they stack */
}
/* Responsive adjustments for Education Section */
@media (min-width: 800px) {
    .education-content-wrapper {
        grid-template-columns: repeat(2, 1fr); 
    }
    .education-block.university-education,
    .education-block.coursework {
        grid-column: span 2; /* These blocks take full width */
    }
    .coursework-columns {
        flex-direction: row; /* Side-by-side for UG and Online */
        gap: 40px;
    }
    .coursework-columns > div {
        flex: 1; /* Equal width for course columns */
    }
    .education-block-group {
        /*grid-column: span 2; /* Group takes full width */
        /*grid-template-columns: repeat(2, 1fr); /* Lang & Interests side-by-side */
    }
}

@media (min-width: 1024px) {
    /* Further refine for larger screens if needed, 800px layout is often good enough */
    .education-block.certificates {
        grid-column: 1 / 2; /* Certificates in first column */
    }
    .education-block-group {
        grid-column: 2 / 3; /* Lang/Interests in second column */
        grid-template-columns: 1fr; /* Stack Lang & Interests within their column */
    }
    .education-block-group .education-block:not(:first-child) {
        /*margin-top: 0px; */ /* Add space if they stack in the same column */
    }
}


/* --- Footer Section --- */
.footer-section {
    background-color: var(--bg-color-light);
    text-align: center;
    padding: 60px 0;
}
.footer-section .section-title::after {
    background-color: var(--heading-color);
}
.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.contact-info a {
    color: var(--primary-color);
    font-weight: 500;
}

/* --- Footer Professional Links --- */
.footer-professional-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px; /* Row and column gap */
    margin: 35px 0;
}
.footer-link-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 1rem; /* Was 1rem */
    padding: 8px 12px; /* Adjusted padding */
    border-radius: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
    font-family: var(--font-primary);
}
.footer-link-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}
.footer-link-item .link-icon {
    width: 22px; /* Was 24px */
    height: 22px;
    filter: invert(75%) sepia(0%) saturate(100%) hue-rotate(200deg) brightness(0.9);
    transition: filter 0.3s ease;
}
.footer-link-item:hover .link-icon {
     filter: invert(69%) sepia(73%) saturate(5820%) hue-rotate(160deg) brightness(102%) contrast(102%);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color-dark);
    margin-top: 20px;
}


/* --- Responsive Design (Keep as is for general, specific changes are above) --- */
@media (min-width: 800px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 3rem; /* Adjusted gap */
    }
    .hero-text {
        flex: 2;
    }
    .hero-visual {
        flex: 1;
    }
    .hero-text h1 {
        font-size: 4.5rem;
    }
    .hero-professional-links { /* Align to left on desktop hero if text is left-aligned */
        justify-content: flex-start;
    }
    .about-content {
        /* text-align: left; */ /* Kept centered for now */
    }
    /* Education grid handled above */
}

/* enadream added */
@media (min-width: 1000px){
    .hero-professional-links {
        margin-left: 30px;
    }
}

@media (max-width: 799px) {
    /* Mobile Nav styles (Keep as is) */
    .header-container {
        padding: 0 15px; 
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-color-light);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        padding-top: calc(var(--header-height) + 20px); 
        z-index: 999; 
    }
    .main-nav.active {
        right: 0; 
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    .nav-links li {
        margin: 15px 0;
    }
    .nav-link {
        font-size: 1.1rem;
    }
    .social-icons-header { /* Already defined */
        /* display: none; */ /* It will show the selected icons */
    }
    .mobile-nav-toggle {
        display: block;
    }
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .btn { padding: 10px 20px; font-size: 0.9rem;}
    .projects-grid {
        grid-template-columns: 1fr; 
    }
    .hero-professional-links {
        gap: 10px 15px; /* Tighter gap on small screens */
    }
    .hero-professional-links a {
        font-size: 0.85rem;
        padding: 5px 8px;
    }
    .hero-professional-links .link-icon {
        width: 14px;
        height: 14px;
    }
}

/* For the primary color RGB value (Keep as is) */
:root {
    --primary-color-rgb: 0, 240, 255;
}