/* RESET & GLOBAL STYLES */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: sans-serif;
}

html,
body {
	width: 100%;
	overflow-x: hidden;
	/* Prevent horizontal scrolling */
}

/* Body background color */
body {
	background-color: #ffffff;
}

html {
	scroll-behavior: smooth;
}

/* Preloader styles */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: #000000;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	opacity: 1;
	transition: opacity 0.5s ease;
}

#main-content {
	display: none;
}

.preloader-logo {
	width: 20%;
	max-width: 200px;
	border-radius: 10%;
}


/* ---------------------------------------------------- */
/* NAVIGATION SECTION - CLEAN VERSION */
/* ---------------------------------------------------- */

nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: rgba(255, 255, 255, 0.98);
	padding: 6px 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.navbar {
	width: 85%;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;

	position: relative;
}

.logo {
	width: 55px;
	cursor: pointer;
	border-radius: 7px;
	align-items: center;
	transition: transform 0.3s ease;
}

.logo:hover {
	transform: scale(1.05);
}

/* Desktop Navigation */
.notsidebar {
	display: flex;
	align-items: center;
	gap: 15px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.notsidebar li {
	position: relative;
}

.notsidebar li a {
	text-decoration: none;
	
	color: #333;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 15px;
	border-radius: 8px;
	transition: all 0.3s ease;
	display: inline-block;
	text-transform: uppercase;
}

.notsidebar li:not(.dropdown):hover a {
	background: rgba(0, 0, 0, 0.03);
}

.notsidebar li a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 8px;
	left: 15px;
	background-color: #333;
	transition: width 0.3s ease;
}

.notsidebar li a:hover::after {
	width: calc(100% - 30px);
}

/* Dropdown Styles */
.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #fff;
	min-width: 200px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 8px 0;
	z-index: 10;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
}

.dropdown:hover .dropdown-content {
	display: block;
}

/* Keep underline for main nav items */
.notsidebar>li:not(.dropdown)>a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 8px;
	left: 15px;
	background-color: #333;
	transition: width 0.3s ease;
}

.notsidebar>li:not(.dropdown)>a:hover::after {
	width: calc(100% - 30px);
}

.dropdown-content a {
	padding: 10px 20px;
	color: #555;
	display: block;
	transition: all 0.2s ease;
	text-transform: uppercase;
	font-size: 15px;
	margin: 0 auto;
}

.dropdown-content a::after {
	display: none !important;
	/* This removes the underline */
}


.dropdown-content a:hover {
	background: rgba(0, 0, 0, 0.03);
}

/* Menu Button */
.menu-button {
	display: none;
	cursor: pointer;
	padding: 10px;
	margin-left: 10px;
}

.menu-button svg {
	display: block;
	transition: transform 0.3s ease;
}

.menu-button:hover svg {
	transform: scale(1.1);
}

/* Mobile Sidebar */
.sidebar {
	position: fixed;
	top: 0;
	right: -300px;
	height: 100vh;
	width: 280px;
	z-index: 9999;
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	padding: 25px;
	transition: right 0.4s ease;
	list-style: none;
	margin: 0;
}

.sidebar.open {
	right: 0;
}

.sidebar li {
	margin: 8px 0;
}

.sidebar li a {
	padding: 5px 5px;
	border-radius: 8px;
	display: flex;
	transition: all 0.3s ease;
	color: #333;
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 16px;
}

.sidebar li a:hover {
	background: rgba(0, 0, 0, 0.05);
}

.close-btns {
	align-self: flex-end;
	margin-bottom: 20px !important;
	cursor: pointer;
	padding: 8px;
}

/* Mobile Dropdown */
.dropdown-content-mobile {
	max-height: 0;
	overflow: hidden;
	padding-left: 15px;
	transition: max-height 0.4s ease;
	list-style: none;
	margin: 0;
	
}

.mobile-dropdown.active .dropdown-content-mobile {
	max-height: 300px;
}

.dropdown-content-mobile li {
	margin: 8px 0;
}

.dropdown-content-mobile a {
	padding: 8px 15px;
	font-size: 15px;
	color: #555;
}

/* Responsive Rules */
@media screen and (max-width: 899px) {
	.hideOnMobile {
		display: none !important;
	}

	.menu-button {
		display: block !important;
	}
}

@media screen and (min-width: 900px) {
	.sidebar {
		display: none !important;
	}
}

/* ---------------------------------------------------- */
/* Banner Styling */

.banner {
	width: 100%;
	height: 90vh;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	background-image: linear-gradient(rgba(60, 71, 72, 0.411), rgb(8, 7, 7)),
		url("./img/1.webp");
	background-size: cover;
	background-position: center;
	position: relative;
	padding-bottom: 50px;
	overflow: hidden;
	transition: background-image 8s ease-in-out;
	/* Smoother and slower transition */
}

