/*
Theme Name: Perambalur Fencing Theme
Theme URI: #
Author: Guna Arts IT Solutions
Author URI: #
Description: Premium Black & Gold Theme for Perambalur Fencing Contractor
Version: 1.0
Text Domain: perambalur-fencing
*/

:root {
    /* Color Palette */
    --black-base: #0a0a0a;
    --black-light: #151515;
    --black-lighter: #202020;
    
    --gold-base: #d4af37;
    --gold-light: #f5d061;
    --gold-dark: #aa8a29;
    --gold-gradient: linear-gradient(135deg, #f5d061, #d4af37, #aa8a29);
    
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    
    --nav-bg: rgba(10, 10, 10, 0.95);
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-tamil: 'Noto Sans Tamil', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-padding: 100px 0;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--black-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Support for Tamil */
h1, h2, h3, p, a, span, div {
    font-family: var(--font-primary), var(--font-tamil);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.section-padding {
    padding: var(--section-padding);
}

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

.gold-text {
    color: var(--gold-base);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.divider {
    height: 3px;
    width: 60px;
    background: var(--gold-gradient);
    margin: 15px 0 30px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--black-base);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    color: var(--black-base);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-base);
    border: 2px solid var(--gold-base);
}

.btn-secondary:hover {
    background: var(--gold-base);
    color: var(--black-base);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-fast);
}

.header-container {
    display: flex;

    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--gold-base);
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-base);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--gold-base);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 80px;
}

.hero-tagline {
    color: var(--gold-base);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease forwards;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-features {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-features li {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--gold-light);
}

.hero-actions {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
}

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

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

.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about {
    background-color: var(--black-base);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-stats {
    display: flex;
    gap: 30px;
    background: var(--black-light);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.stat-box h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services {
    background-color: var(--black-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--black-base);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    position: relative;
    group: hover;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.service-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
    background: var(--black-lighter);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--black-lighter), var(--black-base));
    color: var(--gold-base);
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.5;
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--gold-base);
}

.service-info p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Why Choose Us */
.why-us {
    background-color: var(--black-base);
}

.section-subtitle {
    color: var(--gold-base);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: var(--black-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.feature-item:hover {
    border-color: var(--gold-base);
    background: rgba(212, 175, 55, 0.05);
}

.gold-icon {
    font-size: 2.5rem;
    color: var(--gold-base);
    display: block;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Service Areas */
.service-areas {
    background-color: var(--black-light);
}

.areas-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.area-pill {
    background: var(--black-base);
    color: var(--text-main);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition-fast);
}

.area-pill:hover {
    background: var(--gold-base);
    color: var(--black-base);
    transform: scale(1.05);
}

/* Contact */
.contact {
    background-color: var(--black-base);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-base), transparent);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: var(--gold-base);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    background: rgba(212, 175, 55, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-list strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.contact-list span {
    color: var(--text-muted);
}

.contact-card {
    background: var(--black-light);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.contact-card h3 {
    font-size: 2rem;
    color: var(--gold-base);
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-card .btn-whatsapp,
.contact-card .btn-primary {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.contact-card .btn-primary {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-logo .logo-text {
    font-size: 2rem;
}

.footer-logo .logo-img {
    height: 100px;
    width: auto;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-medium);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}
/* Contact Extras */
.text-white { color: var(--text-main); text-decoration: none; transition: var(--transition-fast); }
.text-white:hover { color: var(--gold-base); }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { 
    background: var(--black-light); border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-base); padding: 10px 15px; border-radius: 20px;
    text-decoration: none; font-size: 1.2rem; transition: var(--transition-fast);
    display: inline-flex; align-items: center; justify-content: center;
}
.social-icon:hover { background: var(--gold-base); color: var(--black-base); transform: translateY(-3px); }

/* Floating Icons */
.floating-icons { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.float-btn {
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: var(--transition-fast);
}
.float-btn:hover { transform: scale(1.1); }
.float-wa { background-color: #25D366; color: white; }
.float-call { background: var(--gold-gradient); color: var(--black-base); }

.float-top { background: var(--black-light); color: var(--gold-base); border: 1px solid var(--gold-base); }
