/* --- CSS Variables for Mian Tailors Brand --- */
:root {
    /* Brand Colors derived from the Logo */
    --primary-navy: #0b1c36;   /* Very dark blue from the "MIAN" text/ribbon */
    --accent-gold: #c5a059;    /* Metallic gold from the "M" and needle */
    --gold-light: #f4ebd0;     /* A very light champagne color for backgrounds */
    
    /* Text Colors */
    --text-main: #333333;
    --text-light: #ffffff;
    
    /* Layout */
    --section-bg: #fdfdfd;
}

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
   
}
.container p{
    animation: fadeInUp 2s   ;
}

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    /* A thin gold line at the top for elegance */
    
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 90px; /* Slightly larger to show off the details */
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-navy);
    letter-spacing: 1px;
    position: relative;
}

/* Add a gold underline effect on hover */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Toggle Button (Hidden on Desktop) */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    z-index: 1001;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-navy);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Section --- */
.hero {
    /* Dark Navy background to make the Gold buttons pop */
    background-color: var(--primary-navy);
    /* Optional: If you have a background image, un-comment the next line */
    /* background-image: linear-gradient(rgba(11, 28, 54, 0.85), rgba(11, 28, 54, 0.85)), url('images/hero-bg.jpg'); */
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    animation: fadeInUp 2s   ;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    /* Gradient text effect simulating gold sheen */
    background: -webkit-linear-gradient(#f4ebd0, #c5a059);
    background: linear-gradient(#f4ebd0, #c5a059);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 5px rgba(0,0,0,0.3); 
}

/* Fallback for browsers that don't support text fill */
@supports not (-webkit-background-clip: text) {
    .hero h1 {
        background: none;
        color: var(--accent-gold);
    }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px; 
    border: 1px solid var(--accent-gold);
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: white;
    color: var(--primary-navy);
    border-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* --- General Section Styling --- */
.section-padding {
    padding: 80px 0;
   
}

.bg-light {
    background-color: #f8f9fa; /* Very light grey/white */
}

/* Custom background for Our Story section */
.our-story-section {
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2d4a 100%);
}

/* Custom background for Get In Touch section */
.get-in-touch-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2d4a 100%);
    color: var(--text-light);
}

.get-in-touch-section .section-title {
    color: var(--text-light);
}

.get-in-touch-section .section-title::after {
    background-color: var(--accent-gold);
}

.get-in-touch-section p {
    color: #e0e0e0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 15px auto 0;
}

/* --- Profile Section (Tanveer Ahmad) --- */
.profile-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.profile-image-container {
    flex: 1;
    position: relative;
}

.tanveer-photo {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 4px;
    /* A double border to look like a frame */
    border: 5px solid white;
    outline: 1px solid var(--accent-gold);
    box-shadow: 15px 15px 0px var(--gold-light); /* Offset shadow effect */
}

.profile-text {
    flex: 1;
}

