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

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    animation: pageLoad 0.8s ease-out forwards;
}

/* Page Loading Animations */
@keyframes pageLoad {
    0% {
        opacity: 0.9;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main Content */
main {
    margin-top: 80px;
    animation: fadeIn 1s ease-out 0.2s both;
}

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

/* Header Styles */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

/* Main content container */
main {
    padding-top: 80px; /* Account for fixed header */
    min-height: calc(100vh - 80px);
    margin: 0;
    padding-bottom: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.logo h1 {
    display: inline-block;
    margin-left: 15px;
    color: #2d5016;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    position: relative;
    background: rgba(45, 80, 22, 0.05);
    padding: 8px;
    border-radius: 25px;
    --highlighter-left: 0px;
    --highlighter-width: 0px;
}

.nav-links::before {
    content: '';
    position: absolute;
    top: 4px;
    left: var(--highlighter-left, 4px);
    width: var(--highlighter-width, 0px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f0d4 100%);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.nav-links:hover::before {
    opacity: 1;
}

.nav-links a {
    text-decoration: none;
    color: #2d5016;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.nav-links a:hover {
    color: #4CAF50;
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #4CAF50;
    background: #e8f5e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 0px;
    background-image: url('images/home_interior.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    animation: fadeIn 1.2s ease-out 0.2s both;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
    padding: 2rem;
    margin-left: 2%;
    animation: slideInFromLeft 1s ease-out 0.5s both;
}

.hero-content h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.9);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Page Header */
.page-header {
    background: #4CAF50;
    color: white;
    text-align: center;
    padding: 120px 20px 60px;
    animation: slideInFromLeft 0.8s ease-out 0.3s both;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    padding: 60px 20px;
    background: #ffffff;
    animation: fadeIn 1s ease-out 0.4s both;
}

.page-content h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d5016;
    margin-bottom: 2rem;
    font-weight: 700;
}

.page-content > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Services Grid with Flip Animation */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    animation: fadeIn 1s ease-out 0.6s both;
}

.service-card {
    height: 400px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background: #ffffff;
    border: 2px solid #e9ecef;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.card-front h3 {
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-front p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.card-back {
    background: #4CAF50;
    color: white;
    transform: rotateY(180deg);
    justify-content: flex-start;
    text-align: left;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-back h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.card-back ul {
    list-style: none;
    margin-bottom: 1rem;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 220px;
    padding-right: 8px;
}

.card-back ul::-webkit-scrollbar {
    width: 4px;
}

.card-back ul::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.card-back ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.card-back ul::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.card-back li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

/* Service Features */
.service-features {
    margin-top: 4rem;
}

.service-features h2 {
    text-align: center;
    font-size: 2rem;
    color: #2d5016;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease-out 0.7s both;
}

.feature-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h4 {
    font-size: 1.2rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Feature Cards for Contact Page */
.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    align-items: center;
}

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

.feature-card .feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.feature-card .btn {
    margin-top: auto;
    align-self: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn.primary {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.btn.primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn.secondary {
    background: white;
    color: #4CAF50;
    border-color: #4CAF50;
}

.btn.secondary:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: slideInFromRight 0.8s ease-out 0.5s both;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d5016;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* WhatsApp Contact */
.whatsapp-contact {
    text-align: center;
    margin: 3rem 0;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.whatsapp-btn {
    background: #25D366 !important;
    color: white !important;
    border-color: #25D366 !important;
    font-size: 1rem;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-btn:hover {
    background: #20b358 !important;
    border-color: #20b358 !important;
}

.whatsapp-btn img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Footer */
footer {
    background: #2d5016;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 20px;
        background-attachment: scroll;
    }
    
    .hero-content {
        margin-left: 0;
        margin-bottom: 2rem;
        text-align: left;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        height: 350px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    nav {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 1.5rem;
        text-align: left;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        padding: 0.6rem;
    }
    
    .page-header {
        padding: 100px 15px 40px;
    }
    
    .page-content {
        padding: 40px 15px;
    }
    
    .service-card {
        height: 320px;
    }
    
    .card-front, .card-back {
        padding: 1.5rem;
    }
    
    .nav-links {
        gap: 0.3rem;
    }
    
    .nav-links a {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
}
