/* --- Pudhuvayal Luxury Design System (Green Theme) --- */

/* CSS Variables */
:root {
    --bg-dark: #f6f8f5;
    /* Off-white warm linen background with a subtle green-tinted cast */
    --bg-darker: #eff2ee;
    /* Slightly darker warm beige-green for layout sections/nav blocks */
    --card-bg: rgba(255, 255, 255, 0.75);
    /* Frosted glass white */
    --card-border: rgba(45, 122, 76, 0.08);
    --card-border-glow: rgba(45, 122, 76, 0.3);
    /* Forest green glow */

    --primary: #2d7a4c;
    /* Rich forest green (primary brand color) */
    --primary-light: #429a67;
    /* Lighter agricultural green */
    --primary-glow: rgba(45, 122, 76, 0.08);
    --secondary: #1a2a1f;
    /* Deep charcoal forest green */
    --accent: #5c8c6c;
    /* Sage green accent */
    --accent-glow: rgba(92, 140, 108, 0.08);

    --text-main: #141f18;
    /* Deep dark green-charcoal main text */
    --text-muted: #4e5a51;
    /* Muted grayish charcoal-green text */
    --text-dark: #7e8c81;
    /* Lighter charcoal-green for subtext */

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 10px 30px 0 rgba(45, 122, 76, 0.12);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* Global Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utility Layouts */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-light) 60%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-glow);
    border: 1px solid rgba(45, 122, 76, 0.25);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 16px;
    background: linear-gradient(180deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Shared UI Components */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--card-border-glow);
    box-shadow: var(--shadow-glow);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--primary-glow);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(45, 122, 76, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 122, 76, 0.4);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-full {
    width: 100%;
}

.btn-wa {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.btn-call {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 122, 76, 0.2);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 122, 76, 0.3);
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(246, 248, 245, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 6px 0;
    background: rgba(239, 242, 238, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
}

.logo-img {
    height: 56px;
    width: 56px;
    border-radius: 50%; /* maintain round shape */
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(45, 122, 76, 0.2);
    border: 2px solid var(--primary-light);
    transition: var(--transition-fast);
}

.logo-img:hover {
    transform: scale(1.08);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-sans);
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(45, 122, 76, 0.05);
}

.nav-btn-mobile,
.nav-btn-mobile-download {
    display: none;
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav-download {
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(45, 122, 76, 0.2);
    font-family: var(--font-sans);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-nav-download:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 122, 76, 0.15);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 6px;
}

/* Page Section padding default */
.page-section {
    padding: 140px 0 80px 0;
    min-height: 80vh;
}

.bg-light-section {
    background-color: var(--bg-darker);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px 0;
    background-color: var(--bg-darker);
    overflow: hidden;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.hero-glow-1 {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 122, 76, 0.08) 0%, rgba(45, 122, 76, 0) 70%);
    z-index: 1;
}

.hero-glow-2 {
    position: absolute;
    bottom: -20%;
    right: 10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 140, 108, 0.06) 0%, rgba(92, 140, 108, 0) 70%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
}

/* Stats Section */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px;
    background: var(--gradient-primary);
    border-radius: 24px;
    color: white;
    box-shadow: var(--shadow-lg);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    font-weight: 500;
}

/* Device Mockups visual layout */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 360px;
}

.laptop-mockup {
    width: 100%;
    max-width: 420px;
    position: absolute;
    left: 0;
    top: 20px;
    z-index: 3;
}

.screen-frame {
    background: #fbfbfa;
    border-radius: 12px 12px 0 0;
    border: 4px solid #dcdad5;
    border-bottom: none;
    aspect-ratio: 16/10;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.screen-bar {
    height: 24px;
    background: #f5f4ef;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dots {
    display: flex;
    gap: 5px;
}

.dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #10b981;
}

.url-bar {
    background: #ffffff;
    height: 14px;
    border-radius: 3px;
    flex-grow: 1;
    max-width: 200px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 4px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.lock-icon {
    width: 6px;
    height: 6px;
}

.screen-content {
    background: #ffffff;
    height: calc(100% - 24px);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #1c1a19;
}

.demo-site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.demo-logo {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
}

.demo-btn {
    font-size: 8px;
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.demo-hero {
    text-align: center;
    margin-top: 10px;
    flex-grow: 1;
}

.demo-hero h3 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--secondary);
}

