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

:root {
    --primary-color: #249858;
    --secondary-color: #6366f1;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}





/* Typography System */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 600;
    color: var(--text-primary);
}

/* Menu Styles */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.menu .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo svg {
    height: 40px;
    width: auto;
}

.menu_items {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu_items a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.menu_items a:hover {
    color: var(--primary-color);
    background: rgba(36, 152, 88, 0.1);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding-top: 100px;
}

.hero-content {
    width: 100%;
    max-width: none;
}

#hero h1 {
    animation: slideInUp 1s ease-out;
}

#hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

#hero h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-light);
    animation: slideInUp 1s ease-out 0.4s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--bg-secondary);
}

.gutter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Projects Section - macOS Windows */
#experience {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    list-style: none;
    margin-top: 3rem;
}

.projects li {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    padding-top: 30px;
}

.projects li:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* macOS Window Header */
.projects li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #050917;
    z-index: 2;
}

.projects li::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow:
        18px 0 0 #ffbd2e,
        36px 0 0 #28ca42;
    z-index: 3;
}

.employment {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.employment picture {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    min-height: 200px;
    overflow: visible;
}

.employment img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Special styling for CHECK24 logo */
.check24-logo {
    background-color: #022D94 !important;
    padding: 42px 1.5rem 1.5rem !important;
}

.check24-logo img {
    max-width: calc(100% - 3rem);
    max-height: calc(100% - 30px);
    width: auto !important;
    height: auto !important;
}

.employment-content {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

.employment h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.timespan {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.position {
    font-style: italic;
}

/* Skills Section */
#skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

#skills > div {
    padding: 0;
}

/* Skills Lists */
ul {
    list-style: none;
    padding-left: 0;
}

#introduction ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

#introduction ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

#introduction ul li:hover {
    background: rgba(36, 152, 88, 0.05);
    padding-left: 2rem;
    transition: var(--transition);
}

/* Education Section */
#education ul {
    list-style: none;
}

#education>.gutter>ul>li {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.institution {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.achievements {
    margin-top: 1rem;
}

.achievements li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* Contact Section */
#hire_me {
    background: var(--bg-dark);
    color: white;
}

#hire_me h2 {
    color: white;
}

#hire_me h2::after {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

#hire_me p {
    color: #d1d5db;
}

.contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
}

.contacts .icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.contacts a {
    color: var(--accent-color);
    text-decoration: none;
}

.contacts a:hover {
    text-decoration: underline;
}

/* Grid System */
[class*="col-"] {
    width: 100%;
    padding: 1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .col-m-4 {
        width: 33.333%;
    }

    .col-m-6 {
        width: 50%;
    }

    .col-m-12 {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .col-l-2 {
        width: 16.666%;
    }

    .col-l-3 {
        width: 25%;
    }

    .col-l-4 {
        width: 33.333%;
    }

    .col-l-6 {
        width: 50%;
    }

    .col-l-12 {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .col-xl-2 {
        width: 16.666%;
    }

    .col-xl-3 {
        width: 25%;
    }

    .col-xl-4 {
        width: 33.333%;
    }

    .col-xl-6 {
        width: 50%;
    }

    .col-xl-12 {
        width: 100%;
    }
}

/* Creative Code Animation */
.creative-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
    cursor: pointer;
    z-index: 1000;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Additional Creative Elements */
.creative-developer-badge {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%) rotate(90deg);
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 15px;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.8;
}

/* Hover Effects for Skills */
#introduction ul li {
    transition: var(--transition);
    cursor: pointer;
}

#introduction ul li:hover::before {
    content: '⚡';
    transform: scale(1.2);
}

/* Responsive Grid Improvements */
@media (max-width: 768px) {
    .creative-indicator {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .menu_items {
        gap: 1rem;
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #skills {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #skills > div {
        padding: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #skills {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    #skills {
        grid-template-columns: repeat(3, 1fr);
    }

    #skills > div:nth-child(4) {
        grid-column: 1 / -1;
    }
}