/* index.css - Full Corrected Version */

/* HERO SECTION */
.hero { 
    height: 60vh; 
    min-height: 550px;
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background: #000;
    overflow: hidden;
    padding-top: 100px; /* Account for fixed navbar */
    margin-top: 0;
}

.hero-bg-image { 
    position: absolute; 
    inset: 0;
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%); 
    z-index: 2; 
    transition: background 0.5s ease;
}

.hero:hover .hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content { 
    position: relative; 
    z-index: 3; 
    padding: 0 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.5); 
}

.hero-content h1 { 
    font-size: clamp(2.2rem, 6vw, 3.8rem); 
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: fadeInDown 1s ease-out;
}

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

.hero-content p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

.accent-text { color: #ffcc33; }

.btn-primary { 
    background: #ffcc33; 
    color: #000; 
    padding: 16px 40px;
    border-radius: 40px !important;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 204, 51, 0.5), 0 0 30px rgba(255, 204, 51, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 204, 51, 0.7), 0 0 40px rgba(255, 204, 51, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 204, 51, 0.4);
}

/* BENTO GRID */
.services-section { 
    padding: 100px 0; 
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 51, 0.3), transparent);
}

.section-header { 
    text-align: center; 
    margin-bottom: 70px; 
    animation: fadeInUp 0.8s ease-out;
}

.section-tag { 
    color: #ffcc33; 
    text-transform: uppercase; 
    font-weight: 800; 
    font-size: 0.85rem; 
    letter-spacing: 3px; 
    display: block; 
    margin-bottom: 15px; 
    position: relative;
    display: inline-block;
}

.section-tag::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #ffcc33;
    opacity: 0.5;
}

.section-header h2 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    color: #fff; 
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.1);
}

.section-header p { 
    font-size: 1.2rem; 
    color: #888; 
    max-width: 800px; 
    margin: 0 auto; 
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.bento-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; 
    grid-template-rows: repeat(2, 300px); 
    gap: 24px; 
}

.bento-item { 
    position: relative; 
    border-radius: 24px; 
    overflow: hidden; 
    text-decoration: none; 
    color: #fff; 
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05); 
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced hover effects */
.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.bento-item:hover::before {
    border-color: #ffcc33;
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 204, 51, 0.4), inset 0 0 20px rgba(255, 204, 51, 0.1);
}

.bento-item:hover { 
    border-color: #ffcc33; 
    transform: translateY(-12px) scale(1.03); 
    box-shadow: 0 20px 50px rgba(255, 204, 51, 0.4), 0 0 30px rgba(255, 204, 51, 0.2);
}

.bento-featured { grid-column: 1 / 2; grid-row: 1 / span 2; }

.bento-bg { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    filter: brightness(0.9);
}

.bento-item:hover .bento-bg { 
    transform: scale(1.12); 
    filter: brightness(1.1);
}

.bento-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); 
    z-index: 1; 
    transition: background 0.5s ease;
}

.bento-item:hover .bento-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.bento-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); z-index: 1; }

.bento-content { 
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; z-index: 2; 
    display: flex; justify-content: space-between; align-items: center;
    gap: 15px;
    transition: padding 0.4s ease;
}

.bento-item:hover .bento-content {
    padding: 35px 30px;
}

.bento-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.bento-item:hover .bento-content h3 {
    transform: translateX(5px);
    text-shadow: 0 4px 20px rgba(255, 204, 51, 0.5);
}

.bento-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.bento-item:hover .bento-content p {
    opacity: 1;
    transform: translateX(5px);
}

.bento-arrow { 
    width: 40px; 
    height: 40px; 
    background: #ffcc33; 
    color: #000; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 204, 51, 0.4);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 40px;
}

.bento-item:hover .bento-arrow {
    transform: translateX(8px) scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 204, 51, 0.6), 0 0 15px rgba(255, 204, 51, 0.4);
    background: #fff;
}

/* RESPONSIVE RULES - CORRECTED */
/* iPad specific styles - shrink text by 20% */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: clamp(1.76rem, 4.8vw, 3.04rem) !important; /* 20% smaller: 2.2rem * 0.8 = 1.76rem, 3.8rem * 0.8 = 3.04rem */
    }
    
    .hero-content p {
        font-size: 0.88rem !important; /* 20% smaller: 1.1rem * 0.8 = 0.88rem */
    }
    
    .btn-primary {
        font-size: 0.72rem !important; /* 20% smaller: 0.9rem * 0.8 = 0.72rem */
        padding: 12.8px 32px !important; /* 20% smaller */
    }
}

@media (max-width: 992px) {
    .hero {
        padding-top: 100px; /* Maintain navbar spacing on tablets */
        height: 55vh; /* Slightly shorter on tablets */
        min-height: 500px;
    }
    
    .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .bento-featured { grid-column: span 2; height: 350px; }
    .bento-item { height: 300px; }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 80px; /* Slightly less padding on mobile */
        min-height: 350px;
    }
    
    .bento-grid { grid-template-columns: 1fr; }
    .bento-featured { grid-column: span 1; height: 300px; }
}