.profile-text h3 {
    color: var(--primary-navy);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.experience-badge {
    background-color: var(--primary-navy);
    color: var(--accent-gold);
    padding: 5px 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

/* --- Forms (Contact Page) --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background-color: white;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px solid var(--accent-gold);
    border-top: 5px solid var(--accent-gold);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-info, .contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    background-color: #fafafa;
    border-radius: 2px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(197, 160, 89, 0.2);
}

/* --- Form Status Messages --- */
.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.5s ease-out;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(11, 28, 54, 0.3);
    border-top-color: var(--primary-navy);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animate sections on scroll */
.section-padding {
    animation: fadeIn 0.6s ease-out;
}


.profile-split {
    animation: fadeInUp 0.8s ease-out;
}

.contact-info, .contact-form {
    animation: fadeInUp 0.8s ease-out;
}

.contact-info {
    animation-delay: 0.1s;
}

.contact-form {
    animation-delay: 0.3s;
}

/* --- Footer (Updated for Logo Visibility) --- */
footer {
    /* CHANGED: Using the Light Gold/Cream color.
       This ensures the dark text in your logo is clearly visible. */
    background-color: var(--gold-light); 
    color: var(--primary-navy); /* Dark text for contrast */
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--accent-gold);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(11, 28, 54, 0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 80px;
    width: auto;
    /* No filter needed because the background is light! */
}
.social-links{
    gap: 80px;
}

.social-btn img{
    width: 30px;
    height: 30px;
    margin-top: 10px;
    border: 5px ;
    
    
    color: var(--accent-gold);
    
    border-radius: 50%; /* Makes it a circle */
    font-weight: bold;
    font-size: 0.9rem;
    /* Smooth Transition for the effect */
    transition: all 0.4s ease;
}

.social-btn img:hover {
    /* Color Flip */
    background-color: var(--accent-gold);
    border-radius: 50%;
    color: var(--primary-navy);
    border-color: var(--accent-gold);
    
    /* The "Lift" Effect */
    transform: translateY(-5px);
    
    /* Soft Shadow */
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}
.footer-links a {
    color: var(--primary-navy);
    font-weight: 600;
    margin-left: 25px;
    font-size: 1rem;
}

.footer-links a:hover {
    color: #8a6d3b; /* Darker gold on hover */
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(11, 28, 54, 0.7);
    animation: none;

}

/* --- Gallery Grid Styling --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    aspect-ratio: 3 / 4;
    background-color: #000;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Image */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}

/* Hover Effects */
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.gallery-item:hover img {
    transform: scale(1.12);
    filter: brightness(0.9);
}

/* Overlay Text */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px;
    background: linear-gradient(to top, rgba(11, 28, 54, 0.9), transparent);
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Response --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-overlay {
        font-size: 14px;
        padding: 10px;
    }
}



/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        flex-wrap: wrap;
        padding-bottom: 10px;
        justify-content: space-between;
        position: relative;
    }
    
    .nav-toggle {
        display: flex;
    }

    nav {
        width: 100%;
        order: 3;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        padding: 20px 0;
        border-top: 2px solid var(--accent-gold);
        z-index: 1000;
    }
    
    nav ul.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
    }
    
    /* Keep existing responsive styles below */
    .hero h1 {
        font-size: 2.2rem;
    }
    .profile-split {
        flex-direction: column;
    }
    .tanveer-photo {
        box-shadow: 10px 10px 0px var(--gold-light);
    }
    .contact-wrapper {
        flex-direction: column;
        padding: 20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .footer-links a {
        margin-left: 0;
    }
    .social-btn img{
        width: 25px;
        height: 25px;
    }
}

/* --- 3D White Pop-Out Cards CSS --- */

.flip-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* The perspective container */
.flip-card {
    width: 300px;
    height: 280px;
    perspective: 1000px; /* Essential for creating 3D space */
    cursor: pointer;
}

/* The White Card itself */
.flip-card-inner {
    width: 100%;
    height: 100%;
    background-color: var(--white); /* White Background */
    border: 2px solid var(--accent-gold);
    border-radius: 12px; /* Soft corners */
    
    /* Deep, professional shadow */
    box-shadow: 0 15px 35px rgba(11, 28, 54, 0.1); 
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    
    /* Smooth transition for the card lifting */
    transition: all 0.4s ease;
    
    /* Important: allows children to exist in 3D space */
    transform-style: preserve-3d;
}

/* Hover 1: Lift the whole card slightly */
.flip-card:hover .flip-card-inner {
    transform: translateY(-10px); /* Move UP */
    box-shadow: 0 25px 50px rgba(11, 28, 54, 0.2); /* Larger shadow */
    border-color: var(--primary-navy);
}

/* Styling the Content */
.flip-card-content {
    /* Allows children to pop out */
    transform-style: preserve-3d; 
}

.icon-3d {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    /* Smooth transition for the pop effect */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}

.text-3d {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: transform 0.4s ease-out;
}

/* Hover 2: THE 3D POP EFFECT */

/* Pop the Icon far out and tilt it slightly */
.flip-card:hover .icon-3d {
    /* translateZ moves it towards the screen */
    transform: translateZ(50px) rotate(-15deg);
}

/* Pop the Text out slightly less for depth */
.flip-card:hover .text-3d {
    transform: translateZ(25px);
}