/* ===== IMPROVED HERO SECTION ===== */
.hero {
    height: 90vh;
    min-height: 500px;
    max-height: 1200px; /* Prevent excessive height on large screens */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color:white;
    text-align: center;
    background: 
                url('../images/hero.png') 
                no-repeat center center/cover;
    margin-top: 80px;
    padding: 40px 20px; /* Added padding for better mobile spacing */
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px; /* Increased max-width for larger screens */
    width: 100%;
    padding: 20px;
   }

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.5rem); /* Better scaling */
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2; /* Better line spacing */
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 2rem); /* Better scaling */
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6; /* Better readability */
}

.hero .btn {
    display: inline-block;
     background: #b0d1d7;           /* light shade */
  color: #2c3e50; 
    padding: clamp(12px, 3vw, 18px) clamp(30px, 6vw, 50px); /* Responsive padding */
    font-size: clamp(1rem, 2vw, 1.3rem); /* Responsive font */
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* For hover effect */
}

.hero .btn:hover {
    background: rgb(122, 172, 186); /* navbar color */
  color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color:  rgb(122, 172, 186);  /* Added border effect */
}

/* ===== IMPROVED ABOUT SECTION ===== */
.about {
    padding: clamp(60px, 8vw, 100px) 20px; /* Responsive padding */
    text-align: center;
    background-color: #f8f8f8;
    margin: 0;
}

.about h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: clamp(1.8rem, 4vw, 3rem); /* Better responsive sizing */
}

.about p {
    max-width: 900px; /* Slightly wider for larger screens */
    margin: 0 auto;
    font-size: clamp(1rem, 2vw, 1.2rem); /* Better responsive sizing */
    color: #555;
    line-height: 1.7;
    padding: 0 20px; /* Prevent text touching edges */
}

/* ===== IMPROVED ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); /* Smoother easing */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ENHANCED RESPONSIVE BREAKPOINTS ===== */
/* Large tablets and small laptops (Surface Pro 7 range) */
@media (max-width: 1366px) and (min-width: 992px) {
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Tablets (portrait) */
@media (max-width: 991px) {
    .hero {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero h1 {
        margin-bottom: 1rem;
    }
    
    .hero p {
        margin-bottom: 2rem;
    }
}

/* Large phones and small tablets */
@media (max-width: 767px) {
    .hero {
        height: 60vh;
        min-height: 400px;
        margin-top: 70px; /* Adjusted for mobile header */
    }
    
    .hero h1 {
        white-space: normal; /* Allow text wrapping */
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 350px;
        padding: 20px 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 95%;
    }
    
    .about {
        padding: 50px 15px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero {
        min-height: 300px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .btn {
        padding: 10px 25px;
    }
}

/* ===== TOUCH DEVICE SPECIFIC STYLES ===== */
@media (hover: none) {
    .hero .btn:hover {
        transform: none; /* Disable hover effects on touch devices */
        box-shadow: none;
    }
}