/* ======================
   BASE STYLES 
   ====================== */
   body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}


/* ======================
   MAIN CONTENT SECTIONS 
   ====================== */
.miniature-section {
    padding: 100px 50px;
    background: #ea8424;
    position: relative;
    overflow: visible;
}

.miniature-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.miniature-text {
    color: #2c3e50;
    margin-right: auto;
    max-width: 700px;
    font-size: 40px;
}

.miniature-image-container {
    position: relative;
    transition: all 0.4s ease;
    animation: fall 1s ease-out forwards;
}

.miniature-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    background: #ffaa00;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.miniature-image-container:hover::before {
    opacity: 0.8;
}

.miniature-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    transform: scale(1);
    transition: all 0.4s ease-in-out;
}

.miniature-image-container:hover .miniature-img {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.0);
}

/* ======================
   SECTION 1 - IMAGES LEFT + TEXT RIGHT 
   ====================== */
.content-section1 {
    padding: 50px;
    background: #1A535C;
    height: 800px;
}

.content-section1 .content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.image-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
    padding: 20px;
}

.animated-image-container {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.img1 {
    grid-column: 1;
    grid-row: 1;
    animation: float 3s ease-in-out infinite;
}

.img2 {
    grid-column: 2;
    grid-row: 1;
    transform: translateY(50px);
    animation: float 3s ease-in-out infinite 0.5s;
}

.img3 {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 80%;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite 1s;
}

.content-text {
    padding: 30px;
    color: white;
}

.content-text h3 {
    font-size: 3em;
    margin-bottom: 20px;
}

.content-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* ======================
   SECTION 2 - IMAGE RIGHT + TEXT LEFT 
   ====================== */
.content-section2 {
padding: 80px 20px;
background: #1A535C;
position: relative;
overflow: hidden;
}

.section2-image-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    perspective: 1000px;
}

.content-section2 .content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    
}

.section2-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}
.section2-image-container:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 35px 60px rgba(0,0,0,0.3);
    z-index: 2;
}
.section2-image-container:hover::before {
    opacity: 0;
}
.section2-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

.section2-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,170,0,0.1) 0%, rgba(234,132,36,0.3) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}
.section2-image-container:hover .section2-image {
    transform: scale(1.1);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.section2-image-container:hover .image-caption {
    transform: translateY(0);
}

.section2-image-container:nth-child(1) { animation: slideIn 0.8s ease 0.2s both; }
.section2-image-container:nth-child(2) { animation: slideIn 0.8s ease 0.4s both; }


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}
/* ======================
   VARIABLES & RESETS
   ====================== */
   :root {
    --primary-color: #2c3e50;
    --secondary-color: #ffaa00;
    --accent-color: #e74c3c;
    --dark-bg: #620a00;
    --light-text: #fff;
    --btn-color: #62f719;
    --btn-border: #2dc80a;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  /* ======================
     BASE STYLES 
     ====================== */
  body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
  }
  
  /* ======================
     REUSABLE COMPONENTS
     ====================== */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }
  
  .btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  /* ======================
     HEADER & NAVIGATION 
     ====================== */
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 50px;
    background: white;
  }
  
  .navbar {
    padding: 20px 50px;
    background: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
  }
  
  .nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .nav-links a:hover {
    color: var(--accent-color);
  }
  
  /* ======================
     HERO SECTION
     ====================== */
  .miniature-section {
    padding: 100px 50px;
    background: #ea8424;
  }
  
  .miniature-content {
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
  }
  
  .miniature-image-container {
    position: relative;
    animation: fall 1s ease-out forwards;
  }
  
  .miniature-image-container::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--secondary-color);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .miniature-img {
    border-radius: 15px;
    transition: all 0.4s ease-in-out;
  }
  
  /* ======================
     CONTENT SECTIONS
     ====================== */
  .content-section {
    padding: 50px;
  }
  
  .content-section1 { background: #1A535C; }  
  .image-grid {
    display: grid;
    gap: 20px;
    position: relative;
    padding: 20px;
  }
  
/* ======================
   COMMON STYLES 
   ====================== */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: scale(1.03);
}

.cta-button {
    background: #62f719;
    color: #573d46;
    padding: 15px 40px;
    border: 2px solid #2dc80a;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(98, 247, 25, 0.3);
}

.cta-button:hover {
    background: #2dc80a;
    box-shadow: 0 0 15px #62f719;
}

/* ======================
   ANIMATIONS 
   ====================== */
@keyframes fall {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    50% {
        transform: translateY(50px);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(-5deg) rotateY(-5deg);
    }
    50% {
        transform: translateY(-40px) rotateX(5deg) rotateY(5deg);
    }
}

/* ======================
   RESPONSIVE DESIGN 
   ====================== */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.5rem 1rem !important;
    }

    .icons .icon {
        margin-left: 1rem !important;
        font-size: 1.5rem !important;
    }

    .miniature-text {
        font-size: 1.9rem !important;
        padding: 0 1rem;
    }

    .content-section1 .content-block{
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        text-shadow: #2c3e50 1px 1px 1px;
    }
    .content-section2 .content-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section2-image-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section2-image {
        height: 300px;
    }
    
    .image-caption {
        padding: 15px;
        font-size: 0.9em;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    

    .image-group {
        order: 2;
        width: 100%;
        height: auto;
        max-width: 600px;
        
    }

    .content-text {
        font-size: 15px;
        order: 1;
        text-align: center;
        padding: 10 !important;
        margin-bottom: 20px;

        
    }
    }

    @media (max-width: 768px) {
        .miniature-section {
            padding: 4rem 1.5rem !important;
            height: 600px !important;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    
        .miniature-content {
            grid-template-columns: 1fr !important;
            gap: 2rem !important;
            width: 100%;
            max-width: 100% !important;
            padding: 0 !important;
        }

        .cta-button {
            margin-top: 20px;
        }
    
        .miniature-text {
            font-size: 1.8rem !important;
            line-height: 1.3;
            /* text-align: ; */
            order: 1;
            padding: 0 1rem;
            padding-left: 45px;
            text-align: center;
            max-width: 90% !important;
            
        }
    
        .miniature-image-container {
            width: 90%;
            max-width: 400px !important;
            margin: 0 auto;
            order: 2;
            width: 50%;
            position: relative;
            z-index: 1;
            margin-top: 20px;
            margin-bottom: 20px;
        }
    
        .miniature-img {
            width: 100% !important;
            height: auto !important;
            max-height: 50vh;
            object-fit: contain;
            
        }

        .miniature-image-container {
            animation: mobile-fall 1s ease-out forwards;
        }
    
        @keyframes mobile-fall {
            0% { transform: translateY(-50px); opacity: 0; }
            100% { transform: translateY(0); opacity: 1; }
        }
    }
    
    @media (max-width: 360px) {
        .miniature-section {
            padding: 3rem 1rem !important;
        }
    
        .miniature-text {
            font-size: 1.3rem !important;
        }
    
        .miniature-image-container {
            max-width: 300px !important;
        }
    }

    @media (max-width: 360px) {
    html { font-size: 10px; }

    .nav-links {
        gap: 0.5rem !important;
    }

    .logo img {
        height: 30px !important;
    }
}
