/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #2c3e50;
    --text-light: #555;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #ffffff;
}

/* Scroll Animation Styles */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Header & Navigation */
header {
    background: #000000;
    backdrop-filter: blur(10px);
    box-shadow: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: none;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
    text-align: center;
    margin-left: 30px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 2rem;
    flex: 1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    justify-content: center;
}

/* Login Button */
.login-btn {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: var(--transition);
    white-space: nowrap;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.login-btn::after {
    display: none;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.3s;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.lang-current:hover {
    color: rgba(255, 255, 255, 1);
}

.lang-icon {
    font-size: 1.1rem;
}

.lang-arrow {
    font-size: 0.7rem;
    margin-left: 0.2rem;
    transition: transform 0.3s ease;
}

.language-switcher:hover .lang-arrow,
.language-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.language-switcher:hover .lang-dropdown,
.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    display: block;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 1);
}

.lang-option.active {
    color: var(--primary-color);
    font-weight: 600;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

nav a:hover::after {
    width: 100%;
}

nav li {
    border: none;
}

nav a::before {
    content: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                      url('https://cdn.pixabay.com/photo/2019/07/14/16/27/pen-4337521_960_720.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--white);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 0;
    padding-top: 120px;
    position: relative;
    width: 100%;
    animation: heroBrighten 0.8s ease forwards;
}

@keyframes heroBrighten {
    from {
        background-image: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)),
                          url('https://cdn.pixabay.com/photo/2019/07/14/16/27/pen-4337521_960_720.jpg');
    }
    to {
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                          url('https://cdn.pixabay.com/photo/2019/07/14/16/27/pen-4337521_960_720.jpg');
    }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(255,255,255,0.3);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 0.5s ease 0.2s forwards;
}

/* Typing Effect */
.typing-effect {
    display: inline-block;
    position: relative;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid #ffffff;
    white-space: nowrap;
    animation: typing 2s steps(30) 0.3s forwards, blink-caret 0.75s step-end infinite;
    max-width: 0;
}

@keyframes typing {
    from { max-width: 0; }
    to { max-width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ffffff; }
}

.typing-cursor {
    display: none;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInUp 0.5s ease 1s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.5s ease 1.3s forwards;
}

/* Mobile Responsive - Keep animations */
@media (max-width: 768px) {
    .typing-text {
        animation: typing 1.5s steps(25) 0.3s forwards, blink-caret 0.75s step-end infinite;
    }
    
    .fade-in-delay {
        animation: fadeInUp 0.5s ease 0.8s forwards;
    }
    
    .fade-in-delay-2 {
        animation: fadeInUp 0.5s ease 1.1s forwards;
    }
}

.hero-content .description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

/* Section Common Styles */
section {
    padding: 5rem 0;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

/* Container for content sections */
.about-content,
.philosophy-grid,
.project-grid,
.contact-info {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-left: 2rem;
    padding-right: 2rem;
}

.profile-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    position: relative;
}

.arrow-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.profile-highlight {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 2;
    padding: 0 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.profile-typing {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-color);
    animation: typing 3s steps(60) forwards, blink 0.75s step-end infinite;
    max-width: 0;
}

.profile-typing-delay {
    animation: typing 3s steps(60) 3.2s forwards, blink 0.75s step-end infinite 3.2s;
}