.demo-hero p {
    font-size: 8px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.demo-products {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.demo-p-card {
    background: #f5f4ef;
    padding: 6px;
    border-radius: 6px;
    font-size: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 70px;
    color: var(--text-main);
}

.laptop-base {
    height: 10px;
    background: #b8b6af;
    border-radius: 0 0 16px 16px;
    position: relative;
}

.laptop-base::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #989690;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Floating Android Mockup */
.phone-mockup {
    width: 160px;
    height: 310px;
    background: #fbfbfa;
    border: 8px solid var(--secondary);
    border-radius: 26px;
    position: absolute;
    right: 10px;
    bottom: -10px;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    overflow: hidden;
    animation: floatingApp 4s ease-in-out infinite alternate;
}

@keyframes floatingApp {
    0% {
        transform: translateY(0) rotate(2deg);
    }

    100% {
        transform: translateY(-12px) rotate(-1deg);
    }
}

.phone-screen {
    height: 100%;
    position: relative;
}

.phone-camera {
    width: 40px;
    height: 12px;
    background: var(--secondary);
    border-radius: 0 0 8px 8px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Grid Layout structures */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mb-4 {
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-primary {
    color: var(--primary);
    font-weight: 600;
}

/* Form Styles */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(45, 122, 76, 0.15);
    background: rgba(0, 0, 0, 0.04);
}

.w-100 {
    width: 100%;
}

/* App mockups generic page styling */
.app-mockup {
    width: 250px;
    border-radius: 35px;
    border: 8px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    background: white;
    overflow: hidden;
}

/* Footer Section */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--secondary);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-credits {
    font-weight: 500;
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
        overflow: hidden;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    /* Mobile Menu Toggle */
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--card-border);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        align-items: stretch;
        display: none;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .btn-nav,
    .btn-nav-download {
        display: none;
        /* Hide from navbar actions on mobile, visible in sidebar/menu dropdown */
    }

    .nav-btn-mobile {
        display: inline-flex;
        background: var(--gradient-primary);
        color: white !important;
        padding: 12px;
        border-radius: 10px;
        text-align: center;
        justify-content: center;
        font-weight: 600;
        margin-top: 10px;
    }

    .nav-btn-mobile:hover {
        background: var(--primary-light);
    }

    .nav-btn-mobile-download {
        display: inline-flex;
        background: rgba(45, 122, 76, 0.05);
        color: var(--primary) !important;
        border: 1px solid rgba(45, 122, 76, 0.2);
        padding: 12px;
        border-radius: 10px;
        text-align: center;
        justify-content: center;
        font-weight: 600;
        margin-top: 10px;
        font-family: var(--font-sans);
    }

    .nav-btn-mobile-download:hover {
        background: rgba(45, 122, 76, 0.1);
    }

    /* Disable heavy backdrop filters on mobile to prevent scrolling glitches */
    .card,
    .navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .navbar {
        background: rgba(246, 248, 245, 0.98);
    }

    .card {
        background: rgba(255, 255, 255, 0.95);
    }

    /* Tablet device scale adjustment */
    .mockup-container {
        width: 100%;
        max-width: 380px;
        height: 290px;
        margin: 0 auto;
    }

    .laptop-mockup {
        max-width: 320px;
    }

    .phone-mockup {
        width: 120px;
        height: 230px;
        bottom: -5px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
        gap: 8px;
    }

    .logo-img {
        height: 40px;
        width: 40px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .mockup-container {
        width: 100%;
        max-width: 290px;
        height: 220px;
        margin: 0 auto;
    }

    .laptop-mockup {
        max-width: 250px;
        top: 10px;
    }

    .phone-mockup {
        width: 100px;
        height: 190px;
        bottom: -5px;
    }

    .screen-bar {
        height: 18px;
        padding: 0 6px;
        gap: 10px;
    }

    .dots span {
        width: 4px;
        height: 4px;
    }

    .url-bar {
        height: 11px;
        font-size: 6px;
    }

    .demo-site-nav {
        padding-bottom: 4px;
    }

    .demo-logo {
        font-size: 7px;
    }

    .demo-btn {
        font-size: 5px;
        padding: 2px 4px;
    }

    .demo-hero h3 {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .demo-hero p {
        font-size: 5px;
        margin-bottom: 4px;
    }

    .demo-products {
        gap: 3px;
    }

    .demo-p-card {
        padding: 3px;
        font-size: 5px;
        width: 40px;
    }

    .laptop-base {
        height: 6px;
    }

    .laptop-base::after {
        width: 40px;
        height: 2px;
        bottom: 2px;
    }

    .phone-camera {
        width: 24px;
        height: 6px;
    }

    .card {
        padding: 20px;
    }
}

/* Hover media query to disable hover transforms on touch screens, preventing scroll stutter */
@media (hover: hover) {
    .model-card:hover {
        transform: translate3d(0, -6px, 0);
        border-color: var(--card-border-glow);
        box-shadow: var(--shadow-glow);
    }

    .card:hover {
        transform: translateY(-6px);
        border-color: var(--card-border-glow);
        box-shadow: var(--shadow-glow);
    }
}

/* --- Blogs Page Styles --- */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.blog-card {
    display: flex;
    flex-direction: row;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.blog-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.blog-img-wrapper {
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img {
    transform: scale(1.04);
}

.blog-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.blog-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--secondary);
    font-family: var(--font-serif);
    line-height: 1.3;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-link {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.blog-link:hover {
    color: var(--primary-light);
    gap: 10px;
}

/* --- IoT Devices Page Styles --- */
.iot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.iot-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 100%;
}

.iot-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px);
}

.iot-img-wrapper {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(45, 122, 76, 0.05) 0%, rgba(92, 140, 108, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.iot-icon-glow {
    font-size: 4.5rem;
    filter: drop-shadow(0 8px 16px rgba(45, 122, 76, 0.2));
    transition: var(--transition-bounce);
}

.iot-card:hover .iot-icon-glow {
    transform: scale(1.15) rotate(5deg);
}

.iot-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(45, 122, 76, 0.2);
}

.iot-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.iot-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.iot-title {
    font-size: 1.4rem;
    font-family: var(--font-serif);
    margin-bottom: 10px;
    color: var(--secondary);
    line-height: 1.3;
}

.iot-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.iot-specs {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 24px;
    font-size: 0.82rem;
}

.iot-spec-item {
    display: flex;
    margin-bottom: 8px;
    align-items: baseline;
}

.iot-spec-item:last-child {
    margin-bottom: 0;
}

.iot-spec-label {
    font-weight: 700;
    color: var(--text-muted);
    width: 90px;
    flex-shrink: 0;
}

.iot-spec-value {
    color: var(--text-main);
    font-weight: 500;
}

.iot-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.iot-price-info {
    display: flex;
    flex-direction: column;
}

.iot-price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.iot-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-sans);
}

.iot-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
}

/* Responsive Overrides for new elements */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }
    
    .blog-img-wrapper {
        width: 100%;
        aspect-ratio: 16/10;
    }
    
    .blog-info {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 1.35rem;
    }
}