.banner-slides {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: -1;
	overflow: hidden;
}

.banner-slides img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	opacity: 0;
	transition: opacity 3s ease-in-out;
}

.banner-slides img.active {
	opacity: 1;
}

.content {
	text-align: center;
	color: #fff;
	padding: 20px;
}

.content h1 {
	font-size: 59px;
	/* Original font size */
	margin-top: 80px;
	animation: fadeInDown 1s ease;
	/* Animation */
}

.content p {
	margin: 20px auto 40px;
	/* Increased space below the paragraph */
	font-size: 20px;
	/* Original font size */

	font-family: cursive;
	/* Original font family */
	animation: fadeInUp 1.2s ease;
	/* Animation */
	line-height: 1.8;
	/* Improved readability */
}

.button-group {
	display: flex;
	justify-content: center;
	margin-top: 30px;
	animation: fadeInUp 1.4s ease;
	/* Animation */
}

button {
	width: 200px;
	padding: 15px;
	text-align: center;
	border-radius: 25px;
	font-weight: bold;
	border: 2px solid #63698b;
	background: transparent;
	color: #fff;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	/* Restrict span growth outside the button */
	transition: transform 0.3s ease, background-color 0.3s ease, border 0.3s ease;
	margin: 7px 15px;
	box-sizing: border-box;
	/* Include padding and border in dimensions */
}

span {
	background: #4a5b5878;
	height: calc(100% - 4px);
	/* Ensure it stays within button bounds */
	width: 0;
	position: absolute;
	top: 2px;
	/* Account for border thickness */
	left: 2px;
	border-radius: calc(25px - 2px);
	/* Adjust for border */
	z-index: -1;
	/* Behind the button text */
	transition: width 0.4s ease;
}

button:hover span {
	width: calc(100% - 4px);
	/* Fully expand within button bounds */
}

button:hover {
	border-color: transparent;
	/* Make border transparent for a smoother effect */
	transform: scale(1.05);
	background-color: #4a5b5878;
	/* Match span color */
}

button:focus-visible {
	outline: none;
	border-color: #4a5b5878;
}

/* Responsive Styles */
@media (max-width: 768px) {
	.content h1 {
		font-size: 3rem;
	}

	.content p {
		font-size: 1rem;
	}

	button {
		width: 180px;
		padding: 12px 0;
	}

	.button-group {
		flex-direction: column;
		/* Stack buttons vertically */
		gap: 20px;
		/* Vertical gap between buttons */
	}
}

@media (max-width: 480px) {
	.content h1 {
		font-size: 2rem;
	}

	.content p {
		font-size: 0.9rem;
	}

	button {
		width: 150px;
		padding: 10px;
	}

	.button-group {
		flex-direction: column;
		align-items: center;
		gap: 25px;
		/* More vertical space between buttons */
	}
}

/* Animations */
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* banner end */

/* --------------------------------------------------------------- */

/* ABOUT SOMNATH GROUP */
/* About Section */
.about-section {
	padding: 50px 0;
}

.container {
	max-width: 1200px;
	margin: auto;
	padding: 0 15px;
}

.content-wrapper {
	display: flex;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
}

/* Image Wrapper */
.image-wrapper {
	flex: 1;
}

.image-wrapper img {
	max-width: 100%;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	object-fit: cover;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	/* Hover animation */
	position: relative;
	max-height: 400px;
	/* Proportional height */
	overflow: hidden;
	border-radius: 15px;
}

