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

:root {
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-blue: #1e40ff;
    --color-blue-light: #4d6bff;
    --color-gray: #999999;
    --color-gray-light: #f5f5f5;
    
    --font-title: 'Arial Black', 'Arial Bold', sans-serif;
    --font-body: 'Helvetica Neue', Arial, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--color-black);
    transition: all 0.3s ease;
}

.nav-container.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-logo a {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.nav-logo img{
    height: 10%;
    width: 100%;
    display: block;
}

.nav-logo a:hover {
    color: var(--color-blue);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-blue);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-black);
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -5px;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    animation: slideInUp 1s ease backwards;
}
.title-line-2 {
    font-family: 'Times New Roman', Times, serif;
    display: block;
    animation: slideInUp 1s ease backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--color-gray);
    animation: fadeIn 1s ease 0.6s backwards;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
    top: -200px;
    right: -200px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(225deg, var(--color-blue) 0%, #00d4ff 100%);
    bottom: -150px;
    left: -150px;
    animation-delay: -4s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s ease infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-gray);
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--color-black);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);
    transform: translateX(-50%) rotate(45deg);
}

/* ========================================
   FEATURED PROJECTS
   ======================================== */
.featured-projects {
    padding: var(--spacing-xl) 0%;
    background: var(--color-white);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -3px;
    position: relative;
    display: inline-block;
}

.title-decoration {
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, var(--color-blue) 0%, transparent 100%);
    margin-top: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-card.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.project-card.card-wide {
    grid-column: span 2;
}

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

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

.project-card:hover img {
    transform: scale(1.1);
    filter: blur(3px);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 255, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-overlay h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-align: center;
}

.project-overlay p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid var(--color-black);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-blue);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--color-white);
    border-color: var(--color-blue);
}

.btn-primary:hover::before {
    left: 0;
}

/* ========================================
   BIO SECTION
   ======================================== */
.bio-section {
    padding: var(--spacing-xl) 5%;
    background: var(--color-gray-light);
    position: relative;
}

.bio-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: 0;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(30, 64, 255, 0.1) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(100px);
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.bio-image {
    position: relative;
}

.bio-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.bio-image:hover img {
    filter: grayscale(0%);
}

.image-frame {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--color-blue);
    z-index: -1;
    transition: all 0.3s ease;
}

.bio-image:hover .image-frame {
    top: -30px;
    left: -30px;
}

.bio-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.bio-description {
    margin-bottom: 2rem;
}

.bio-description p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.bio-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
    border-top: 2px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: 0.5rem;
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid var(--color-black);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-blue);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-gray);
    text-align: center;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem;
        gap: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.card-large,
    .project-card.card-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bio-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}