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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.site-logo {
    height: 60px;
    width: auto;
    margin-top: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.site-logo:hover {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.site-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Main Content */
.main-content {
    margin-top: 100px;
    padding: 6rem 2rem;
    text-align: center;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.welcome-section {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* Welcome Animation */
.welcome-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.dot-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.dot-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.dot-4 {
    top: 40%;
    right: 30%;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.6;
    }
}

/* Welcome Title */
.welcome-title {
    font-family: 'Crimson Text', serif;
    font-size: 4rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out forwards;
}

.title-line:first-child {
    animation-delay: 0.3s;
}

.title-line.highlight {
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.6s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s ease-out 0.9s forwards;
}

/* Welcome CTA */
.welcome-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 1s ease-out 1.2s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
    font-family: 'Space Grotesk', sans-serif;
}

.explore-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.explore-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-brand {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-center p {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.footer-subtitle {
    color: #a0a0a0 !important;
    font-size: 0.8rem !important;
    font-weight: 300 !important;
    font-style: italic;
}

.footer-contact {
    margin-top: 0.5rem;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    letter-spacing: -0.01em;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Admin Link in Footer */
.admin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    letter-spacing: -0.01em;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.admin-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.admin-link:hover .admin-icon {
    transform: rotate(90deg);
    opacity: 1;
}

.admin-text {
    font-weight: 400;
    opacity: 0.9;
}

.admin-link:hover .admin-text {
    opacity: 1;
}

/* Dresser Container */
.dresser-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.dresser-container.open {
    left: 0;
}

.dresser {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Dresser Top */
.dresser-top {
    height: 80px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 16px 16px 0 0;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Drawers Container */
.drawers-container {
    flex: 1;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 0 0 16px 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

/* Drawer Styles */
.drawer {
    margin-bottom: 1.5rem;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer:last-child {
    margin-bottom: 0;
}

.drawer-handle {
    padding: 1.5rem 2rem;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-handle:hover {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    transform: translateY(-1px);
}

.drawer-handle::after {
    content: '▼';
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.drawer.open .drawer-handle::after {
    transform: rotate(180deg);
}

.drawer-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.drawer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1a1a1a;
}

.drawer.open .drawer-content {
    max-height: 1200px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem;
}

.project-card {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.project-card h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.project-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 300;
}

.project-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
    font-family: 'Space Grotesk', sans-serif;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

/* Empty Drawer */
.empty-drawer {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.empty-drawer h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 400;
}

.empty-drawer p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
}

.placeholder-icon {
    font-size: 3.5rem;
    opacity: 0.4;
    margin-top: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border-radius: 20px;
    width: 95%;
    height: 90%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

#project-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 20px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        gap: 1rem;
    }
    
    .site-logo {
        height: 36px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .welcome-title {
        font-size: 2.8rem;
    }
    
    .welcome-text {
        font-size: 1.2rem;
    }
    
    .dresser {
        padding: 2rem 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 98%;
        height: 95%;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .footer {
        padding: 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
    }
    
    .footer-brand {
        font-size: 0.8rem;
    }
    
    .footer-center p {
        font-size: 0.8rem;
    }
    
    .footer-subtitle {
        font-size: 0.75rem !important;
    }
    
    .contact-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .admin-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .logo-container {
        gap: 0.8rem;
    }
    
    .site-logo {
        height: 32px;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 4rem 1rem;
    }
    
    .welcome-title {
        font-size: 2.2rem;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
    
    .projects-grid {
        padding: 1.5rem 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .explore-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}