* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header */
header {
    background: linear-gradient(135deg, #713938);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo-img {
   height: 50px;
    width: auto;
    margin-right: 0px;
    border-radius: 8px;
    vertical-align: middle;
    user-select: none;
    cursor: default;
}


.logo {
   font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0;
    user-select: none;
    cursor: default;
}


.logoquotation a {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
    user-select: none;
    cursor: pointer;
}


.logoquotation a:hover {
    color: #f39c12;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}


.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    user-select: none;
    cursor: pointer;
}


.nav-links a:hover {
    color: #f39c12;
}


/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}


.hamburger span {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
    user-select: none;
    cursor: pointer;
}


/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}


.hamburger.active span:nth-child(2) {
    opacity: 0;
}


.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}


/* Hero Section */
.hero {
   background: linear-gradient(rgba(52, 73, 94, 0.8), rgba(44, 62, 80, 0.8)),
    url('../assets/bghero1.png') no-repeat center center/cover;
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
    min-height: 100vh;
    padding: 6vw 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-sizing: border-box;
}


.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 1rem;
    text-shadow: 8px 8px 4px rgba(0,0,0,0.5);
    user-select: none;
    cursor: default;
}


.hero-content p {
    font-size: clamp(1rem, 3vw, 2rem);
    margin-bottom: 2rem;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
    cursor: default;
}


/* CTA Button Base Styles */
.cta-button {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 30px;
    text-decoration: none;
    border-radius: 90px;
    font-size: 2.1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    user-select: none;
}


.cta-button:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}


/* Electric Border Effect */
.electric-border {
    --electric-color: #00ffff;
    position: relative;
}


.eb-content {
    position: relative;
    z-index: 1;
    user-select: none;
    cursor: pointer;
}


.eb-layers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 90px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.electric-border:hover .eb-layers {
    opacity: 1;
}


.eb-stroke,
.eb-glow-1,
.eb-glow-2,
.eb-background-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 90px;
    pointer-events: none;
}


.eb-stroke {
    border: 3px solid var(--electric-color);
    animation: electricFlicker 0.15s infinite alternate;
}


.eb-glow-1 {
    border: 3px solid rgba(0, 255, 255, 0.6);
    filter: blur(2px);
    animation: electricGlow1 0.3s infinite alternate;
}


.eb-glow-2 {
    border: 3px solid var(--electric-color);
    filter: blur(6px);
    animation: electricGlow2 0.2s infinite alternate;
}


.eb-background-glow {
    z-index: -1;
    transform: scale(1.1);
    filter: blur(20px);
    background: linear-gradient(45deg, var(--electric-color), transparent, var(--electric-color));
    opacity: 0.4;
    animation: backgroundPulse 1s infinite alternate;
}


/* Electric Animations */
@keyframes electricFlicker {
    0% { 
        opacity: 1; 
        box-shadow: 0 0 5px var(--electric-color);
    }
    100% { 
        opacity: 0.8; 
        box-shadow: 0 0 15px var(--electric-color), 0 0 25px var(--electric-color);
    }
}


@keyframes electricGlow1 {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}


@keyframes electricGlow2 {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}


@keyframes backgroundPulse {
    0% { 
        opacity: 0.3; 
        transform: scale(1.08);
    }
    100% { 
        opacity: 0.5; 
        transform: scale(1.15);
    }
}


/* Enhanced Electric Hover Effect */
.electric-border:hover {
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
}


.reqbutton{
    display: flex;
    justify-content: center; 
    margin-top: 15px;
}


.req-button{
    background: #f39c12;
    color: white;
    padding: 25px 45px; 
    border-radius: 50px;
    font-size: 1.7rem;  
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    border: none;
    cursor: pointer;
    width: auto;
    user-select: none;
}


.req-button:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}


/* Services Section */
.services {
    padding: 80px 0;
    background: #ecf0f1;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    user-select: none;
    cursor: default;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}


.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}


.service-card:hover {
    transform: translateY(-10px);
}


.service-icon {
    width: 80px;
    height: 80px;
    background: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    user-select: none;
    cursor: default;
}


.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    user-select: none;
    cursor: default;
}


.service-card p {
    color: #555;
    user-select: none;
    cursor: default;
}


/* About Section */
.about {
    padding: 80px 0;
}


.about-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 10px;
    user-select: none;
    cursor: default;
}


.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}


.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    user-select: none;
    cursor: default;
}


