/* ======================
   GLOBAL STYLES
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #0f1419;
    --darker-bg: #0a0e13;
    --primary: #1e3a8a;
    --accent: #3b82f6;
    --text-white: #ffffff;
    --text-light: #e5e7eb;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ======================
   NAVBAR STYLES
   ====================== */
.navbar {
    background-color: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ======================
   HAMBURGER MENU
   ====================== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ======================
   SIDEBAR MENU (MOBILE)
   ====================== */
.nav-menu.mobile-active {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: rgba(15, 20, 25, 0.98);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    gap: 0;
    padding: 2rem 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.nav-menu.mobile-active.show {
    left: 0;
}

.nav-menu.mobile-active li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-menu.mobile-active .nav-link {
    display: block;
    font-size: 1.1rem;
}

.nav-menu.mobile-active .nav-link::after {
    display: none;
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======================
   TYPING ANIMATION
   ====================== */
.typing-container {
    font-size: 1.8rem;
    margin: 2rem 0 2rem 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.typing-text {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
}

.cursor {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typing-text.active {
    animation: typing 3.5s steps(40, end);
}

/* ======================
   DESCRIPTION TEXT
   ====================== */
.description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .typing-container {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-container {
        padding: 1rem;
    }
}

/* ======================
   SECTIONS LAYOUT
   ====================== */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======================
   BIO SECTION
   ====================== */
.bio-content {
    max-width: 700px;
    margin: 0 auto;
}

.bio-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: center;
}

/* ======================
   PROJECTS SECTION
   ====================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(59, 130, 246, 0.2) 100%);
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--accent);
}

.card-link {
    margin-top: 0.8rem;
}

.card-link a {
    text-decoration: none;
    font-weight: 700;
    color: var(--accent)
}
/* ======================
   CONTACT SECTION
   ====================== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-link {
        width: 100%;
    }
} 