/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Modern M';
    src: url('fonts/modern M.ttf') format('truetype');
}

html {
    height: 100%;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100%;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -600px;
    left: -600px;
    width: 1400px;
    height: 1400px;
    background-image: url('img/vvlogo_gray.png');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -600px;
    right: -600px;
    width: 1600px;
    height: 1600px;
    background-image: url('img/vvlogo_gray.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

#page-wrapper {
    position: relative;
    transition: transform 0.5s ease;
    z-index: 1;
}

#page-wrapper.slide-left {
    transform: translateX(-100vw);
}

#page-wrapper.slide-right {
    transform: translateX(100vw);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #35d7a3;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #35d7a3;
    text-decoration: none;
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
}

.branding-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100vw, 1200px);
    max-width: 1200px;
    z-index: 1;
    opacity: 0;
    animation: branding-appear 0.45s ease forwards 0.05s,
               branding-background-fade 0.7s ease forwards 3.3s,
               branding-to-corner 0.8s ease forwards 4s;
}

.branding-background svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.branding-background .branding-stroke,
.branding-background .branding-fill {
    font-family: 'Modern M', sans-serif;
    font-size: 8rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.branding-background .branding-stroke {
    fill: transparent;
    stroke: #282828;
    stroke-width: 0.2px;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    animation: stroke-draw 2s ease forwards 0.3s;
}

.branding-background .branding-fill {
    fill: #35d7a3;
    stroke: none;
}

.branding-background .branding-fill-mask {
    animation: fill-progress 1s ease forwards 2.3s;
}

@keyframes branding-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes stroke-draw {
    from {
        stroke-dashoffset: 4000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fill-progress {
    from {
        width: 0;
    }
    to {
        width: 1340px;
    }
}

@keyframes branding-background-fade {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.2;
    }
}

@keyframes branding-fade {
    from {
        fill: rgba(0, 255, 255, 0.18);
        stroke: rgba(0, 255, 255, 0.95);
    }
    to {
        fill: rgba(0, 255, 255, 0.08);
        stroke: rgba(0, 255, 255, 0.18);
    }
}

@keyframes branding-to-corner {
    from {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        top: -43px;
        left: 50%;
        transform: translate(-50%, 0) scale(0.25);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeIn 0.7s ease-out 4s forwards;
}

.hero-logo-text {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0px;
    align-items: center;
    justify-items: center;
    margin-bottom: 10px;
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
    width: auto;
    height: 4rem;
    background: linear-gradient(135deg, #f7fcfb 0%, #9ef5d2 35%, #6dd6ed 65%, #afc9ff 100%);
    background-size: 260% 260%;
    mask-image: url('img/vvlogo_white.png');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    -webkit-mask-image: url('img/vvlogo_white.png');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    animation: hero-logo-shift 10s ease-in-out infinite alternate;
    margin-top: -15px;
}

.hero-logo {
    width: 100%;
    height: 100%;
    opacity: 0;
    display: block;
}

@keyframes hero-logo-shift {
    0% {
        background-position: 20% 30%;
    }
    50% {
        background-position: 80% 70%;
    }
    100% {
        background-position: 20% 30%;
    }
}

.hero-title {
    font-family: 'Modern M', sans-serif;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f7fcfb 0%, #9ef5d2 35%, #6dd6ed 65%, #afc9ff 100%);
    background-size: 260% 260%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-logo-shift 10s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-family: 'Modern M', sans-serif;
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Projects Section */
#projects {
    min-height: 100vh;
    padding: 80px 0;
    scroll-snap-align: start;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    position: relative;
    height: 300px;
    border-radius: 10px;
    border: none;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(53, 215, 163, 0.3);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.photo-card .card-image {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.photo-card:hover .card-image {
    filter: grayscale(0%);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.3s ease;
}

.card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.card-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 3;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0px solid transparent;
    border-radius: 10px;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.card:hover::before {
    border-color: #36d6a3;
}

#footer {
    min-height: 100vh;
    padding: 80px 0;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    width: 100%;
    scroll-snap-align: start;
}

.footer-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100vw, 1400px);
    max-width: 1400px;
    z-index: 1;
    opacity: 0.1;
}

.footer-background svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.footer-background .footer-stroke,
.footer-background .footer-fill {
    font-family: 'Modern M', sans-serif;
    font-size: 12rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-background .footer-stroke {
    fill: transparent;
    stroke: #282828;
    stroke-width: 0.2px;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
}

.footer-background .footer-fill {
    fill: #35d7a3;
    stroke: none;
}

.footer-background .footer-fill-mask {
    width: 0;
}

#footer.active .footer-background .footer-stroke {
    animation: stroke-draw 2s ease forwards 0.3s;
}

#footer.active .footer-background .footer-fill-mask {
    animation: fill-progress 1s ease forwards 2.3s;
}

.footer-content {
    text-align: center;
}

.footer-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 300px;
    color: #ffffff;
    font-family: 'Modern M', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    z-index: 10;
    position: relative;
}

.footer-contact {
    font-size: 2rem;
    margin-top: 100px;
    margin-bottom: 0;
    text-align: center;
    z-index: 10;
    position: relative;
}

.footer-logo {
    height: 150px;
    width: auto;
    margin-bottom: -100px;
    position: relative;
    z-index: 10;
}

.footer-contact a {
    color: #35d7a3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-contact a:hover {
    color: #35d7a3;
    text-decoration: none;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.6;
    position: absolute;
    bottom: 20px;
    right: 20px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .branding-background {
        font-size: 5rem;
    }

    .footer-title {
        font-size: 2rem;
    }

    .footer-contact {
        font-size: 1.5rem;
    }

    .footer-background .footer-stroke,
    .footer-background .footer-fill {
        font-size: 8rem;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .branding-background {
        font-size: 3rem;
    }

    .footer-title {
        font-size: 1.5rem;
    }

    .footer-contact {
        font-size: 1.2rem;
    }

    .footer-background .footer-stroke,
    .footer-background .footer-fill {
        font-size: 6rem;
    }
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Media Icons */
.social-media-icons {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 20px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.7s ease-out 3.5s forwards;
}

.social-icon {
    height: 25px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.social-media-icons a:hover .social-icon {
    transform: scale(1.2);
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-down {
    height: 40px;
    width: auto;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
    100% {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* Footer Social Media Icons */
.footer-social-media-icons {
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 60px;
    right: 20px;
    z-index: 10;
}

.footer-social-icon {
    height: 25px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.footer-social-media-icons a:hover .footer-social-icon {
    transform: scale(1.2);
    opacity: 1;
}

