html {
    scroll-behavior: smooth;
}



* {
    margin:  0;
    padding: 0;
    box-sizing: border-box;

}

:root {
    --max-width: 1400px;
    --padding-x: clamp(1rem, 5vw, 4rem);
    --spacing-lg: clamp(4rem, 8vw, 8rem);
    --spacing-md: clamp(2rem, 4vw, 4rem);
    --spacing-sm: clamp(1rem, 2vw, 2rem);
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

/* Header Styles */
header {
    text-align: center;
    padding: var(--spacing-lg) var(--padding-x);
    background-color: #f5f5f5;
    margin-bottom: var(--spacing-md);
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 30px;
    background-color: #ddd;
    position: relative;
    z-index: 1;
    margin-top: 100px;
}

h1 {
    font-size: clamp(40px, 5vw, 70px);
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.subtitle {
    font-size: clamp(18px, 3vw, 25px);
    color: #ffffff;
}

/* Navigation Styles */
nav {
    text-align: center;
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-md);
}

nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    padding: 1rem 0;
    transition: box-shadow 0.3s ease-in-out;
}

/* Shadow effect when navbar is at the top */
.nav-scrolled {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}


nav a {
    text-decoration: none;
    color: #333;
    margin: 0 clamp(0.5rem, 2vw, 1.5rem);
    font-size: clamp(0.9rem, 2vw, 1rem);
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 0.5rem;
}

/* Portfolio Styles */
.portfolio-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}

/* Small Videos Grid */
.small-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    
}

.small-video {
    aspect-ratio: 9/16;
    width: 100%;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(20px);

}

.small-video video {
    width: 100%;
    height: 100%;
    border-radius:10px;
    overflow: hidden;
    object-fit: cover;
    
}

/* Basic styling for sections */
section {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}

/* Class to be added when section is in view */
.section-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .portfolio-item {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .portfolio-item:nth-child(even) .video-container {
        order: 2;
    }
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius:10px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
}

.video-info {
    padding: var(--spacing-sm);
}

.video-title {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: 1rem;
    font-weight: 600;
}



/* About Section */
.about {
    text-align: center;
    max-width: 1100px;
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-md) var(--padding-x);
    font-size: 20px

}

.about p {
    font-size: clamp(1rem, 2vw, 1rem);
    margin-top: 15px;
    max-width:var(--max-width)

}

.organizations {
    text-align: center;
    margin: 4rem auto;
    padding: 2rem;
    /* background-color: #fff; */
    /* Optional background for the section */
    border-radius: 8px;
    /* Optional rounded corners for the section */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    /* Subtle shadow for depth */
}

.organizations h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.logo-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
    /* Slight transparency */
}

.logo:hover {
    transform: scale(1.1);
    /* Subtle zoom effect on hover */
    opacity: 1;
    /* Fully opaque on hover */
}

/* Contact Section */
.contact {
    text-align: center;
    margin: var(--spacing-lg) 0;
    padding: 0 var(--padding-x);
    font-weight: 650;
}

.contact h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 650;
    
}

.contact a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: 550;
}


@media (hover: hover) {
    nav a:hover {
        opacity: 0.7;
    }
    .contact a:hover {
        text-decoration: underline;
    }
}

@media (max-width: 480px) {
    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    nav a {
        margin: 0;
    }
}

.clients h2 {
    font-weight: bold;
}

header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

header video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
header p {
    position: relative;
    z-index: 1;
}

.video-container,
.small-video {
    position: relative;
    
}
.video-container,
.small-video {
    position: relative;
}

.video-container,
.small-video {
    position: relative;
}

.video-container::after,
.small-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease-in-out;
    pointer-events: none; /* ✅ Ensures video controls remain accessible */
    
}

/* Center the contact section */
.contact {
    text-align: center;
    padding: 20px;
}

/* Style the social media container */
.social-media {
    margin-top: 15px;
}

/* Style the Instagram icon */
.instagram-icon {
    font-size: 32px; /* Adjust size as needed */
    color: #E1306C; /* Instagram brand color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth hover effect */
}

/* Hover effect for the Instagram icon */
.instagram-icon:hover {
    color: #C13584; /* Darker shade on hover */
}

.heart-icon .fas.fa-heart {
    color: red; /* Set the heart icon color to red */
    font-size: 24px; /* Adjust the size as needed */
}

.heart-icon .fas.fa-heart:hover {
    color: darkred; /* Darker red on hover */
}