.image-wrapper img:hover {
	transform: scale(1);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Text Styles */
.text-wrapper {
	flex: 1;
	text-align: left;
	/* Left-align for better readability */
	padding: 20px;
	/* Add padding for spacing */
}

/* Initial styles for animation */
.about-section .image-wrapper,
.about-section .text-wrapper {
	opacity: 0;
	transform: translateY(100px);
	/* Start slightly off-screen */
	transition: opacity 1.5s ease, transform 1.5s ease;
}

/* Add a class to trigger the animation */
.about-section.active .image-wrapper,
.about-section.active .text-wrapper {
	opacity: 1;
	transform: translateY(0);
	/* Reset position */
}

.about-title h4 {
	font-size: 0.9em;
	letter-spacing: 0.1em;
	color: #888;
	margin: 0;
	text-transform: uppercase;
	display: flex;
	align-items: center;
}

.about-title h4:before {
	content: "";
	display: block;
	width: 2px;
	height: 20px;
	background-color: #888;
	margin-right: 10px;
}

.text-wrapper h2 {
	font-size: 2.2em;
	color: #222;
	margin: 15px 0;
	line-height: 1.3;
}

.text-wrapper p {
	font-size: 1em;
	color: #555;
	line-height: 1.8;
	margin-bottom: 25px;
}

/* Button Styles */
.button-group2 {
	display: flex;
	justify-content: center;
	/* Center the button */
	margin-top: 20px;
}

/* Enhanced Button Styles */
.primary-btn {
	display: inline-block;
	width: auto;
	/* Adjust width dynamically to fit content */
	padding: 12px 20px;
	text-align: center;
	font-weight: bold;
	font-size: 1em;
	text-decoration: none;
	/* Remove underline */
	border: 2px solid #000000;
	background: linear-gradient(135deg, #e8e6cf, #d4d2bb);
	color: #050505;
	text-transform: uppercase;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	/* Rounded corners */
	transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	/* Slight shadow */
}

.primary-btn:hover {
	transform: scale(1.08);
	/* Enlarge slightly on hover */
	background: linear-gradient(135deg, #d4d2bb, #bcb89c);
	color: #222;
	/* Change text color */
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
	/* Enhance shadow */
	text-decoration: none;
	/* Ensure underline does not appear on hover */
}

/* Responsive Design */
@media (max-width: 1200px) {
	.content-wrapper {
		flex-direction: column;
		/* Stack content vertically */
		text-align: center;
	}

	.text-wrapper {
		text-align: center;
	}

	.text-wrapper h2 {
		font-size: 1.8em;
	}

	.text-wrapper p {
		font-size: 0.9em;
	}

	.button-group2 {
		justify-content: center;
		/* Center the button on smaller screens */
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 10px;
	}

	.text-wrapper h2 {
		font-size: 1.6em;
	}

	.text-wrapper p {
		font-size: 0.9em;
	}

	.primary-btn {
		font-size: 0.9em;
		padding: 10px 15px;
	}
}

@media (max-width: 480px) {
	.content-wrapper {
		gap: 20px;
	}

	.text-wrapper h2 {
		font-size: 1.4em;
	}

	.text-wrapper p {
		font-size: 0.85em;
	}

	.primary-btn {
		font-size: 0.8em;
		padding: 8px 12px;
	}
}

/*--------------------------------------*/

/*All Projects */
/* --- RESET & GLOBAL --- */
* {
    box-sizing: border-box;
}

.all-projects-wrapper {
    width: 100%;
    background-color: #fff;
}

/* --- MAIN SECTION --- */
.project-section {
    padding: 60px 20px 0px 20px; /* Added bottom padding for spacing */
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

/* --- HEADER --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.sub-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif; 
}

.section-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem); 
    font-weight: 800; 
    margin: 0;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* --- CONTAINER (Updated to Grid) --- */
.projects-container {
    display: grid;
    /* This creates columns that are at least 320px wide. 
       If screen fits 3 columns, Item 4 goes to Row 2, Column 1 (Under Item 1) */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    width: 100%;
    margin: 0 auto; /* Keeps the whole grid centered */
}

/* --- CARD DESIGN --- */
.card {
    width: 100%; /* Stretches to fill grid column */
    /* Remove fixed height so grid controls it, or keep 100% */
    height: 100%; 
    cursor: pointer;
    background: transparent;
    transition: transform 0.4s ease;
    margin: 0; /* Margin not needed, gap handles spacing */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
}

/* --- RESPONSIVE ADJUSTMENT --- */
@media (max-width: 480px) {
    .projects-container {
        /* On mobile, force 1 column */
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- IMAGE AREA --- */
.img-wrapper {
    width: 100%;
    height: clamp(220px, 30vw, 280px); 
    overflow: hidden;
    position: relative;
    border-radius: 15px; /* Rounded Corners */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease;
}

.card:hover .overlay {
    background: rgba(0,0,0,0.05);
}

/* --- CONTENT AREA --- */
.card-content {
    padding-top: 25px;
    text-align: center;
}

/* PROJECT NAMES (Serif Font) */
.card-content h3 {
    font-family: 'Cormorant Garamond', serif; 
    font-size: clamp(1.8rem, 4vw, 2.2rem); 
    margin: 0;
    font-weight: 600;
    color: #1a1a1a;
    font-style: italic;
    line-height: 1.2;
}

.type {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin: 5px 0 15px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.separator {
    width: 30px;
    height: 2px;
    background: #ddd;
    margin: 0 auto 15px auto;
    transition: width 0.4s ease, background 0.4s ease;
}

.card:hover .separator {
    width: 50px;
    background: #000;
}

.action {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.card:hover .action {
    opacity: 1;
}

/* --- VIDEO SECTION --- */
.video-section {
    margin-top: 80px; /* Space between cards and video */
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color: #fafafa; /* Subtle background for video area */
    border-radius: 20px; /* Optional: rounds the video section container slightly */
}

.video-wrapper {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.video-text h3 {
    font-family: 'Montserrat', sans-serif; 
    font-size: clamp(1.5rem, 5vw, 2.5rem); 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.video-text p {
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px; /* Rounded Corners for Video */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

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

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 480px) {
    .project-section {
        padding: 40px 15px;
    }
    .container {
        gap: 30px;
    }
}