/* =================== RESET & BASE STYLES =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  background: linear-gradient(-45deg, #f3ec78, #af4261, #43cea2, #185a9d);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
    color: #e0e3ea;
    font-family: 'Roboto', 'Open Sans', 'Source Sans Pro', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    letter-spacing: 0.01em;
}

nav {
    display: flex;
    align-items: center;
    gap: 60px; /* Adjust gap between logo and nav links */
    justify-content: flex-start;
}

/* =================== SECTION STYLES =================== */
.section {
    background: #181a20;
    color: #e0e3ea;
    border-radius: 18px;
    margin: 48px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 2.5rem 1.5rem;
    transition: box-shadow 0.3s;
}

.section h2 {
    color: #00e6fb;
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,230,251,0.08);
}

/* =================== BUTTONS =================== */
.btn {
    display: inline-block;
    background: #00e6fb;
    color: #111317;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    margin-top: 1rem;
    box-shadow: 0 2px 8px #00e6fb33;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    outline: none;
}

.btn:hover {
    color: #111317;
    background: #00e6fb;
    text-decoration: none;
    box-shadow: 0 2px 16px #00e6fb44;
}

/* =================== HEADER & NAVIGATION =================== */
header {
    background: rgba(24, 26, 32, 0.85); /* Slightly transparent dark */
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px); /* Optional: adds a frosted effect */
    transition: background 0.3s;
}

nav {
    display: flex;
    align-items: center;
    gap: 60px; /* Adjust gap between logo and nav links */
    justify-content: flex-start;
}

.logo {
    color: #00e6fb;
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #e0e3ea;
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
    font-weight: 600;
    margin-left: 2rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #00e6fb;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -4px;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #00e6fb;
}

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

/* =================== HERO SECTION =================== */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111317;
    text-align: center;
    padding: 4rem 0 2rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    animation: fadeInDown 1s;
}

.hero-content .highlight {
    color: #00e6fb;
    text-shadow: 0 2px 8px #00e6fb44;
}

.hero-content p {
    font-size: 1.3rem;
    color: #bfc4d1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.2s;
}

.hero-content .btn {
    margin-top: 1.5rem;
    animation: fadeIn 1.5s;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeIn {
    from { opacity: 0;}
    to { opacity: 1;}
}

/* =================== ABOUT SECTION =================== */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 2rem 0;
    background: transparent;
}

