/* ===== VARIABLES ===== */
:root {
    --orange:        #F95D00;
    --orange-2:      #FF7A2B;
    --orange-pale:   #FFF4EE;
    --orange-glow:   rgba(249,93,0,0.3);
    --white:         #FFFFFF;
    --bg:            #F6F1EC;
    --text-dark:     #1A1209;
    --text-mid:      #5C5045;
    --text-light:    #9B8F85;
    --border:        #E5DDD5;
    /* RADIUS COMPLETELY REMOVED FOR SQUARE LOOK */
    --radius:        0px; 
    --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text-dark); font-family: 'Plus Jakarta Sans', sans-serif; min-height: 100vh; overflow-x: hidden;}
a { text-decoration: none; }

/* ===== TOPBAR ===== */
.topbar { background: var(--white); border-bottom: 1.5px solid var(--border); padding: 16px 5%; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100;}
.logo { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 900; color: var(--text-dark); letter-spacing: -0.02em; }
.logo span { color: var(--orange); }
.topbar-cta { background: var(--orange); color: #fff; padding: 10px 24px; border-radius: var(--radius); font-weight: 700; font-size: 0.85rem; border: none; cursor: pointer; transition: all 0.3s var(--ease); }
.topbar-cta:hover { background: var(--text-dark); }

/* ===== FULL WIDTH HERO BANNER ===== */
.hero-banner {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(to right, rgba(26,18,9,0.8), rgba(26,18,9,0.4)), url('https://images.unsplash.com/photo-1556742049-0cfed4f7a07d?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-banner h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-banner h1 em { color: var(--orange); font-style: italic;}

.hero-banner p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== INLINE FILTER BUTTONS (FULL WIDTH & SQUARE) ===== */
.filter-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap; 
    margin: 0;
    padding: 30px 20px; 
    background: var(--white); 
    gap: 15px; 
}

.f-btn {
    flex: 1 1 auto;
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--orange);
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: center;
}

/* HOVER EFFECT: BG White, Text Orange */
.f-btn:hover, .f-btn.active {
    background: var(--white);
    color: var(--orange);
}

/* ===== PORTFOLIO GRID (FULL WIDTH, NO GAP) ===== */
.portfolio-grid {
    display: grid;
    /* 2-kku bathilaaga 3 endru maatra vendum */
    grid-template-columns: repeat(3, 1fr); 
    gap: 0; 
    width: 100%;
    max-width: 100%;
    padding: 0 50px;
    margin: 0;
}
@media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ===== CARD DESIGN (SQUARE & NO MARGINS) ===== */
.port-card {
    position: relative;
    border-radius: var(--radius); /* SQUARE */
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    display: block; 
}

/* Image */
.port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s var(--ease);
}

.port-card:hover img {
    transform: scale(1.08); /* Zoom image inside on hover */
}

/* ===== ORANGE ONLY GRADIENT (PERMANENT) ===== */
.card-overlay {
    position: absolute;
    inset: 0;
    
    /* 👇 Inga Orange-ku bathila Black color add panniyachu 👇 */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 30%, transparent 60%);
    
    opacity: 1; /* PERMANENTLY VISIBLE */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px; 
    transition: background 0.4s var(--ease);
}


/* Card Body Content */
.card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    transform: translateY(0); /* PERMANENTLY IN PLACE */
}

.card-info h3 {
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.card-info p {
    color: rgba(255,255,255,0.95);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 80%; /* Prevents text from hitting the button */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* View Button (SQUARE) */
/* View Button (CIRCLE) */
.view-square-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--orange);
    /* 👇 Intha line-ai thaan maathirukken 👇 */
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
}

.port-card:hover .view-square-btn {
    background: var(--orange);
    color: var(--white);
    /* Thevaipattaal border add pannikkalam */
    border: 2px solid var(--white); 
}

/* Category Badge (SQUARE) */
.cat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: var(--radius); /* SQUARE */
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 2;
    text-transform: uppercase;
}

/* FOOTER */
/* ===== FOOTER STYLES ===== */
.site-footer { 
    background: var(--white); 
    border-top: 1.5px solid var(--border); 
    padding: 60px 5% 20px; 
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Footer Heading (Centered) */
.footer-header {
    text-align: center;
    margin-bottom: 50px;
}

.footer-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.footer-header h2 span {
    color: var(--orange);
}

.footer-header p {
    color: var(--text-mid);
    font-size: 1rem;
}

/* Footer Content (Flexbox for Details & QR) */
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

/* Contact Details Side */
.contact-info {
    flex: 1;
    min-width: 280px;
}

.footer-brand {
    color: var(--orange);
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-info i {
    color: var(--orange);
    font-size: 1.2rem;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

/* Generate Now Button */
.btn-generate {
    display: inline-block;
    background: var(--text-dark); /* Black background */
    color: var(--white);
    padding: 14px 32px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-generate:hover {
    background: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--orange-glow);
}

/* QR Code Side */
.qr-code-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.qr-code-section img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: var(--white);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    transition: transform 0.3s var(--ease);
}

.qr-code-section img:hover {
    transform: scale(1.05);
}

.qr-code-section span {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer Bottom */
.footer-bottom { 
    text-align: center; 
    padding-top: 25px; 
    border-top: 1px solid var(--border); 
    color: var(--text-light); 
    font-size: 0.9rem; 
}

.footer-bottom b { 
    color: var(--orange); 
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-info p {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .btn-generate {
        margin-left: auto;
        margin-right: auto;
    }
}