:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #252525;
    --text-primary: #f5f5f5;
    --text-secondary: #aaaaaa;
    --accent-primary: #ff7b00;
    --accent-secondary: #e05c00;
    --border-color: #333333;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--bg-secondary); /* Dark gray navbar */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 123, 0, 0.2);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: var(--bg-secondary);
}

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

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-container h1 {
    position: relative;
    z-index: 1;
}

.logo-accent {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 12px;
    font-size: 1.2rem;
    position: relative;
}

.logo-accent i:first-child {
    color: var(--accent-primary);
}

.logo-accent i:last-child {
    color: #ffffff;
    font-size: 0.8rem;
    position: absolute;
    right: -8px;
    top: -5px;
}

header h1 {
    font-size: 1.7rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
}

header h1 .highlight {
    color: var(--accent-primary);
    position: relative;
}

header h1:hover {
    transform: translateY(-2px);
}

header h1:hover .highlight {
    text-shadow: 0 0 15px var(--accent-primary), 0 0 30px rgba(255, 123, 0, 0.8);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

nav ul li {
    margin-left: 1.5rem;
    position: relative;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--accent-primary);
}

nav ul li a.active::after {
    width: 100%;
}

.github-link i {
    transition: transform 0.3s ease;
}

.github-link:hover i {
    transform: rotate(360deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 1)), url('https://source.unsplash.com/random/1920x1080/?server,technology') no-repeat center center/cover;
    min-height: 95vh;
    display: flex;
    align-items: center;
    margin-top: 70px;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.hero-text {
    flex: 1;
    text-align: left;
    padding-right: 20px;
    max-width: 600px;
}

.hero-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#logo-large {
    width: 500px;
    height: 500px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(255, 123, 0, 0.7);
    background-color: rgba(30, 30, 30, 0.7);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    border: 3px solid rgba(255, 123, 0, 0.3);
}

#logo-large:hover {
    transform: scale(1.03);
    box-shadow: 0 0 45px rgba(255, 123, 0, 0.9);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 .highlight {
    color: var(--accent-primary);
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 95%;
    line-height: 1.7;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-primary);
    color: #ffffff;
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4);
    border: 1px solid transparent;
    min-width: 240px;
}

.hero-button:hover {
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.5);
}

.hero-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Main Content Sections */
.section {
    padding: 7rem 0;
    background-color: #000000; /* Black for standard sections */
    color: var(--text-primary);
    position: relative;
}

.alt-section {
    background-color: var(--bg-secondary); /* Dark gray for alt sections */
}

#about.alt-section, #github.alt-section {
    background-color: var(--bg-secondary); /* Ensure both are the same dark gray */
    border-top: 1px solid rgba(255, 123, 0, 0.1);
    border-bottom: 1px solid rgba(255, 123, 0, 0.1);
    box-shadow: none;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-primary);
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Säkerställ läsbarhet mot både svarta och mörkt gråa bakgrunder */
.section:not(.alt-section) h2 {
    color: var(--accent-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.05rem;
}

#about .content-block p {
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: rgba(40, 40, 40, 0.9); /* Lite ljusare än bakgrunden för att sticka ut */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 123, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Logo Story Section */
.logo-story-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.centered-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto 3rem auto;
    width: 100%;
    min-height: 350px; /* Garantera utrymme för logotypen */
    position: relative;
}

/* Logo styles are now defined in the hero section */

.logo-caption {
    margin-top: 1rem;
    font-style: italic;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.logo-missing-notice {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: rgba(255, 123, 0, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    display: none;
}

.logo-display {
    flex: 1;
    min-width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-description {
    max-width: 800px;
    margin: 0 auto;
}

.logo-description p {
    margin-bottom: 1rem;
}

/* GitHub Section */
.section#github {
    background-color: #070707; /* Nästan svart bakgrund, lite ljusare än hjältesektionen */
    color: #ffffff;
    border-top: 1px solid rgba(255, 123, 0, 0.15);
    margin-top: -1px; /* Överlappa eventuella mellanrum */
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section#github h2 {
    color: #ffffff;
}

.section#github h2::after {
    background: #ffffff;
}

.github-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
}

.github-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.github-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: #ffffff; /* Vit ikon */
}

.github-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.github-button {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff; /* Vita knappar mot svart bakgrund */
    color: #000000; /* Svart text */
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.github-button:hover {
    background-color: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 123, 0, 0.4);
}

.github-button i {
    margin-right: 8px;
}

.github-commands {
    flex: 1;
    min-width: 250px;
    width: 100%;
}

.code-block {
    background-color: #111111; /* Mörkare grå mot svart bakgrund */
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #333333;
    width: 100%;
    overflow: hidden;
}

.code-title {
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.mobile-notice {
    display: none;
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

pre {
    background-color: #000000;
    border-radius: 5px;
    padding: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-primary);
    max-width: 100%;
    font-size: 0.9rem; /* Mindre text så den får plats */
}

code {
    font-family: 'Source Code Pro', monospace;
    color: #ffffff; /* Vit kod */
    font-size: 1.1rem;
    word-break: break-all; /* Bryt långa ord för att undvika overflow */
}

.copy-button {
    position: absolute;
    right: 15px;
    top: 15px;
    background: #333333;
    border: none;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid #555555;
}

.copy-button:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.copy-button i {
    margin-right: 5px;
}

.github-link {
    color: var(--accent-primary);
    font-weight: bold;
    transition: color 0.3s;
}

.github-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.github-link-large {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.github-link-large:hover {
    color: var(--accent-primary);
}

/* Footer */
footer {
    background-color: #000000;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 123, 0, 0.1);
}

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

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s;
}

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

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.scroll-to-top:hover {
    background-color: var(--accent-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        padding: 0.5rem 15px;
    }
    
    .hamburger-menu {
        display: flex;
        margin-left: auto;
    }
    
    .nav-open .hamburger-menu span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent-primary);
    }
    
    .nav-open .hamburger-menu span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-open .hamburger-menu span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent-primary);
    }
    
    /* Nav decorator styles removed */
    
    nav {
        position: relative;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        margin-top: 0;
        padding: 2rem;
        z-index: 1000;
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 123, 0, 0.2);
    }
    
    .nav-open nav ul {
        right: 0;
    }
    
    nav ul li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.5rem;
    }
    
    nav ul li a::after {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    nav ul li a:hover {
        transform: translateY(0);
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999;
        display: none;
    }
    
    .nav-open .overlay {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .hero-text {
        text-align: center;
        padding-right: 0;
    }
    
    .hero-logo {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3rem;
        margin-bottom: 0.6rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-top: 1.2rem;
        margin-bottom: 1.8rem;
    }
    
    #logo-large {
        width: 350px;
        height: 350px;
        padding: 20px;
    }
    
    .hero-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Förbättringar för GitHub-sektionen på mobil */
    .github-container {
        flex-direction: column;
    }
    
    .github-commands {
        width: 100%;
    }
    
    .code-block {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    pre {
        padding: 0.7rem;
        font-size: 0.8rem;
    }
    
    code {
        font-size: 0.9rem;
    }
    
    .copy-button {
        top: 10px;
        right: 10px;
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .mobile-notice {
        display: block;
    }
}

.section#about {
    background-color: #070707 !important;
    border-top: 1px solid rgba(255, 123, 0, 0.15);
    border-bottom: 1px solid rgba(255, 123, 0, 0.15);
    box-shadow: none;
}