.about-text {
    flex: 2;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e3ea;
    padding-right: 1rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.placeholder-image {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #23242a;
    box-shadow: 0 4px 24px #00e6fb22;
    border: 3px solid #00e6fb;
    animation: fadeIn 1.2s;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* =================== EDUCATION SECTION =================== */
.education-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.education-item {
    background: #23242a;
    color: #e0e3ea;
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1 1 320px;
    min-width: 260px;
    box-shadow: 0 2px 12px #00e6fb11;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.education-item:hover {
    box-shadow: 0 6px 24px #00e6fb33;
    transform: translateY(-4px) scale(1.02);
}

.education-item h3 {
    color: #00e6fb;
    margin-bottom: 10px;
}

.education-item p {
    margin-bottom: 5px;
}

.cv-download {
    text-align: center;
    margin-top: 30px;
}

.cv-download .btn {
    background: #00e6fb;
    color: #111317;
    margin-top: 1.5rem;
}

.cv-download .btn:hover {
    background: #00ffae;
    color: #111317;
}

/* =================== INTERESTS SECTION =================== */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interest-card {
    background: #23242a;
    color: #e0e3ea;
    border-radius: 12px;
    padding: 2rem 1.2rem;
    text-align: center;
    box-shadow: 0 2px 12px #00e6fb11;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: fadeInUp 1.2s;
}

.interest-card i {
    font-size: 2.5rem;
    color: #00e6fb;
    margin-bottom: 1rem;
    transition: color 0.2s, transform 0.2s;
}

.interest-card:hover {
    box-shadow: 0 6px 24px #00e6fb33;
    transform: translateY(-4px) scale(1.03);
}

.interest-card:hover i {
    color: #00ffae;
    transform: scale(1.15) rotate(-8deg);
}

/* =================== SKILLS SECTION =================== */
.skills-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    background: transparent;
}

.skill-category {
    background: #23242a;
    color: #e0e3ea;
    border-radius: 12px;
    padding: 1.5rem;
    flex: 1 1 220px;
    min-width: 180px;
    box-shadow: 0 2px 12px #00e6fb11;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
}

.skill-category h3 {
    color: #00e6fb;
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    margin-bottom: 0.7rem;
    font-size: 1rem;
    color: #bfc4d1;
    position: relative;
    padding-left: 1.2em;
}

.skill-category li::before {
    content: "•";
    color: #00e6fb;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: 0;
}

/* =================== PROJECTS SECTION =================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    background: transparent;
}

.project-card {
    background: #23242a;
    color: #e0e3ea;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 24px #00e6fb11;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 1.2s;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 32px #00e6fb33;
}

.project-image {
    height: 140px;
    background: linear-gradient(135deg, #00e6fb 0%, #23242a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image .placeholder-image {
    width: 70px;
    height: 70px;
    background: #181a20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #00e6fb22;
    border: 2px solid #00e6fb;
}

.project-image i {
    font-size: 2rem;
    color: #00e6fb;
}

.project-content {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3 {
    color: #00e6fb;
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
}

.project-content p {
    color: #bfc4d1;
    margin-bottom: 18px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.project-tags span {
    background: #00e6fb;
    color: #181a20;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

.project-tags span:hover {
    background: #00ffae;
    color: #181a20;
}

.project-status {
    margin-bottom: 1rem;
}

.status-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: inline-block;
    padding: 3px 14px;
    border-radius: 12px;
}

.status-label.in-progress {
    background: #00e6fb33;
    color: #00e6fb;
}

.status-label.completed {
    background: #00ffae33;
    color: #00ffae;
}

.status-label.planned {
    background: #bfc4d133;
    color: #bfc4d1;
}

.status-bar {
    width: 100%;
    height: 8px;
    background: #23242a;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 4px;
}

.status-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e6fb, #00ffae);
    border-radius: 6px;
    transition: width 0.4s;
}

/* =================== CONTACT SECTION =================== */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: transparent;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-info {
    flex: 1 1 320px;
    background: #23242a;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px #00e6fb11;
}

.contact-info h3 {
    color: #00e6fb;
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #e0e3ea;
}

.contact-item i {
    color: #00e6fb;
    margin-right: 0.7rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    margin-right: 18px;
    font-size: 1.7rem;
    background: none;
    border-radius: 0;
    padding: 0;
    color: #e0e3ea;
    box-shadow: none;
    transition: transform 0.2s, color 0.2s;
}
.social-links a .fa-github { color: #fff; }
.social-links a .fa-linkedin { color: #00e6fb; }
.social-links a .fa-twitter { color: #00ffae; }
.social-links a .fa-instagram { color: #e4405f; }
.social-links a:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.contact-form {
    flex: 2 1 400px;
    background: #23242a;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px #00e6fb11;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1.5px solid #23242a;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00e6fb;
    outline: none;
    box-shadow: 0 0 0 2px #00e6fb44;
}

/* =================== FOOTER =================== */
footer {
    background: #181a20;
    color: #00e6fb;
    text-align: center;
    padding: 24px 0 12px 0;
    border-radius: 0 0 18px 18px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-top: 3rem;
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 992px) {
    .about-content,
    .skills-container,
    .education-content,
    .contact-container {
        flex-direction: column;
        align-items: stretch;
    }
    .about-image {
        justify-content: center;
        margin-top: 1.5rem;
    }
    .about-text {
        padding-right: 0;
        text-align: center;
    }
    .contact-form, .contact-info {
        padding: 1.2rem 1rem;
    }
}

@media (max-width: 600px) {
    header {
        padding: 0;
    }
    nav {
        min-height: 90px;
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        background: rgba(24, 26, 32, 0.95); /* Match logo background */
        border-radius: 0 0 18px 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .logo {
        font-size: 2rem;
        line-height: 1.1;
        padding: 0.7rem 1.2rem 0.7rem 0.8rem;
        margin-right: 1.2rem;
        background: transparent; /* Remove extra background, use nav's */
        border-radius: 0;
        color: #00e6fb;
        font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
        font-weight: 700;
        letter-spacing: 1px;
        flex: 0 0 auto;
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 90px;
        display: block;
        text-align: left;
        white-space: pre-line;
    }
    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin: 0;
        background: transparent; /* Inherit nav background */
        width: max-content;
        min-width: 0;
    }
    .nav-links li {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}