/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme variables */
    --primary-color: #840000;
    --text-color: #111111;
    --text-secondary: #555555;
    --background-color: #f5f5f5;
    --secondary-background: #ffffff;
    --card-background: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --gradient-1: linear-gradient(135deg, #840000 0%, #702963 50%, #6c5ce7 100%);
    --code-background: #f1f1f1;
    --code-text: #333333;
    --button-color: #111111;
    --button-text: #ffffff;
    --transition: all 0.3s ease;
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'inter', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #a29bfe;
    --text-color: #f5f5f5;
    --text-secondary: #aaaaaa;
    --background-color: #111111;
    --secondary-background: #1a1a1a;
    --card-background: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --gradient-1: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 50%, #a29bfe 100%);
    --code-background: #222222;
    --code-text: #aaaaaa;
    --button-color: #f5f5f5;
    --button-text: #111111;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Background Words */
.background-words {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.02;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.word-line {
    display: flex;
    align-items: center;
    white-space: nowrap;
    line-height: 0.85;
}

.word-line-content {
    display: flex;
    animation: scroll 40s linear infinite;
}

.word-line:nth-child(even) .word-line-content {
    animation-direction: reverse;
}

.word-line-content-inner {
    display: flex;
    margin-right: 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.word {
    position: relative;
    font-family: var(--heading-font);
    font-size: 10vw;
    font-weight: 400;
    color: var(--text-color);
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    letter-spacing: -0.03em;
    margin-right: -0.2em;
}

.word::after {
    content: '•';
    color: var(--primary-color);
    opacity: 0.9;
    font-size: 1em;
    margin: 0 0.15em;
    position: relative;
    top: -0.1em;
    text-shadow: 0 0 25px var(--primary-color),
                 0 0 50px var(--primary-color);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.6; }
}

[data-theme="dark"] .word::after {
    text-shadow: 0 0 30px var(--primary-color),
                 0 0 60px var(--primary-color);
}

.word:last-child::after {
    display: inline-block;
}

.word-line:nth-child(1) { transform: translateX(-5%); }
.word-line:nth-child(2) { transform: translateX(2%); }
.word-line:nth-child(3) { transform: translateX(-8%); }
.word-line:nth-child(4) { transform: translateX(5%); }

@media (max-width: 768px) {
    .word {
        font-size: 15vw;
        margin-right: -0.15em;
    }
    
    .word::after {
        font-size: 0.9em;
    }
    
    .word-line-content {
        animation-duration: 30s;
    }
}

/* Header */
header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    max-width: 1400px;
    padding: 1rem 3rem;
    z-index: 100;
    background: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid transparent;
    box-shadow: none;
    transition: var(--transition);
}

[data-theme="dark"] header {
    background: rgba(17, 17, 17, 0.8);
}

header.scrolled {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(108, 92, 231, 0.15),
                0 2px 8px rgba(108, 92, 231, 0.1);
}

header:hover {
    transform: translateX(-50%) translateY(-2px);
}

header.scrolled:hover {
    box-shadow: 0 8px 40px rgba(108, 92, 231, 0.2),
                0 4px 12px rgba(108, 92, 231, 0.15);
}

[data-theme="dark"] header.scrolled:hover {
    box-shadow: 0 8px 40px rgba(162, 155, 254, 0.2),
                0 4px 12px rgba(162, 155, 254, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--primary-color);
}

nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    font-size: 1.75rem
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover:after {
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-color);
}

h1 {
    font-size: 8vw;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(108, 92, 231, 0.2);
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

.hero-content {
    max-width: 1000px;
    opacity: 1;
    transform: none;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 1.35rem;
    font-weight: 500;
    background-color: var(--code-background);
    color: var(--code-text);
}

.hero-description {
    font-size: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.4;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.75rem;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.5rem;
    border: 1px solid transparent;
}

.primary-button {
    background: var(--button-color);
    color: var(--button-text);
    border-color: var(--button-color);
}

.primary-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--button-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

[data-theme="dark"] .primary-button:hover {
    box-shadow: 0 10px 20px rgba(162, 155, 254, 0.2);
}

.secondary-button {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-button:hover {
    background: var(--primary-color);
    color: var(--button-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

[data-theme="dark"] .secondary-button:hover {
    box-shadow: 0 10px 20px rgba(162, 155, 254, 0.2);
}

/* Section Styles */
section {
    padding: 8rem 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Skills Section */
.skills-section {
    background-color: var(--secondary-background);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category {
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.skill-category h3 {
    margin-bottom: 2rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.5rem; 
}

.skill-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.project-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: none;
}

.project-card::after {
    display: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.project-card:hover::after {
    display: none;
}

.project-number {
    font-family: var(--heading-font);
    font-size: 2.0rem;
    color: var(--primary-color);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-size: 1.25rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.project-tech {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--code-background);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.project-year {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    font-size:1.50rem;
}

.project-link:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.project-link:hover:after {
    width: 100%;
}

/* Contact Section */
.contact-section {
    background-color: var(--secondary-background);
}

[data-theme="dark"] .contact-section {
    background-color: #111111;
}

.contact-content {
    
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.4;
    text-align: left;
}

/* Capsule Contact Design */
.contact-capsule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--card-background);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    margin: 0 auto;
    max-width: 600px;
}

.capsule-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    text-align: center;
    white-space: nowrap;
    font-size: 1.75rem;
}

.capsule-item:hover {
    background-color: var(--background-color);
    transform: translateY(-2px);
}

.capsule-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.contact-icon {
    font-size: 1.45rem;
    margin-right: 0.5rem;
}

.contact-text {
    font-weight: 500;
}

.copy-link {
    cursor: pointer;
}

/* Copy tooltip */
.copy-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-color);
    background-color: var(--card-background);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 4px 8px var(--shadow-color);
    white-space: nowrap;
}

.copy-link:hover .copy-tooltip {
    opacity: 0.9;
}

.copy-link.copied .copy-tooltip {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-capsule {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
    }
    
    .capsule-item {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .capsule-divider {
        width: 50%;
        height: 2px;
        margin: 0.5rem 0;
    }
    
    h1 {
        font-size: 12vw;
        background-size: 200% auto;
        animation: gradientShift 5s ease infinite;
    }
    
    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }
    
    .background-words {
        transform: rotate(-15deg);
    }
    
    .word {
        font-size: 45vw;
    }
}

/* Footer */
footer {
    padding: 4rem 0;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-secondary);
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    position: relative;
    width: 48px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle {
    background: #444;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 2px;
    left: 3px;
    transition: var(--transition);
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(24px);
    background: var(--primary-color);
}

.theme-indicator {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Code-like elements */
.code-block {
    background-color: var(--code-background);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    color: var(--code-text);
}

/* Responsive Design */
@media (max-width: 1200px) {
    h1 {
        font-size: 10vw;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .project-card {
        grid-template-columns: 60px 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        top: 1rem;
        width: calc(100% - 0.75rem);
        padding: 0.75rem 1.5rem;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    nav {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .theme-switcher {
        order: 3;
    }
    
    h1 {
        font-size: 12vw;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-number {
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .word {
        font-size: 40vw;
    }
} 