@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Poppins:wght@400;600&display=swap');

:root {
    --primary-color: #42b983;
    --secondary-color: #364c62;
    --bg-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.logo-text {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #3da876;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/vinlandsaga0k.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.glitch {
    font-size: 4rem;
    font-weight: 700;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
                -0.025em -0.05em 0 rgba(0,255,0,0.75),
                0.025em 0.05em 0 rgba(0,0,255,0.75);
    animation: glitch 500ms infinite;
}

.subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: var(--primary-color);
}

.description {
    margin-top: 1rem;
    font-size: 1.1rem;
    max-width: 600px;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Image Carousel Styles */
.image-carousel {
    position: relative;
    width: 400px;
    height: 400px;
}

.carousel-container {
    width: 400px;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(66,185,131,0.3);
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(66, 185, 131, 0.8);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.carousel-btn:hover {
    background: rgba(66, 185, 131, 1);
    transform: translateY(-50%) scale(1.1);
}

.image-carousel:hover .carousel-btn {
    opacity: 1;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.profile-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(66,185,131,0.3);
    transition: var(--transition);
}

.profile-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(66,185,131,0.5);
}

/* Footer */
.footer {
    background-color: rgba(26, 26, 26, 0.95);
    padding: 2rem 0;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

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

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

.copyright {
    color: #666;
}

#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
    background-color: #3da876;
}

/* Animations */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
                    -0.025em -0.05em 0 rgba(0,255,0,0.75),
                    0.025em 0.05em 0 rgba(0,0,255,0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
                    -0.025em -0.05em 0 rgba(0,255,0,0.75),
                    0.025em 0.05em 0 rgba(0,0,255,0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75),
                    0.025em 0.025em 0 rgba(0,255,0,0.75),
                    -0.05em -0.05em 0 rgba(0,0,255,0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255,0,0,0.75),
                    0.025em 0.025em 0 rgba(0,255,0,0.75),
                    -0.05em -0.05em 0 rgba(0,0,255,0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75),
                    0.05em 0 0 rgba(0,255,0,0.75),
                    0 -0.05em 0 rgba(0,0,255,0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255,0,0,0.75),
                    0.05em 0 0 rgba(0,255,0,0.75),
                    0 -0.05em 0 rgba(0,0,255,0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255,0,0,0.75),
                    -0.025em -0.025em 0 rgba(0,255,0,0.75),
                    -0.025em -0.05em 0 rgba(0,0,255,0.75);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .profile-img {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: var(--text-light);
        margin: 5px 0;
        transition: var(--transition);
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Add these styles to your existing style.css file */

.about-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url('../images/vinlandsaga1k.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-header {
    text-align: center;
    padding: 4rem 2rem;
}

.about-header h2 {
    color: var(--primary-color);
    margin-top: 1rem;
}

.typing-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.typing-text {
    border-right: 3px solid var(--primary-color);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    font-size: 1.2rem;
    color: #fff;
}

.about-section, .featured-project, .skills-section, .contact-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-showcase {
    margin-top: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.video-container img {
    width: 100%;
    border-radius: 10px;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s ease;
}

.project-btn:hover {
    transform: translateY(-2px);
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.skill-item img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.skill-item:hover img {
    transform: scale(1.1);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

@media (max-width: 768px) {
    .about-header {
        padding: 2rem 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .project-links {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}