/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hide default navigation for minimalist approach */
#mainNav {
    display: none;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

/* Hero background blade effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 300%;
    height: 200%;
    background: linear-gradient(
        30deg,
        transparent 20%,
        rgba(255, 255, 255, 0.03) 30%,
        rgba(255, 255, 255, 0.08) 35%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 60%
    );
    transform: rotate(30deg);
    animation: hero-blade-sweep 12s ease-in-out infinite;
    animation-delay: 3.5s;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

@keyframes enhanced-blade-sweep {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        transform: translateX(0%) rotate(45deg);
    }
    80% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes hero-blade-sweep {
    0% {
        transform: translateX(-200%) translateY(-150%) rotate(30deg);
        opacity: 0;
    }
    8% {
        transform: translateX(-50%) translateY(-50%) rotate(30deg);
        opacity: 0.3;
    }
    20% {
        transform: translateX(0%) translateY(0%) rotate(30deg);
        opacity: 0.5;
    }
    35% {
        transform: translateX(50%) translateY(50%) rotate(30deg);
        opacity: 0.4;
    }
    50% {
        transform: translateX(150%) translateY(100%) rotate(30deg);
        opacity: 0.2;
    }
    75% {
        transform: translateX(250%) translateY(150%) rotate(30deg);
        opacity: 0.1;
    }
    100% {
        transform: translateX(300%) translateY(200%) rotate(30deg);
        opacity: 0;
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 100;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    padding: 8px 0;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.9;
    text-transform: none;
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.1);
    animation: blurInTitle 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-motto {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #888888;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMotto 1s ease forwards 2.2s;
}

/* Projects Section */
.projects-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    background-color: #111111;
}

.project-card {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 3rem;
    border: 1px solid #333333;
    background: rgba(26, 26, 26, 0.5);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.project-link:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
    color: inherit;
}


.project-logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-logo {
    max-width: 320px;
    max-height: 130px;
    width: auto;
    height: auto;
    filter: brightness(0.9);
    transition: all 0.4s ease;
    object-fit: contain;
}

.project-link:hover .project-logo {
    filter: brightness(1.1);
    transform: scale(1.05);
}


.project-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    transition: color 0.4s ease;
}

.project-link:hover .project-title {
    color: #ffffff;
}


.project-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #888888;
    font-weight: 300;
    font-style: italic;
}

/* About Section */
.about-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    background-color: #0a0a0a;
}

.about-content {
    max-width: 800px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0s;
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.bio {
    text-align: left;
}

.bio-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.bio-role {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #888888;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.bio-email {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: #aaaaaa;
    font-weight: 400;
    margin-bottom: 0;
}

.bio-email a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bio-email a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.about-caption {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: #666666;
    font-style: italic;
    text-align: center;
}

/* Footer */
.minimal-footer {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #111111;
    border-top: 1px solid #333333;
}

.contact-link {
    color: #888888;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ffffff;
}

/* Animations */
@keyframes blurInTitle {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.1);
        letter-spacing: 0.2em;
    }
    25% {
        opacity: 0.3;
        filter: blur(15px);
        transform: scale(1.08);
    }
    50% {
        opacity: 0.6;
        filter: blur(8px);
        transform: scale(1.04);
    }
    75% {
        opacity: 0.85;
        filter: blur(3px);
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
        letter-spacing: 0.05em;
    }
}

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

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer styling for minimalist theme */
.footer {
    background-color: #111111 !important;
    border-top: 1px solid #333333;
    color: #888888;
    font-size: 0.9rem;
}

.footer .container {
    max-width: 1200px;
}

.footer-link {
    color: #888888 !important;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ffffff !important;
}

/* Modal styling for dark theme */
.modal-content {
    background-color: #1a1a1a;
    color: #f5f5f5;
    border: 1px solid #333333;
}

.modal-header {
    border-bottom: 1px solid #333333;
}

.modal-header .modal-title {
    color: #ffffff;
    font-weight: 600;
}

.modal-body a {
    color: #aaaaaa;
    text-decoration: none;
}

.modal-body a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.modal-body {
    color: #f5f5f5;
    line-height: 1.6;
}

.modal-body h6 {
    color: #ffffff;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.modal-body p {
    color: #e8e8e8;
    margin-bottom: 1rem;
}

.modal-body ul {
    color: #e8e8e8;
}

.modal-body li {
    margin-bottom: 0.3rem;
}

.modal-footer {
    border-top: 1px solid #333333;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.btn-secondary {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
    font-weight: 500;
}

.btn-secondary:hover {
    background-color: #444444;
    border-color: #444444;
    color: #ffffff;
}

/* Blade reflection effect */
.reflection-container {
    position: relative;
    overflow: hidden;
}

.reflection-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 300%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 70%
    );
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: blade-sweep 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.reflection-container:hover::before {
    animation-duration: 2s;
    opacity: 1;
}

@keyframes blade-sweep {
    0% {
        transform: translateX(-200%) translateY(-200%) rotate(45deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(200%) translateY(200%) rotate(45deg);
        opacity: 0;
    }
}

/* Apply reflection to key elements */
.hero-title,
.project-link,
.bio-name {
    position: relative;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .bio {
        text-align: center;
    }
    
    .hero-section {
        padding: 2rem;
    }
    
    .projects-section {
        padding: 4rem 2rem;
    }
    
    .project-logo {
        max-width: 180px;
        max-height: 100px;
    }
    
    .about-section {
        padding: 4rem 1rem;
    }
}
