

/* ===== HERO ===== */
.hero {
  min-height: 55vh;
  background: url("../img/UIUX\ &\ Web\ Experience\ Design\ -\ 007\ \(1\).png") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: auto;
  /* padding: 0 20px; */
}

.hero h1 {
font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff;
  max-width: 720px;
}

.hero p {
  margin-top: 18px;
  font-size: 1.1rem;
  color: #e5e7eb;
  max-width: 600px;
}

.hero .line {
  width: 90px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 26px;
}



 /* ===== VARIABLES ===== */
:root {
    --light-bg: #f8fafc;
    --dark-text: #0f172a;
    --muted: #475569;
    --accent: #ef4444;
    --glass: rgba(255, 255, 255, 0.9);
    --card-bg: rgba(255, 255, 255, 0.75);
    --border-light: rgba(15, 23, 42, 0.08);
}

/* ===== BASE STYLES ===== */

body {
  
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 40%, #eef2f7 100%);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

/* p {
    color: #334155;
} */

/* ===== PARTICLE BACKGROUND ===== */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.15;
    animation: particleFloat 20s infinite linear;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo i {
    color: var(--accent);
    animation: pulseGlow 3s infinite;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(239, 68, 68, 0.08);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 60%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 55vh;
    background: url("../img/UIUX\ &\ Web\ Experience\ Design\ -\ 007\ \(1\).png") center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    color: #fff;
    max-width: 720px;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero p {
    margin-top: 18px;
    font-size: 1.1rem;
    color: #e5e7eb;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .line {
    width: 90px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 26px;
}

/* ===== IOT NETWORK ANIMATION ===== */
.iot-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.device-node {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    backdrop-filter: blur(5px);
    animation: deviceFloat 8s ease-in-out infinite;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.15);
}

.device-node:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.device-node:nth-child(2) { top: 40%; right: 20%; animation-delay: 1s; }
.device-node:nth-child(3) { bottom: 30%; left: 25%; animation-delay: 2s; }
.device-node:nth-child(4) { bottom: 20%; right: 15%; animation-delay: 3s; }
.device-node:nth-child(5) { top: 60%; left: 40%; animation-delay: 0.5s; }
.device-node:nth-child(6) { top: 25%; left: 60%; animation-delay: 1.5s; }

.data-stream {
    position: absolute;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(239, 68, 68, 0) 100%);
    transform-origin: 0 0;
    animation: dataStream 6s infinite;
}

/* ===== SECTIONS ===== */
.intro-section {
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 1.9rem;
    margin-bottom: 15px;
    color: var(--dark-text);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(239, 68, 68, 0) 100%);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== CARDS GRID ===== */
.why-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* ===== CARD STYLES ===== */
.why-card, .feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

/* FIX FOR INTRO-SECTION FEATURE CARDS */
#features.intro-section .feature-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.why-card.visible, .feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-card:hover, .feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 25px 50px rgba(239, 68, 68, 0.18);
}

.why-card::before, .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.why-card:hover::before, .feature-card:hover::before {
    opacity: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(239, 68, 68, 0) 100%);
}

/* ===== CARD ICONS ===== */
.card-icon, .feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.12);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    color: var(--accent);
    position: relative;
    z-index: 2;
    animation: iconFloat 4s ease-in-out infinite;
}

.feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    border-radius: 18px;
}

/* ===== CARD CONTENT ===== */
.why-card h3, .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-text);
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.4rem;
}

.why-card p, .feature-card p {
    color: #334155;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* ===== BADGES ===== */
.stat-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: badgePulse 3s infinite;
}

/* ===== FOOTER ===== */
footer {
    background: #f1f5f9;
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--accent);
}

.footer-about p {
    color: var(--muted);
    margin-bottom: 30px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li, .footer-contact li {
    margin-bottom: 15px;
}

.footer-links a, .footer-contact a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    color: #64748b;
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.8));
        transform: scale(1.1);
    }
}

@keyframes deviceFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 10px 20px rgba(239, 68, 68, 0.1);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        box-shadow: 0 20px 40px rgba(239, 68, 68, 0.2);
    }
}

@keyframes dataStream {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 150px;
        opacity: 0.8;
    }
    100% {
        height: 0;
        opacity: 0;
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes badgePulse {
    0%, 100% {
        background: rgba(239, 68, 68, 0.15);
    }
    50% {
        background: rgba(239, 68, 68, 0.25);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    .why-grid, .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .why-card, .feature-card {
        padding: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .why-card, .feature-card {
        padding: 25px 20px;
    }
    
    .device-node {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}