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

:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-light: #999999;
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --border-color: #333333;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

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

/* Navigation */
.main-nav {
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 20px 0;
    padding-top: 100px;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo a::before {
    content: '';
    width: 40px;
    height: 25px;
    border: 2px solid var(--text-primary);
    border-radius: 4px;
    position: relative;
}

.brand-logo a:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

#home {
    margin-top: 3.125rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    overflow: hidden;
    padding: 0 24px 0 24px;
    text-align: center;
}

.main-heading {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    text-align: center;
    z-index: 2;
    position: relative;
    margin-bottom: 40px;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    hyphens: auto;
}

.heading-line {
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-text {
    background: linear-gradient(90deg, #ff6b35, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #4ecdc4);
    transform: scaleX(0);
    animation: underlineGrow 2s ease-out 1s forwards;
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

.main-heading .slide-in-text {
    display: inline-block;
    animation: bounceIn 1s ease-out 0.5s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.9) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animated-lines {
    position: relative;
    margin-top: 60px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line-element {
    height: 1px;
    background: var(--text-secondary);
    margin-bottom: 80px;
    opacity: 0.6;
    width: 0;
    transition: width 0.8s ease-out;
    transform: translateY(0);
}

.line-element:nth-child(1) { 
    width: 0;
    animation: expandLine1 3s ease-out infinite;
}
.line-element:nth-child(2) { 
    width: 0;
    animation: expandLine2 3s ease-out infinite 0.3s;
}
.line-element:nth-child(3) { 
    width: 0;
    animation: expandLine3 3s ease-out infinite 0.6s;
}
.line-element:nth-child(4) { 
    width: 0;
    animation: expandLine4 3s ease-out infinite 0.9s;
}
.line-element:nth-child(5) { 
    width: 0;
    animation: expandLine5 3s ease-out infinite 1.2s;
}

@keyframes expandLine1 {
    0% { width: 0; transform: translateY(0); opacity: 0.6; }
    20% { width: 1200px; transform: translateY(0); opacity: 0.6; }
    80% { width: 1200px; transform: translateY(20px); opacity: 0; }
    100% { width: 0; transform: translateY(40px); opacity: 0; }
}

@keyframes expandLine2 {
    0% { width: 0; transform: translateY(0); opacity: 0.6; }
    20% { width: 1000px; transform: translateY(0); opacity: 0.6; }
    80% { width: 1000px; transform: translateY(20px); opacity: 0; }
    100% { width: 0; transform: translateY(40px); opacity: 0; }
}

@keyframes expandLine3 {
    0% { width: 0; transform: translateY(0); opacity: 0.6; }
    20% { width: 800px; transform: translateY(0); opacity: 0.6; }
    80% { width: 800px; transform: translateY(20px); opacity: 0; }
    100% { width: 0; transform: translateY(40px); opacity: 0; }
}

@keyframes expandLine4 {
    0% { width: 0; transform: translateY(0); opacity: 0.6; }
    20% { width: 600px; transform: translateY(0); opacity: 0.6; }
    80% { width: 600px; transform: translateY(20px); opacity: 0; }
    100% { width: 0; transform: translateY(40px); opacity: 0; }
}

@keyframes expandLine5 {
    0% { width: 0; transform: translateY(0); opacity: 0.6; }
    20% { width: 400px; transform: translateY(0); opacity: 0.6; }
    80% { width: 400px; transform: translateY(20px); opacity: 0; }
    100% { width: 0; transform: translateY(40px); opacity: 0; }
}





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

/* About Section */
.about-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    overflow: hidden;
}

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

.content-block h2 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    hyphens: auto;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.content-block h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 1s ease-out 0.5s;
}

.content-block h2.animate::after {
    width: 100%;
}

.description-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.3s;
}

.content-block.animate .description-text {
    opacity: 1;
    transform: translateY(0);
}

.accent-gradient {
    background: linear-gradient(90deg, #ff6b35, #4ecdc4, #ff6b35);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.year-highlight {
    color: var(--accent-color);
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.slide-in-text {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    animation: slideIn 0.8s ease-out 0.6s both;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.dot-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 3px, transparent 3px);
    background-size: 40px 40px;
    background-position: 0 0;
    opacity: 0.5;
}

/* Portfolio Section */
.portfolio-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 80px;
    color: var(--text-primary);
}

.portfolio-grid {
    display: grid;
    gap: 60px;
}

.portfolio-item {
    max-width: 800px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.work-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.item-year {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.item-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-bottom: 20px;
}

.item-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.item-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.item-link:hover {
    transform: translateX(10px);
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 600px;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.contact-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--text-primary);
}

.contact-text {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .contact-text {
        text-align: left !important;
    }
    
    .site-footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .item-stats {
        flex-direction: column;
        gap: 10px;
    }
}

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


