/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-logo i {
    margin-right: 0.5rem;
    color: #e74c3c;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #e74c3c;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 0 40px rgba(9, 9, 9, 0.5);
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f8f9fa;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 15rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-dark {
    background: #2c3e50;
    color: white;
}

.bg-light {
    background: #f8f9fa;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.bg-dark .section-title {
    color: white;
}

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.overview-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.overview-card p {
    color: #666;
    line-height: 1.6;
}

/* System Diagram */
.diagram-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.diagram-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.diagram-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e74c3c;
    background: transparent;
    color: #e74c3c;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.diagram-btn.active,
.diagram-btn:hover {
    background: #e74c3c;
    color: white;
}

.diagram-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.interactive-diagram {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.interactive-diagram:active {
    cursor: grabbing;
}

.diagram-view {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diagram-view.active {
    opacity: 1;
}

.sensor-node,
.network-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.sensor-node:hover,
.network-node:hover {
    transform: scale(1.1);
}

.diagram-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.diagram-tooltip.show {
    opacity: 1;
}

/* Components Section */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.component-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.component-card:hover {
    transform: translateY(-5px);
}

.component-icon {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.component-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.component-purpose {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.component-specs {
    list-style: none;
    margin-bottom: 1.5rem;
}

.component-specs li {
    padding: 0.25rem 0;
    color: #555;
}

.component-specs li:before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
}

.component-links {
    display: flex;
    gap: 1rem;
}

.component-link {
    padding: 0.5rem 1rem;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.component-link:hover {
    background: #c0392b;
}

/* Build Guide */
.build-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.step-details ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.step-details li {
    margin-bottom: 0.5rem;
    color: #555;
}

.code-snippet {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    overflow-x: auto;
}

.code-snippet pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.warning-box,
.tip-box {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.tip-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.warning-box i,
.tip-box i {
    margin-top: 0.2rem;
}

.power-diagram,
.dashboard-features {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #e74c3c;
}

/* Deployment Section */
.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.deployment-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.deployment-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.deployment-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.deployment-card ul {
    list-style: none;
    text-align: left;
}

.deployment-card li {
    padding: 0.5rem 0;
    color: #555;
}

.deployment-card li:before {
    content: "→ ";
    color: #e74c3c;
    font-weight: bold;
}

.technical-specs {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.technical-specs h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.spec-item strong {
    color: #2c3e50;
}

.spec-item span {
    color: #555;
    text-align: right;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e74c3c;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .diagram-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .diagram-btn {
        width: 200px;
    }
    
    .component-links {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .overview-grid,
    .components-grid,
    .deployment-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .spec-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .spec-item span {
        text-align: left;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.diagram-btn:focus,
.component-link:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .overview-card,
    .component-card,
    .step-card,
    .deployment-card {
        border: 2px solid #333;
    }
}




/* ===== Results Section ===== */
#results {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

#results .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-8px);
}

.result-icon {
    font-size: 2.2rem;
    color: #007BFF;
    margin-bottom: 15px;
}

.result-metric {
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

.result-card h3 {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 10px;
}

.result-card p {
    font-size: 0.95rem;
    color: #666;
}

/* ===== Impact Section ===== */
.impact-analysis h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.impact-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.07);
}

.impact-item h4 {
    font-size: 1.2rem;
    color: #007BFF;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.impact-item ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #444;
    font-size: 0.95rem;
}

/* ===== Technical Achievements ===== */
.technical-achievements h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    color: #555;
}

.achievement-item i {
    color: #28a745;
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .section-title, .technical-achievements h3, .impact-analysis h3 {
        font-size: 2rem;
    }
}



.video-container{
    padding: 2rem;
}

.video-container h3{
    padding-top: 1rem;
    font-size: 2.3rem;
    padding-left: 30rem;
    padding-bottom: 1rem;
    align-items: center;
    color: #444;
    margin-bottom: 10px;
}

video{
    width: 100%;
    border-radius: 12px;
   
    transition: transform 0.5s ease, filter 0.5s ease;
   
}
video:hover {
      filter: brightness(1.2); 
}
