* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0f0a;
    --secondary-dark: #1a1f1a;
    --accent-green: #00ff41;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-dark-gray: #888888;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 15, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-green);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line:first-child {
    color: var(--text-light);
}

.title-line:last-child {
    color: var(--accent-green);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.cta-button {
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.cta-button:hover {
    background: var(--text-light);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-element {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--accent-green), transparent);
    border: 2px solid var(--accent-green);
    animation: pulse 3s ease-in-out infinite;
    position: relative;
}

.visual-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: var(--accent-green);
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0.1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Intro Section */
.intro {
    min-height: 100vh;
    padding: 6rem 2rem;
    background: var(--secondary-dark);
    display: flex;
    align-items: center;
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.intro-title {
    font-size: 4rem;
    font-weight: 300;
    color: var(--accent-green);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: fit-content;
}

.intro-text p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.achievements-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    grid-column: 1 / -1;
    justify-content: center;
}

.intro-achievements {
    flex: 1;
    padding: 1.5rem;
    background: rgba(0, 255, 65, 0.05);
    border-left: 4px solid var(--accent-green);
    border-radius: 0 8px 8px 0;
}

.intro-achievements p {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.8;
    margin: 0;
}

.intro-stats {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Portfolio Section */
.portfolio {
    min-height: 100vh;
    padding: 6rem 2rem;
    background: var(--primary-dark);
}

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

.portfolio-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 4rem;
    text-align: center;
    color: var(--text-light);
}

.portfolio-sections {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.portfolio-section {
    flex: 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 2rem;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.portfolio-item {
    background: var(--secondary-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 65, 0.1);
}

.item-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-green) 0%, transparent 100%);
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .placeholder-image {
    opacity: 0.2;
}

.portfolio-item:hover .project-image {
    transform: scale(1.05);
}

.item-info {
    padding: 2rem;
}

.item-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.item-info p {
    color: var(--text-dark-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.project-description {
    margin-bottom: 1.5rem;
}

.project-description p {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.5;
    margin-bottom: 0;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    color: var(--accent-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent-green);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

.project-icon {
    width: 20px;
    height: 20px;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: var(--secondary-dark);
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.contact-text {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid var(--accent-green);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
}

.contact-link:hover {
    background: var(--accent-green);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.2);
}

.contact-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--accent-green);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        justify-self: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-title {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 3rem;
    }
    
    .visual-element {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 15, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-title {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 2.5rem;
        text-align: center;
    }
    
    .achievements-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-stats {
        gap: 2rem;
    }
    
    .portfolio-title {
        font-size: 2.5rem;
    }
    
    .portfolio-sections {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    * {
        box-sizing: border-box;
    }
    
    .nav-container,
    .hero,
    .intro,
    .portfolio {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content,
    .intro-container,
    .portfolio-container {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .intro-achievements {
        padding: 1rem;
    }
    
    .achievements-container {
        margin-left: 0;
        margin-right: 0;
    }
}