.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    user-select: none;
    cursor: default;
}


.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}


.stat {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}


.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #713938;
    user-select: none;
    cursor: default;
}


.about-image {
    position: relative;
}


.solar-diagram {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}


/* Gallery Section Styles */
.gallery {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0;
    color: white;
    min-height: 100vh;
}


/* Gallery Header */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}


.gallery-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1s ease-out;
    user-select: none;
    cursor: default;
}


.gallery-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
    user-select: none;
    cursor: default;
}


/* Cards Layout */
.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 1s ease-out 0.4s both;
}


.cards-row-second {
    margin-top: 30px;
    animation: slideInUp 1s ease-out 0.8s both;
}


.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    cursor: default;
}


/* SLIDESHOW - FIXED VERSION */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}


.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: fadeSlide 18s infinite;
}


.projectimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
    cursor: default;
}


/* CORRECTED ANIMATION - 6 images, 3 seconds each = 18 second cycle */
@keyframes fadeSlide {
    0% { opacity: 0; }
    5.55% { opacity: 1; }      /* Fade in */
    16.66% { opacity: 1; }     /* Stay visible for 3 seconds */
    22.22% { opacity: 0; }     /* Fade out */
    100% { opacity: 0; }       /* Stay hidden */
}


/* Stagger each slide by 3 seconds (16.66% of 18s) */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 3s; }
.slide:nth-child(3) { animation-delay: 6s; }
.slide:nth-child(4) { animation-delay: 9s; }
.slide:nth-child(5) { animation-delay: 12s; }
.slide:nth-child(6) { animation-delay: 15s; }


.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}


.project-card:hover::before {
    opacity: 1;
}


.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    animation: cardFloat 2s ease-in-out infinite;
}


.project-card:nth-child(1) { animation-delay: 0.6s; }
.project-card:nth-child(2) { animation-delay: 0.8s; }
.project-card:nth-child(3) { animation-delay: 1s; }
.project-card:nth-child(4) { animation-delay: 1.2s; }
.project-card:nth-child(5) { animation-delay: 1.4s; }
.project-card:nth-child(6) { animation-delay: 1.6s; }


.cards-row-second .project-card:nth-child(1) { animation-delay: 1.2s; }
.cards-row-second .project-card:nth-child(2) { animation-delay: 1.4s; }
.cards-row-second .project-card:nth-child(3) { animation-delay: 1.6s; }
.cards-row-second .project-card:nth-child(4) { animation-delay: 1.8s; }
.cards-row-second .project-card:nth-child(5) { animation-delay: 2s; }
.cards-row-second .project-card:nth-child(6) { animation-delay: 2.2s; }


/* Card Content */
.project-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    display: inline-block;
    transition: transform 0.3s ease;
    user-select: none;
    cursor: default;
}


.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}


.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    user-select: none;
    cursor: default;
}


.project-card:hover .project-title {
    color: #f39c12;
}


.project-subtitle {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    font-style: italic;
    user-select: none;
    cursor: default;
}


.project-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #f39c12;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
    user-select: none;
    cursor: default;
}


.project-period {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    user-select: none;
    cursor: default;
}


.project-features {
    list-style: none;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
    text-align: left;
}


.project-features li {
    padding: 8px 0;
    color: #e0e0e0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease, transform 0.3s ease;
    user-select: none;
    cursor: default;
}


.project-features li:hover {
    color: #f39c12;
    transform: translateX(5px);
}


.project-features li::before {
    content: "✓";
    color: #f39c12;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
    transition: transform 0.3s ease;
}


.project-features li:hover::before {
    transform: scale(1.2);
}


/* Contact Section */
.contact {
    background: #713938;
    color: white;
    padding: 80px 0;
}


.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}


.contact-form {
    background: #363435;
    padding: 2rem;
    border-radius: 10px;
}


.contact-form h3 {
    margin-bottom: 1.5rem;
    color: #5b554b;
    user-select: none;
    cursor: default;
}


.form-group {
    margin-bottom: 1rem;
}


.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}


.form-group textarea {
    resize: vertical;
}


.contact-info h3 {
    color: white;
    margin-bottom: 1rem;
    font-weight: bold;
    user-select: none;
    cursor: default;
    user-select: none;
}


.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}


.contact-icon {
    width: 40px;
    height: 40px;
    background: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
    user-select: none;
    cursor: default;
}


