/* Base styles */
:root {
    --primary-color: #00adb5;
    --background-color: #222831;
    --text-color: #eeeeee;
    --secondary-bg: #393e46;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 1000;
    width: 100%;
}

.logo {
    height: auto;
    max-width: 150px;
    width: 120px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 9999;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.primary-navigation a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

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

.primary-navigation a:hover::after {
    width: 100%;
}

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

@media (max-width: 1200px) {
    .mobile-nav-toggle {
        display: block;
    }

    .primary-navigation {
        display: none;
    }

    .primary-navigation[data-visible="true"] {
        display: flex;
        position: fixed;
        inset: 0 0 0 30%;
        background: rgba(34, 40, 49, 0.98);
        backdrop-filter: blur(1rem);
        padding: min(30vh, 10rem) 2rem;
        flex-direction: column;
        z-index: 1000;
    }

    .mobile-nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

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

hr {
    border: none;
    border-top: 1px solid rgba(238, 238, 238, 0.1);
    margin: 2rem 0;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    margin: 5rem 0;
    position: relative;
    padding: 0 1rem;
    max-width: 1280px;
    margin: 5rem auto;
}

.arrow {
    position: absolute;
    left: -5rem;
    top: 1.5rem;
    width: 100px;
    height: auto;
}

@media (max-width: 1400px) {
    .arrow {
        left: -2rem;
        width: 80px;
    }
}

@media (max-width: 1200px) {
    .arrow {
        left: 0;
        width: 60px;
    }
}

.hero-content {
    flex: 1;
}

.name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background-color: rgba(57, 62, 70, 0.75);
    color: var(--text-color);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(238, 238, 238, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(57, 62, 70, 0.9);
    border-color: var(--primary-color);
}

.heroimg,
.aboutMeImg {
    width: 656px;
    height: 640px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* About Section */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10rem;
    margin: 5rem auto;
    max-width: 1280px;
    padding: 0 1rem;
}

.about-content {
    max-width: 32rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
}

.section-title.center {
    justify-content: center;
}

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

.light {
    width: 4rem;
}

/* Works Section */
.works {
    background-image: url("media/svg/background.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10rem 2rem;
    margin: 5rem 0;
}

.works-container {
    max-width: 1280px;
    margin: 0 auto;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.work-item {
    background-color: rgba(57, 62, 70, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    border: 1px solid rgba(238, 238, 238, 0.1);
}

.work-item:hover {
    background-color: rgba(57, 62, 70, 0.6);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.work-item img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.work-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    margin: 5rem auto;
    text-align: center;
    max-width: 1280px;
    padding: 0 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    background-color: rgba(57, 62, 70, 0.5);
    padding: 1rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    border: 1px solid rgba(238, 238, 238, 0.1);
}

.social-links a:hover {
    background-color: rgba(57, 62, 70, 0.7);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.logof {
    width: 20px;
    height: 21px;
}

.logod {
    width: 50px;
    height: 50px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--secondary-bg);
}

/* Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1280px) {

    .hero,
    .about-section,
    .contact-section {
        padding: 0 2rem;
    }

    .works {
        padding: 5rem 2rem;
    }

    .heroimg,
    .aboutMeImg {
        width: 500px;
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-section {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .section-title {
        justify-content: center;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .heroimg,
    .aboutMeImg {
        width: 400px;
    }

    .arrow {
        position: static;
        width: 50px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-item {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 1rem;
    }

    .works {
        padding: 3rem 1rem;
    }

    .heroimg,
    .aboutMeImg {
        width: 100%;
        max-width: 300px;
    }
}