/* Custom Fonts for Sections */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Oswald:wght@300;500&family=Playfair+Display:wght@400;700&family=Roboto+Mono:wght@300&family=Knewave:wght@300&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-link {
            position: relative;
            text-transform: uppercase;
            font-size: 0.875rem;
            letter-spacing: 0.05em;
            color: #6c757d !important;
            transition: color 0.3s ease;
            overflow: hidden; /* Crucial for containing the animation */
            padding: 0.5rem 0; /* Add padding to make space for the effect */
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background: #000;
            transition: width 0.3s ease;
        }
        
        /* NEW: Particle/Sparkle Effect Layer (The 'after' is now the underline) */
        .nav-link::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px; /* Initial small size */
            height: 5px; /* Initial small size */
            background: radial-gradient(circle, #008bff 0%, transparent 70%); /* Blue sparkle */
            border-radius: 50%;
            opacity: 0;
            /* Start small and centered */
            transform: translate(-50%, -50%) scale(0); 
            transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease-out;
            z-index: 10;
            pointer-events: none; /* Allows click-through */
        }
        
        .nav-link:hover {
            color: #000 !important;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        /* NEW: Hover state for the Sparkle Effect */
        .nav-link:hover::before {
            /* Expands the 'particle' from the center */
            transform: translate(-50%, -50%) scale(40); /* Massive scale to cover the link */
            opacity: 0.1; /* Keeps it subtle and light, like a ripple or energy burst */
        }


.hero-section {
    background-color: #f8f9fa;
    padding: 8rem 0 5rem;
}

/* 1. Custom Font for Hero */
.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: -2px;
}

/* 1. Custom Font for About */
.about-section h2 {
    font-family: 'Playfair Display', serif;
}

/* 1. Custom Font for Services */
.service-card h3 {
    font-family: 'Oswald', sans-serif;
}

/* 1. Custom Font for Contact */
.contact-section h2 {
    font-family: 'Knewave', cursive;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
    /* Remove box-shadow initially, let hover apply it */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%); /* Darker gradient for better text visibility */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* 2. Portfolio Image/Thumbnail Styling */
.portfolio-image {
    aspect-ratio: 4/3;
    width: 100%;
    height: 100%;
    display: block; /* Use block for image container */
    overflow: hidden; /* Hide overflow from scale effect */
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area without distortion */
    transition: transform 0.4s ease;
    display: block;
}

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

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
}

/* Modal Overlay Styles (Behance-style) */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-wrapper {
    position: relative;
    width: 95%;
    max-width: 1000px;
    height: 95vh;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4); 
    display: flex;
    flex-direction: column;
}

.project-modal.active .modal-content-wrapper {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: black;
    transform: rotate(90deg);
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
}

.behance-content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-media-wrapper {
    width: 100%;
    margin-bottom: 2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info {
    padding: 0 0 3rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 3rem;
}

.modal-info h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-info .year {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: block;
}

.modal-info .description {
    color: #495057;
    line-height: 1.7;
    font-size: 1.1rem;
}

.custom-project-details {
    padding-bottom: 4rem;
}

.custom-project-details h4 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #343a40;
    border-left: 4px solid #007bff;
    padding-left: 15px;
}

.custom-project-details p, .custom-project-details ul, .custom-project-details li {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    margin-left: 15px;
}



/* 4. Floating Social Media Icons - Middle Right */
#social-float {
    position: fixed;
    top: 50%; /* Center vertically */
    right: 20px;
    transform: translateY(-50%); /* Adjust for perfect vertical centering */
    z-index: 990; 
    display: flex;
    flex-direction: column; /* Vertical orientation */
    gap: 20px;
    padding: 12px 8px; /* Adjusted padding for column layout */
    border-radius: 9999px; 
    background-color: rgba(236, 255, 220, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* 6. Center align icons */
    align-items: center; 
}

#social-float a {
    color: #343a40;
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

#social-float a:hover {
    /* GLOW & HIGHLIGHT EFFECT */
            color: #28a745; /* Original Green, but a bit brighter for highlight */
            transform: scale(2); /* Increased scale for a more pronounced highlight */
            text-shadow: 
                0 0 5px rgba(40, 167, 69, 0.8), /* Soft inner glow */
                0 0 15px rgba(40, 167, 69, 0.4); /* Wider outer glow */
            /* End GLOW & HIGHLIGHT EFFECT */
}

/* NEW: Floating Contact Icons - Middle Left */
        #contact-float {
            position: fixed;
            top: 50%; 
            left: 20px; /* Position on the left */
            transform: translateY(-50%);
            z-index: 990; 
            display: flex;
            flex-direction: column; 
            gap: 12px;
            padding: 20px 15px; 
            border-radius: 9999px; 
            background-color: rgba(236, 255, 220, 1);
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
			 /* 6. Center align icons */
				align-items: center; 
        }

        #contact-float a {
            color: #343a40;
            font-size: 2rem;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        #contact-float a:hover {
            /* GLOW & HIGHLIGHT EFFECT */
            color: #28a745; /* Original Green, but a bit brighter for highlight */
            transform: scale(2); /* Increased scale for a more pronounced highlight */
            text-shadow: 
                0 0 5px rgba(40, 167, 69, 0.8), /* Soft inner glow */
                0 0 15px rgba(40, 167, 69, 0.4); /* Wider outer glow */
            /* End GLOW & HIGHLIGHT EFFECT */
        }
        /* -------------------------------------- */


/* Embedded Media Styling for Description Body */
.behance-embed {
    margin: 3rem 0; /* Vertical spacing around the embedded block */
    max-width: 100%;
}

.behance-embed img, 
.behance-embed iframe, 
.behance-embed video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.25rem;
}

.behance-embed .responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.behance-embed .responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

/* Service Card Hover Highlight */
.service-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer; 
    background-color: white; 
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); 
    transform: translateY(-8px); 
    background-color: #e9ecef; 
    border-color: #007bff; 
}



/* Rest of the original CSS */
.about-section {
    background-color: #f8f9fa;
}

.contact-section {
    background-color: #212529;
    color: white;
}

.btn-custom-light {
    background-color: white;
    color: black;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom-light:hover {
    background-color: #f8f9fa;
    color: black;
    transform: translateY(-2px);
}

.btn-custom-outline {
    border: 1px solid white;
    color: white;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    background-color: white;
    color: black;
}

/* --- RESPONSIVENESS: Hide Floats on Mobile --- */
@media (max-width: 767.98px) {
    #contact-float,
    #social-float {
        display: none; /* Hide floating widgets on small screens to prevent content obstruction */
    }
}
}