@keyframes typing {
    from { max-width: 0; }
    to { max-width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* About Section */
.about {
    background: var(--bg-light);
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    width: 100%;
    max-width: 250px;
    height: 250px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    overflow: hidden;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Philosophy Section */
.philosophy {
    background: var(--white);
    padding: 5rem 0;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.philosophy-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.philosophy-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.philosophy-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: var(--bg-light);
    padding: 5rem 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover .project-image::before {
    transform: translateX(100%);
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-card:nth-child(4) .project-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-info .date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #e8eaf6;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Technical Architecture Section */
.architecture {
    background: var(--bg-light);
    padding: 5rem 0;
}

.architecture-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.diagram-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.diagram-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.diagram-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.diagram-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-color);
}

.diagram-placeholder p:first-child {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.diagram-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

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

/* Contact Section */
.contact {
    background: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: nowrap;
    margin-top: 2rem;
    max-width: 900px;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.contact-item .icon {
    font-size: 2rem;
}

.contact-item p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 60px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer */
footer {
    background: #000000;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero {
        min-height: 100vh !important;
        background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                          url('https://cdn.pixabay.com/photo/2019/07/14/16/27/pen-4337521_960_720.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        margin-top: 80px !important;
        padding: 3rem 1rem !important;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-content .subtitle {
        font-size: 1.3rem !important;
        line-height: 1.3;
        margin-bottom: 0.8rem !important;
    }

    .hero-content .description {
        font-size: 0.85rem !important;
        line-height: 1.5;
        margin-bottom: 1.5rem !important;
    }

    .cta-button {
        padding: 0.7rem 1.8rem !important;
        font-size: 0.85rem !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh !important;
        background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                          url('https://cdn.pixabay.com/photo/2019/07/14/16/27/pen-4337521_960_720.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        margin-top: 90px !important;
        padding: 2.5rem 1rem !important;
        width: 100%;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.4rem !important;
        line-height: 1.4;
        margin-bottom: 1rem !important;
    }

    .hero-content .description {
        font-size: 0.9rem !important;
        line-height: 1.6;
        margin-bottom: 1.8rem !important;
    }

    .cta-button {
        padding: 0.8rem 2rem !important;
        font-size: 0.9rem !important;
    }
    
    /* About Section Mobile */
    .about {
        padding: 3rem 1rem !important;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-image {
        max-width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .skills {
        justify-content: center;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Navigation Mobile */
    nav ul {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 0.5rem;
    }

    nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }

    .login-btn {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin-top: 0.5rem;
        font-size: 0.8rem !important;
        padding: 0.4rem 1rem !important;
    }

    .nav-container {
        padding: 0.8rem 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }
    
    /* Philosophy Section Mobile */
    .philosophy {
        padding: 3rem 1rem !important;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .philosophy-card {
        padding: 1.5rem;
    }

    .philosophy-card .icon {
        font-size: 2.5rem;
    }

    .philosophy-card h3 {
        font-size: 1.3rem;
    }

    .philosophy-card p {
        font-size: 0.9rem;
    }

    /* Projects Section Mobile */
    .projects {
        padding: 3rem 1rem !important;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        border-radius: 12px;
    }

    .project-image {
        height: 200px;
        font-size: 3rem;
    }

    .project-info {
        padding: 1.2rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 3rem 1rem !important;
    }

    .contact-info {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .contact-item {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
        background: var(--bg-light);
        border-radius: 10px;
    }

    .contact-item .icon {
        font-size: 1.8rem;
    }

    .contact-item p {
        min-width: 70px;
        text-align: left;
        font-size: 0.9rem;
    }

    .contact-item a {
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-all;
    }

    /* Hamburger Menu Mobile */
    .hamburger {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger span {
        background: #ffffff !important;
        height: 2px !important;
    }

    header {
        background: #000000 !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border-bottom: none !important;
    }

    .nav-container {
        position: relative;
        flex-direction: column;
        align-items: center;
        padding: 0.8rem 0;
        background: #000000 !important;
        border-bottom: none !important;
    }

    .header-top {
        width: 100%;
        padding: 0 1rem;
        margin-bottom: 0.8rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex: 0 0 auto;
        text-align: left;
    }

    .header-bottom {
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.5rem;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    /* Language Switcher Mobile - In header-top on right */
    .language-switcher {
        position: static;
        width: auto;
        margin: 0;
    }

    .lang-current {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .lang-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        background: #1a1a1a;
        min-width: 120px;
    }

    .language-switcher:hover .lang-dropdown,
    .language-switcher.active .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .lang-option {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
    }

    .lang-option:first-child {
        border-radius: 8px 8px 0 0;
    }

    .lang-option:last-child {
        border-radius: 0 0 8px 8px;
        border-bottom: none;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: #1a1a1a;
        transition: left 0.3s ease;
        padding-top: 3rem;
        z-index: 1000;
        border-right: none;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
        display: flex;
    }

    nav li {
        width: 100%;
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #2a2a2a;
        color: #ffffff;
    }

    nav a:hover {
        background: #252525;
    }

    nav a::after {
        display: none;
    }

    nav li:has(.login-btn) {
        order: -10 !important;
    }

    .login-btn {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 1.2rem 1.5rem !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #2a2a2a !important;
        background: #1a1a1a !important;
        box-shadow: none !important;
        color: #3b82f6 !important;
        font-weight: 600 !important;
    }

    .login-btn:hover {
        background: #252525 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Section Common Mobile */
    section {
        padding: 3rem 1rem !important;
    }

    section h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .profile-highlight {
        font-size: 1.1rem;
        padding: 1.5rem 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Login Button */
.login-btn {
    background: #000000 !important;
    border: 2px solid #3b82f6 !important;
    padding: 6px 18px !important;
    border-radius: 20px !important;
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 2rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.login-btn.logged-in {
    color: #ff7e3e !important;
    border-color: #ff7e3e !important;
    box-shadow: 0 2px 8px rgba(255, 126, 62, 0.2) !important;
    background: #000000 !important;
}

.login-btn:not(.logged-in) {
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    background: #000000 !important;
}

.login-btn::after {
    display: none !important;
}

.login-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.login-btn.logged-in:hover {
    color: #ff7e3e !important;
}

.login-btn:not(.logged-in):hover {
    color: #3b82f6 !important;
}

header.scrolled .login-btn {
    background: #000000;
}

header.scrolled .login-btn.logged-in {
    border-color: #ff7e3e;
    color: #ff7e3e;
}

header.scrolled .login-btn:not(.logged-in) {
    border-color: #3b82f6;
    color: #3b82f6;
}

header.scrolled .login-btn:hover {
    background: white;
}
