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

body {
    font-family: 'Inter', sans-serif;
    background: #f0ebe5;
    color: #000000;
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

html {
    height: 100%;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0ebe5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #000000;
    margin: 0.5rem 0;
    opacity: 0.7;
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #000000;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

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

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

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

.hamburger.active span {
    background: #000000;
}

/* Menu Dropdown */
.menu-dropdown {
    position: fixed;
    top: 5rem;
    right: 2rem;
    background: rgba(240, 235, 229, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    min-width: 150px;
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    display: block;
    width: 100%;
    font-size: 0.77rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    color: #000000;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-item:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.menu-item:first-child {
    border-radius: 10px 10px 0 0;
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    transform: none;
}

/* Main Content */
.main {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    text-align: center;
    height: 100%;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #000000;
    margin-bottom: 3rem;
}

/* Heart symbol styling */
.heart {
    color: #000000;
    font-size: 1.1rem;
}

/* Blinking cursor */
.cursor {
    display: inline-block;
    background-color: #000000;
    width: 2px;
    height: 1.2em;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Code Bubble */
.code-bubble {
    margin-top: 1rem;
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    position: relative;
}

.code-bubble::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 16px solid rgba(0, 0, 0, 0.05);
}

.code-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333333;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* Content Bubble System */
.content-bubble {
    position: fixed;
    right: 18rem;
    background: rgba(240, 235, 229, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 997;
    max-width: 400px;
    width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: visible;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateX(20px);
    transform-origin: right center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.content-bubble.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
}

/* Specific positioning for each bubble */
.content-bubble#about-bubble {
    top: 4rem;
}

.content-bubble#projects-bubble {
    top: calc(4rem + 3rem);
}

.content-bubble#contact-bubble {
    top: calc(4rem + 6rem);
}

/* Active menu item indicator */
.menu-item.active {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    position: relative;
}

.menu-item.active::after {
    content: '•';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #000000;
}

.bubble-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000000;
    z-index: 2001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.bubble-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.bubble-inner {
    padding: 2rem;
}

.bubble-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #000000;
    margin-bottom: 1rem;
    text-align: center;
}

.bubble-line {
    width: 60px;
    height: 1px;
    background: #000000;
    margin: 0 auto 1.5rem;
}

/* About Section Styles */
.about-info h3 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #000000;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.about-info h3:first-child {
    margin-top: 0;
}

.about-info p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.05em;
    transition: background 0.3s ease;
}

.service:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Projects Section Styles */
.projects-grid {
    display: grid;
    gap: 3rem;
}

.project-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item:last-child {
    border-bottom: none;
}

.project-number {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #666666;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #000000;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    font-weight: 300;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-tech {
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.05em;
}

.project-button {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.project-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Coming Soon Project */
.project-item.coming-soon {
    text-align: center;
    opacity: 0.7;
    border-bottom: none;
}

.project-item.coming-soon .project-title {
    color: #666666;
    font-style: italic;
}

/* Contact Section Styles */
.contact-info h3 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #000000;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.contact-item h4 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #000000;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .menu-dropdown {
        top: 4rem;
        right: 1.5rem;
        min-width: 140px;
    }
    
    .content-bubble {
        right: 12rem;
        width: 350px;
        max-width: 350px;
    }
    
    .content-bubble#about-bubble {
        top: 3.5rem;
    }
    
    .content-bubble#projects-bubble {
        top: calc(3.5rem + 3rem);
    }
    
    .content-bubble#contact-bubble {
        top: calc(3.5rem + 6rem);
    }
    
    
    .hero-section {
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .overlay-inner {
        padding: 2rem;
    }
    
    .overlay-title {
        font-size: 2rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .menu-item {
        font-size: 1.4rem;
    }
    
    .services-list {
        justify-content: center;
    }
    
    .code-bubble {
        padding: 0.8rem 1.2rem;
    }
    
    .code-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .overlay-title {
        font-size: 1.8rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .menu-item {
        font-size: 1.26rem;
    }
    
    .overlay {
        padding: 1rem;
    }
    
    .overlay-inner {
        padding: 1.5rem;
    }
    
    .hamburger {
        top: 1rem;
        right: 1rem;
    }
    
    .menu-dropdown {
        top: 3.5rem;
        right: 1rem;
        min-width: 130px;
    }
    
    .menu-item {
        font-size: 0.7rem;
        padding: 0.8rem 1.2rem;
    }
    
    .content-bubble {
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        transform-origin: center top;
    }
    
    .content-bubble#about-bubble {
        top: 12rem;
    }
    
    .content-bubble#projects-bubble {
        top: 12rem;
    }
    
    .content-bubble#contact-bubble {
        top: 12rem;
    }
    
    
    .bubble-inner {
        padding: 1.5rem;
    }
    
    .bubble-title {
        font-size: 1.3rem;
    }
    
    .code-bubble {
        padding: 0.6rem 1rem;
        margin-top: 1.5rem;
    }
    
    .code-text {
        font-size: 0.75rem;
    }
}

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

/* Scroll customization for content bubbles - only show when hovering */
.content-bubble {
    scrollbar-width: none;
}

.content-bubble::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.content-bubble:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.content-bubble:hover::-webkit-scrollbar {
    width: 6px;
}

.content-bubble:hover::-webkit-scrollbar-track {
    background: transparent;
}

.content-bubble:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.content-bubble:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}