/* File: src/styles/Home.module.css */ .main { width: 100%; overflow-x: hidden; background-color: #fafafa; min-height: 100vh; } .section { padding: 80px 16px; position: relative; overflow: hidden; } .homeContainer { text-align: center; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; background-image: url("/background.svg"); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; transition: all 0.3s ease; height: 100vh; min-height: 100vh; width: 100vw; margin: 0; position: relative; overflow: hidden; } .homeServiceCard { width: 100%; height: 48px; display: flex; justify-content: center; padding: 12px 18px !important; row-gap: 10px; transition: all 0.3s ease; border-radius: 50px; background-color: rgba(255, 183, 0, 0.12); } .logo { border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); transition: all 0.3s ease; margin-bottom: 10px; } .logo:hover { border-color: rgba(255, 183, 0, 0.3); transform: scale(1.02); } /* Logo container for perfect centering */ .logoContainer { display: flex; justify-content: center; align-items: center; width: 100%; margin-bottom: 0; } .homeServiceCard :global(.ant-card-body) { padding: 0px !important; text-align: start; width: 100%; } /* Smooth transitions for all interactive elements */ .homeContainer *, .homeServiceCard * { transition: all 0.3s ease; } .serviceIcon { width: 24px; height: 24px; } .promotionContainer { margin: 0 16px; } /* Social icons for mobile (default styles) */ .socialIconsContainer { display: flex; justify-content: center; align-items: center; gap: 20px; width: 100%; z-index: 10; margin-top: 8px; } .socialIcon { width: 24px; height: 24px; transition: all 0.3s ease; } .socialIcon:hover { transform: scale(1.1); } /* =========================================== MOBILE MEDIA QUERIES (≤ 768px) =========================================== */ /* Mobile - General */ @media (max-width: 768px) { .section { padding: 60px 16px; } } /* Mobile - Portrait orientation */ @media (max-width: 768px) and (orientation: portrait) { .homeContainer { height: 100vh; min-height: 100vh; background-attachment: scroll; } } /* Mobile - Services grid */ @media (max-width: 769px) { .servicesGrid { display: grid; gap: 10px; padding: 0 1rem; margin: 10px 0; } } /* =========================================== TABLET MEDIA QUERIES (769px - 1024px) =========================================== */ @media (min-width: 769px) and (max-width: 1024px) { .languageSwitch, .themeSwitch, .promotionContainer { display: none; } .homeContainer { padding: 6vh 6vw; height: 100vh; min-height: 100vh; max-width: 1000px; margin: 0 auto; gap: 32px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; text-align: center; } .homeContainerContent { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; } .logo { width: 140px; height: 140px; margin: 0 auto 24px; border-radius: 24px !important; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; object-fit: cover; border: 3px solid rgba(255, 255, 255, 0.8); display: block; margin-left: auto; margin-right: auto; margin-bottom: 24px; } .logo:hover { transform: scale(1.05) rotate(2deg); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2); border-color: rgba(255, 183, 0, 0.3); } /* Enhanced typography for tablet */ .homeContainer h5 { font-size: 24px !important; font-weight: 600 !important; margin-bottom: 8px !important; } .homeContainer p { font-size: 16px !important; line-height: 1.5 !important; max-width: 500px; margin: 0 auto; } .homeServiceCard { width: 100%; height: 65px; padding: 20px 28px !important; border-radius: 20px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); cursor: pointer; background: linear-gradient( 135deg, rgba(255, 183, 0, 0.12) 0%, rgba(255, 183, 0, 0.08) 100% ); border: 1px solid rgba(255, 183, 0, 0.2); } .homeServiceCard:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15); background: linear-gradient( 135deg, rgba(255, 183, 0, 0.18) 0%, rgba(255, 183, 0, 0.12) 100% ); border-color: rgba(255, 183, 0, 0.3); } .serviceIcon { width: 32px; height: 32px; transition: all 0.3s ease; } /* Enhanced grid layout for services on tablet */ .servicesGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 32px; margin: 32px 0; max-width: 700px; margin-left: auto; margin-right: auto; } /* If there are only 2 services, use single column */ .servicesGrid.twoColumns { grid-template-columns: 1fr 1fr; max-width: 700px; } /* If there are 4+ services, use 2 columns */ .servicesGrid.manyServices { grid-template-columns: repeat(2, 1fr); max-width: 700px; } /* Enhanced service card typography */ .homeServiceCard h5 { font-size: 16px !important; font-weight: 600 !important; margin: 0 !important; } /* Social icons positioning for tablet */ .socialIconsContainer { display: flex; gap: 28px; padding: 16px 28px; border-radius: 60px; } .socialIcon { width: 28px; height: 28px; transition: all 0.3s ease; } .socialIcon:hover { transform: scale(1.15); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); } } /* =========================================== DESKTOP MEDIA QUERIES (≥ 1025px) =========================================== */ /* Desktop */ @media (min-width: 1025px) { .languageSwitch, .themeSwitch, .promotionContainer { display: none; } .homeContainer { padding: 4vh 8vw; max-width: 1200px; margin: 0 auto; gap: 24px; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; text-align: center; } .homeContainerContent { margin: 6vh 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; } .logo { width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 20px !important; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; object-fit: cover; border: 3px solid rgba(255, 255, 255, 0.9); position: relative; display: block; margin-left: auto; margin-right: auto; } .logo::before { content: ""; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px; background: linear-gradient( 135deg, rgba(255, 183, 0, 0.3), rgba(255, 183, 0, 0.1) ); border-radius: 24px; z-index: -1; opacity: 0; transition: opacity 0.3s ease; } .logo:hover { transform: scale(1.05) rotate(-1deg); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); border-color: rgba(255, 183, 0, 0.4); } .logo:hover::before { opacity: 1; } /* Enhanced typography for desktop */ .homeContainer h5 { font-size: 24px !important; font-weight: 600 !important; margin-bottom: 8px !important; letter-spacing: -0.3px; } .homeContainer p { font-size: 16px !important; line-height: 1.5 !important; max-width: 500px; margin: 0 auto; opacity: 0.9; } .homeServiceCard { width: 100%; height: 64px; padding: 16px 24px !important; border-radius: 16px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); cursor: pointer; background: linear-gradient( 135deg, rgba(255, 183, 0, 0.12) 0%, rgba(255, 183, 0, 0.08) 100% ); border: 1px solid rgba(255, 183, 0, 0.2); position: relative; overflow: hidden; } .homeServiceCard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient( 135deg, rgba(255, 183, 0, 0.05) 0%, transparent 100% ); opacity: 0; transition: opacity 0.3s ease; } .homeServiceCard:hover::before { opacity: 1; } .homeServiceCard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); background: linear-gradient( 135deg, rgba(255, 183, 0, 0.18) 0%, rgba(255, 183, 0, 0.12) 100% ); border-color: rgba(255, 183, 0, 0.4); } .serviceIcon { position: relative; top: -5px; width: 28px; height: 28px; transition: all 0.3s ease; } /* Enhanced grid layout for services on desktop */ .servicesGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 24px; margin: 24px 0; max-width: 800px; margin-left: auto; margin-right: auto; } /* If there are only 2 services, use 2 columns */ .servicesGrid.twoColumns { grid-template-columns: repeat(2, 1fr); max-width: 700px; } /* If there are 4+ services, use 2 rows */ .servicesGrid.manyServices { grid-template-columns: repeat(2, 1fr); max-width: 700px; } /* Enhanced service card typography */ .homeServiceCard h5 { font-size: 16px !important; font-weight: 600 !important; margin: 0 !important; letter-spacing: -0.1px; } /* Social icons positioning for desktop */ .socialIconsContainer { display: flex; gap: 24px; backdrop-filter: blur(12px); padding: 12px 24px; border-radius: 50px; } .socialIcon { width: 28px; height: 28px; transition: all 0.3s ease; } .socialIcon:hover { transform: scale(1.15); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); } } /* Large Desktop */ @media (min-width: 1440px) { .homeContainer { padding: 6vh 10vw; max-width: 1400px; gap: 32px; } .homeContainerContent { margin: 12vh 0 !important; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0px; } .logo { width: 140px; height: 140px; border-radius: 24px !important; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); border: 4px solid rgba(255, 255, 255, 0.95); display: block; margin-left: auto; margin-right: auto; } .logo:hover { transform: scale(1.06) rotate(1deg); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); border-color: rgba(255, 183, 0, 0.5); } /* Enhanced typography for large desktop */ .homeContainer h5 { font-size: 28px !important; font-weight: 600 !important; margin-bottom: 12px !important; letter-spacing: -0.5px; } .homeContainer p { font-size: 18px !important; line-height: 1.6 !important; max-width: 600px; margin: 0 auto; opacity: 0.9; } .homeServiceCard { height: 65px; padding: 20px 28px !important; border-radius: 20px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); } .homeServiceCard:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); } .serviceIcon { position: relative; top: -5px; width: 32px; height: 32px; } /* Enhanced service card typography */ .homeServiceCard h5 { font-size: 18px !important; font-weight: 600 !important; letter-spacing: -0.2px; } .servicesGrid { max-width: 1000px; gap: 20px; padding: 0 32px; margin: 32px 0; } .servicesGrid.twoColumns { max-width: 700px; } .servicesGrid.manyServices { max-width: 700px; } /* Social icons for large desktop */ .socialIconsContainer { gap: 32px; padding: 16px 32px; border-radius: 60px; bottom: 32px; } .socialIcon { width: 30px; height: 30px; } .socialIcon:hover { transform: scale(1.2); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25)); } } /* Ultra-wide Desktop */ @media (min-width: 1920px) { .homeContainer { padding: 8vh 12vw; max-width: 1600px; gap: 40px; } .logo { width: 160px; height: 160px; margin: 0 auto 32px; border-radius: 28px !important; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25); border: 4px solid rgba(255, 255, 255, 0.98); display: block; margin-left: auto; margin-right: auto; } .logo:hover { transform: scale(1.08) rotate(-1deg); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); border-color: rgba(255, 183, 0, 0.6); } /* Enhanced typography for ultra-wide desktop */ .homeContainer h5 { font-size: 32px !important; font-weight: 600 !important; margin-bottom: 16px !important; letter-spacing: -0.6px; } .homeContainer p { font-size: 20px !important; line-height: 1.7 !important; max-width: 700px; margin: 0 auto; opacity: 0.9; } .homeServiceCard { height: 80px; padding: 24px 32px !important; border-radius: 24px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); } .homeServiceCard:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2); } .serviceIcon { width: 36px; height: 36px; } /* Enhanced service card typography */ .homeServiceCard h5 { font-size: 20px !important; font-weight: 600 !important; letter-spacing: -0.3px; } .servicesGrid { max-width: 1200px; gap: 24px; padding: 0 40px; margin: 40px 0; } .servicesGrid.twoColumns { max-width: 700px; } .servicesGrid.manyServices { max-width: 700px; } /* Social icons for ultra-wide desktop */ .socialIconsContainer { gap: 36px; padding: 20px 36px; border-radius: 70px; bottom: 40px; } .socialIcon { width: 34px; height: 34px; } .socialIcon:hover { transform: scale(1.25); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)); } } /* =========================================== HEIGHT-BASED MEDIA QUERIES =========================================== */ /* Very tall screens */ @media (min-height: 1000px) { .homeContainer { justify-content: center; /* padding-top: 15vh; */ } } /* Very short screens */ @media (max-height: 600px) { .homeContainer { gap: 20px; padding: 4vh 6vw; } .logo { width: 80px; height: 80px; margin-bottom: 16px; border-radius: 12px !important; border: 2px solid rgba(255, 255, 255, 0.6); } .servicesGrid { margin: 16px 0; } .socialIconsContainer { bottom: 16px; } } /* =========================================== ORIENTATION-BASED MEDIA QUERIES =========================================== */ /* Landscape orientation optimizations */ @media (orientation: landscape) and (max-height: 768px) { .homeContainer { gap: 24px; padding: 4vh 8vw; } .logo { width: 100px; height: 100px; margin-bottom: 16px; border-radius: 16px !important; border: 2px solid rgba(255, 255, 255, 0.7); } .homeContainer h5 { font-size: 24px !important; margin-bottom: 8px !important; } .homeContainer p { font-size: 14px !important; } .homeServiceCard { height: 60px; padding: 16px 24px !important; } .servicesGrid { margin: 16px 0; gap: 16px; } .socialIconsContainer { bottom: 20px; padding: 12px 24px; } } /* =========================================== DARK THEME STYLES =========================================== */ /* Enhanced Dark Theme Styles */ :global(.darkApp) .homeContainer { background-image: url("/background-dark.svg"); background-color: #0a0a0a; color: #ffffff; } :global(.darkApp) .homeContainer p, :global(.darkApp) .homeContainer span { color: #b0b0b0; } :global(.darkApp) .homeServiceCard { background-color: rgba(255, 183, 0, 0.12) !important; border-color: var(--border) !important; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4); } :global(.darkApp) .homeServiceCard:hover { background-color: #363636 !important; border-color: #424242 !important; transform: translateY(-2px); box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5); } :global(.darkApp) .socialIcon path { fill: none !important; stroke: #fff !important; transition: all 0.3s ease; } :global(.darkApp) .socialIcon:hover path { stroke: #fff !important; filter: drop-shadow(0 0 8px #fff); } :global(.darkApp) .serviceIcon > path { fill: none !important; stroke: #fff !important; transition: all 0.3s ease; } :global(.darkApp) .serviceIcon g path { fill: none !important; stroke: #fff !important; transition: all 0.3s ease; } :global(.darkApp) .serviceIcon:hover > path, :global(.darkApp) .serviceIcon:hover g path { stroke: #fff !important; filter: drop-shadow(0 0 6px #fff); } /* Additional dark theme enhancements */ :global(.darkApp) .homeContainer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient( 135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100% ); pointer-events: none; z-index: 1; } /* Glass morphism effect for cards in dark mode */ :global(.darkApp) .homeServiceCard { backdrop-filter: blur(12px); border-radius: 50px; } /* Enhanced text readability in dark mode */ :global(.darkApp) .item-description { color: #b0b0b0 !important; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); } :global(.darkApp) .ant-typography { color: #ffffff !important; } :global(.darkApp) .ant-typography.ant-typography-secondary { color: #b0b0b0 !important; } :global(.darkApp) .deliveryIcon path, :global(.darkApp) .deliveryIcon circle { fill: #fff !important; stroke: #fff !important; transition: all 0.3s ease; } /* Dark theme for tablet and desktop */ @media (min-width: 769px) { :global(.darkApp) .homeServiceCard { background: linear-gradient( 135deg, rgba(255, 183, 0, 0.08) 0%, rgba(255, 183, 0, 0.04) 100% ) !important; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); } :global(.darkApp) .homeServiceCard:hover { background: linear-gradient( 135deg, rgba(255, 183, 0, 0.15) 0%, rgba(255, 183, 0, 0.08) 100% ) !important; border-color: rgba(255, 183, 0, 0.4); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); } :global(.darkApp) .homeServiceCard::before { background: linear-gradient( 135deg, rgba(255, 183, 0, 0.08) 0%, transparent 100% ); } :global(.darkApp) .logo { box-shadow: 0 16px 48px rgba(255, 183, 0, 0.25); border-color: rgba(255, 255, 255, 0.1); } :global(.darkApp) .logo:hover { box-shadow: 0 20px 60px rgba(255, 183, 0, 0.35); border-color: rgba(255, 183, 0, 0.4); } :global(.darkApp) .logo::before { background: linear-gradient( 135deg, rgba(255, 183, 0, 0.2), rgba(255, 183, 0, 0.05) ); } /* Enhanced dark theme typography */ :global(.darkApp) .homeContainer h5 { color: #ffffff !important; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } :global(.darkApp) .homeContainer p { color: #e0e0e0 !important; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } } /* =========================================== COMPONENT-SPECIFIC STYLES =========================================== */ .serviceIcon { width: 24px; height: 24px; } .dineInIcon { margin-top: -1px; } .pickupIcon { margin-top: -2px; } .roomIcon { margin-top: -2px; } .officeIcon { margin-top: -1px; } .bookingIcon { margin-top: -1px; } .deliveryIcon { margin-top: -1px; } .scheduledOrderIcon { margin-top: -2px; font-size: 22px; }