@font-face {
    font-family: 'MyFont';
    src: url('./fonts/MyFont.woff2') format('woff2'),
         url('./fonts/MyFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'MyFontText';
    src: url('./fonts/text.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


/* Base Styles */
:root {
    --primary: #9b87f5;
    --primary-dark: #7E69AB; 
    --text-dark: #1A1F2C;
    --text-light: #8E9196;
    --bg-light: #F6F6F7;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'MyFontText', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Typography */
h1 {
    font-family: 'MyFont', system-ui, -apple-system, sans-serif;
    font-size: 7rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: 'MyFont', system-ui, -apple-system, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Hamburger icon (mobil) */
.nav-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mobilanpassning */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 1rem 2rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
}


/* Button Styles */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.hero-content {
    max-width: 800px;
}

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

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    aspect-ratio: 1;
    background: var(--primary);
    border-radius: 1rem;
    opacity: 0.1;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

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

.project-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.project-image {
    aspect-ratio: 4/3;
    background: var(--bg-light);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.project-overlay p {
    color: var(--white);
    opacity: 0.8;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

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

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Project Details Page */
.project-details {
    padding: 8rem 0 6rem;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-hero {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 4rem;
}

.project-info {
    max-width: 800px;
    margin: 0 auto;
}

.project-info h2 {
    margin-top: 3rem;
    font-size: 2rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}
/* Button Styles */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 4/3;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.project-overlay p {
    color: var(--white);
    opacity: 0.8;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Experience Cards */
.exp-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.exp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Skill Cards */
.skill-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.linkedin-logo {
    width: 44px;
    height: 44px;
    margin-right: 0.5rem;
}

.about-photo {
    width: 50%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border-radius: 50%;
}

.phone {

    color: var(--text-light);

}

::-webkit-scrollbar {
    width:8px;
    height:5px;
}
::-webkit-scrollbar-track {
    background: #fff; 
}
::-webkit-scrollbar-thumb {
    background: #9b87f5;
}
::-webkit-scrollbar-thumb:hover {
    background: #9b87f5;
}
::selection {
	color: #fff;
	background: #9b87f5;
}