/* Footer */
footer {
    background: #363435;
    color: white;
    text-align: center;
    padding: 2rem 0;
}


.linkss {
    color: #f39c12;
    text-decoration: none;
    user-select: none;
    cursor: pointer;
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


.fade-in {
    animation: fadeInUp 0.8s ease-out;
}


/* ========================================
   RESPONSIVE STYLES - MOBILE FIRST
   ======================================== */


/* Tablet View: 2 cards per row, hide last 2 cards */
@media (max-width: 1024px) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-row-second {
        display: none;
    }
}


/* Tablet and Mobile Devices */
@media screen and (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }


    /* Hide navigation by default on mobile - USING MAX-HEIGHT METHOD */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #713938, #8b4a49);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 999;
    }


    /* Show navigation when active */
    .nav-links.active {
        max-height: 500px;
    }


    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        list-style: none;
    }


    .nav-links a {
        display: block;
        padding: 1.2rem 2rem;
        transition: all 0.3s ease;
    }


    .nav-links a:hover {
        background: rgba(243, 156, 18, 0.2);
        padding-left: 2.5rem;
    }


    /* Hero adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
        user-select: none;
        cursor: default;
    }


    /* Layout changes for mobile */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }


    .services-grid {
        grid-template-columns: 1fr;
    }


    .stats {
        grid-template-columns: 1fr;
    }


    .section-title {
        font-size: 2rem;
    }


    /* Gallery adjustments */
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-subtitle {
        font-size: 0.95rem;
    }
    
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Hide cards beyond the 4th one on mobile */
    .cards-row .project-card:nth-child(n+5) {
        display: none;
    }
    
    .cards-row-second {
        display: none;
    }
    
    .slideshow-container {
        height: 180px;
    }
    
    .project-title {
        font-size: 1rem;
        min-height: 50px;
        padding: 10px 15px 5px;
    }
    
    .project-subtitle {
        padding: 0 15px 8px;
        font-size: 0.85rem;
    }
    
    .project-price {
        font-size: 1.2rem;
        padding: 0 15px 10px;
    }
    
    .project-features {
        padding: 0 15px 15px;
    }
    
    .project-features li {
        padding: 6px 0;
        font-size: 0.8rem;
    }


    .project-card {
        padding: 25px 20px;
    }


    .project-icon {
        font-size: 3rem;
    }


    .project-features {
        text-align: center;
    }


    .project-features li {
        justify-content: center;
    }
}


/* Very Small Mobile: 1 card per row */
@media (max-width: 480px) {
    .gallery {
        padding: 60px 0;
    }


    .navbar-right {
        flex-direction: column;
        gap: 10px;
        font-size: 12px;
    }
    
    .container {
        padding: 0 15px;
    }


    .gallery-header h2 {
        font-size: 1.8rem;
    }


    .cards-row {
        grid-template-columns: 1fr;
    }
    
    /* Show only first 4 cards */
    .cards-row .project-card:nth-child(n+5) {
        display: none;
    }
    
    .slideshow-container {
        height: 220px;
    }


    .project-card {
        padding: 20px 15px;
    }


    .project-icon {
        font-size: 2.5rem;
    }


    .project-title {
        font-size: 1.2rem;
    }


    .project-price {
        font-size: 2rem;
    }


    .hero-content h1 {
        font-size: 2rem;
        user-select: none;
        cursor: default;
    }


    .hero-content p {
        font-size: 1.1rem;
        user-select: none;
        cursor: default;
    }


    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}


/* Medium screens */
@media (max-width: 900px) {
    .hero {
        min-height: 50vh;
        padding: 10vw 2vw;
        user-select: none;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        user-select: none;
        cursor: default;
    }
    
    .hero-content p {
        font-size: clamp(1rem, 4vw, 1.3rem);
        max-width: 98vw;
        user-select: none;
        cursor: default;
    }


    .cta-button {
        padding: 15px 25px;
        font-size: 1.2rem;    
    }
}


/* Extra small screens */
@media (max-width: 600px) {
    .hero {
        min-height: 40vh;
        padding: 22vw 2vw;
        user-select: none;
    }
    
    .hero-content h1 {
        font-size: clamp(1.5rem, 12vw, 2.2rem);
        user-select: none;
        cursor: default;
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
        max-width: 99vw;
        user-select: none;
        cursor: default;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;    
    }


    .req-button {
        padding: 12px 20px;
        font-size: 1rem;   
    }
}