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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    /* background: #fefff7; */
    color: #e2e8f0;
}

/* ========== NAVIGATION ========== */
#desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #1e293b;
}

.logo {
    font-size: 1.5em;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
    cursor: pointer;
    position: relative;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.logo-link:hover::after {
    width: 100%;
}

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

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: #3b82f6;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

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

/* Hamburger Menu */
#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-links {
    position: absolute;
    top: 50px;
    right: 0;
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    list-style: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: none;
    min-width: 200px;
}

.menu-links.open {
    display: block;
}

.menu-links li {
    margin-bottom: 15px;
}

.menu-links li:last-child {
    margin-bottom: 0;
}

.menu-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}

/* ========== HERO SECTION ========== */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

#profile {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 6% 80px;
    width: 100%;
}

.section__text {
    text-align: center;
    max-width: 800px;
}

.title {
    font-size: 4em;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.section__text__p2 {
    font-size: 1.15em;
    color: #3b82f6;
    font-weight: 700;
    margin-bottom: 20px;
}

.section__text__p3 {
    font-size: 1.2em;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.tagline {
  opacity: 0.75;
  font-size: 1rem;
  color: #3b82f6;
    margin-bottom: 20px;
}
.section__text__p4 {
    font-size: 0.8em;
    color: #81b1fd;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.1cap;
}

.btn-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-container .btn {
    min-width: 180px;
    justify-content: center;
}

.btn {
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-color-1 {
    background: #3b82f6;
    color: white;
}

.btn-color-1:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-color-2 {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid #3b82f6;
}

.btn-color-2:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
}

#socials-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s;
    filter: brightness(0.8);
}

.icon:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

.down-arrow {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.down-arrow:hover {
    opacity: 1;
}

/* ========== CODING SECTION ========== */
#coding, #research {
    min-height: auto;
    display: block;
    position: relative;
    padding: 120px 6% 10px;
    scroll-margin-top: 0px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 6%;
    width: 100%;
    position: relative;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1em;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    /* margin-top: 20px; */
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    background: transparent;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tab:hover,
.filter-tab.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Projects Container */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #334155;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.project-content-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 300px;
}

/* Project Image - Simple square version only */
.project-card .project-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-card .project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Badges */
.status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.status-badge.completed {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Project Details */
.project-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    font-size: 11px;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card .project-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.project-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.tech-stack {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tech-item {
    font-size: 13px;
    color: #64748b;
    padding: 4px 0;
}

.tech-item:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: rgba(59, 130, 246, 0.4);
}

.project-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    justify-content: center;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* ========== CONTACT SECTION ========== */
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    scroll-margin-top: 100px;
    scroll-snap-align: start;
}

.contact-content {
    text-align: center;
    width: 100%;
}

#contact .title,
.contact-title {
    margin-bottom: 40px;
    font-size: 4em;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-radius: 2rem;
    border: 2px solid #3b82f6;
    background: #1e293b;
    padding: 30px 50px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-info-container p {
    font-size: 1.1em;
}

.contact-info-container a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-container a:hover {
    color: #3b82f6;
}

.contact-icon {
    cursor: default;
    height: 2rem;
}

.email-icon {
    height: 2.5rem;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Small height viewports */
@media (max-height: 900px) {
    #coding {
        padding: 100px 6% 100px;
    }

    .projects-container {
        margin-bottom: 60px;
    }
}

@media (max-height: 800px) {
    #coding {
        padding: 80px 6% 80px;
    }

    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 0.9em;
    }

    .project-card .project-title {
        font-size: 24px;
    }
}

/* Tablet & Medium screens - Single column layout */
@media (max-width: 968px) {
    .project-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .project-card .project-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 1040px) {
    .btn-container {
        flex-direction: column;
        align-items: center;
    }

    .btn-container .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #desktop-nav {
        display: none;
    }

    #hamburger-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 5%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        border-bottom: 1px solid #1e293b;
    }

    .title {
        font-size: 2.5em;
    }

    .section__text__p2 {
        font-size: 1.3em;
    }

    .section__text__p3 {
        font-size: 1.1em;
    }

    .contact-info-upper-container {
        flex-direction: column;
        padding: 25px 30px;
    }
}

@media (max-width: 640px) {
    .project-details {
        padding: 30px;
    }

    .project-card .project-title {
        font-size: 24px;
    }

    .project-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

}

#socials-container .tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#socials-container .tooltip-text {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#socials-container .tooltip:hover .tooltip-text {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}
#socials-container .tooltip-text {
  background: rgba(10, 20, 40, 0.95);
  color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}