/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 180px;
    height: auto;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.2);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #dc2626;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 12px 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #fff;
    color: #dc2626;
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #dc2626;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-visualization {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    z-index: 10;
}

/* Base node styles */
.node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.node:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* Connection Lines SVG */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connection-lines .line {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: lineFlow 3s linear infinite;
}

.connection-lines .line:nth-child(1) {
    animation-delay: 0s;
}

.connection-lines .line:nth-child(2) {
    animation-delay: 0.375s;
}

.connection-lines .line:nth-child(3) {
    animation-delay: 0.75s;
}

.connection-lines .line:nth-child(4) {
    animation-delay: 1.125s;
}

.connection-lines .line:nth-child(5) {
    animation-delay: 1.5s;
}

.connection-lines .line:nth-child(6) {
    animation-delay: 1.875s;
}

.connection-lines .line:nth-child(7) {
    animation-delay: 2.25s;
}

.connection-lines .line:nth-child(8) {
    animation-delay: 2.625s;
}

/* Octagon Node Positions */
.octagon-node {
    top: 50%;
    left: 50%;
}

/* Node 1 - Top (0°) */
.node-1 {
    animation: floatNode1 3s ease-in-out infinite;
    animation-delay: 0s;
}

/* Node 2 - Top-Right (45°) */
.node-2 {
    animation: floatNode2 3s ease-in-out infinite;
    animation-delay: 0.1s;
}

/* Node 3 - Right (90°) */
.node-3 {
    animation: floatNode3 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* Node 4 - Bottom-Right (135°) */
.node-4 {
    animation: floatNode4 3s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* Node 5 - Bottom (180°) */
.node-5 {
    animation: floatNode5 3s ease-in-out infinite;
    animation-delay: 0.4s;
}

/* Node 6 - Bottom-Left (225°) */
.node-6 {
    animation: floatNode6 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Node 7 - Left (270°) */
.node-7 {
    animation: floatNode7 3s ease-in-out infinite;
    animation-delay: 0.6s;
}

/* Node 8 - Top-Left (315°) */
.node-8 {
    animation: floatNode8 3s ease-in-out infinite;
    animation-delay: 0.7s;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

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

@keyframes floatNode1 {
    0%, 100% { transform: translate(-50%, -50%) translateY(-180px); }
    50% { transform: translate(-50%, -50%) translateY(-188px); }
}

@keyframes floatNode2 {
    0%, 100% { transform: translate(-50%, -50%) translate(127px, -127px); }
    50% { transform: translate(-50%, -50%) translate(127px, -135px); }
}

@keyframes floatNode3 {
    0%, 100% { transform: translate(-50%, -50%) translateX(180px); }
    50% { transform: translate(-50%, -50%) translateX(180px) translateY(-8px); }
}

@keyframes floatNode4 {
    0%, 100% { transform: translate(-50%, -50%) translate(127px, 127px); }
    50% { transform: translate(-50%, -50%) translate(127px, 119px); }
}

@keyframes floatNode5 {
    0%, 100% { transform: translate(-50%, -50%) translateY(180px); }
    50% { transform: translate(-50%, -50%) translateY(172px); }
}

@keyframes floatNode6 {
    0%, 100% { transform: translate(-50%, -50%) translate(-127px, 127px); }
    50% { transform: translate(-50%, -50%) translate(-127px, 119px); }
}

@keyframes floatNode7 {
    0%, 100% { transform: translate(-50%, -50%) translateX(-180px); }
    50% { transform: translate(-50%, -50%) translateX(-180px) translateY(-8px); }
}

@keyframes floatNode8 {
    0%, 100% { transform: translate(-50%, -50%) translate(-127px, -127px); }
    50% { transform: translate(-50%, -50%) translate(-127px, -135px); }
}

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

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes flow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes lineFlow {
    0% {
        stroke-dashoffset: 0;
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        stroke-dashoffset: 20;
        opacity: 0.3;
    }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
        filter: brightness(1.3);
    }
}

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

@keyframes cloudMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-5px); }
    50% { transform: translateX(0) translateY(-10px); }
    75% { transform: translateX(-10px) translateY(-5px); }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8fafc;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.8;
    text-align: justify;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature p {
    color: #6b7280;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Coverage Section */
.coverage {
    padding: 80px 0;
    background: #f8fafc;
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.map-container {
    position: relative;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border-radius: 20px;
    height: 400px;
    overflow: hidden;
}

.location-marker {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    animation: float 3s ease-in-out infinite;
}

.location-marker i {
    color: #dc2626;
}

.location-marker[data-location="Halmahera"] {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.location-marker[data-location="Lokulamo"] {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.location-marker[data-location="Weda"] {
    top: 50%;
    left: 20%;
    animation-delay: 1s;
}

.location-marker[data-location="Sagea"] {
    top: 60%;
    right: 30%;
    animation-delay: 1.5s;
}

.location-marker[data-location="Gemaf"] {
    bottom: 20%;
    left: 40%;
    animation-delay: 2s;
}

.location-marker[data-location="Gorontalo"] {
    top: 40%;
    left: 10%;
    animation-delay: 2.5s;
}

.location-marker[data-location="Bolaang Mongondow Timur"] {
    bottom: 30%;
    right: 10%;
    animation-delay: 3s;
}

.coverage-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.coverage-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.tech-stack h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.tech-stack ul {
    list-style: none;
}

.tech-stack li {
    padding: 0.5rem 0;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-stack i {
    color: #10b981;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-details p {
    color: #6b7280;
    line-height: 1.6;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.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: white;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #dc2626;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Desktop Layout for Features */
@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}

/* Tablet Layout for Features */
@media (min-width: 768px) and (max-width: 1023px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .header-logo {
        width: 140px;
        max-height: 50px;
    }

    .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-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .coverage-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }
    
    /* Mobile adjustments for network visualization */
    .network-visualization {
        width: 100%;
        height: 350px;
        max-width: 350px;
    }
    
    .central-node {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .node {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Adjust octagon positions for mobile */
    .node-1 {
        animation: floatNode1Mobile 3s ease-in-out infinite !important;
    }
    
    .node-2 {
        animation: floatNode2Mobile 3s ease-in-out infinite !important;
    }
    
    .node-3 {
        animation: floatNode3Mobile 3s ease-in-out infinite !important;
    }
    
    .node-4 {
        animation: floatNode4Mobile 3s ease-in-out infinite !important;
    }
    
    .node-5 {
        animation: floatNode5Mobile 3s ease-in-out infinite !important;
    }
    
    .node-6 {
        animation: floatNode6Mobile 3s ease-in-out infinite !important;
    }
    
    .node-7 {
        animation: floatNode7Mobile 3s ease-in-out infinite !important;
    }
    
    .node-8 {
        animation: floatNode8Mobile 3s ease-in-out infinite !important;
    }
    
    @keyframes floatNode1Mobile {
        0%, 100% { transform: translate(-50%, -50%) translateY(-120px); }
        50% { transform: translate(-50%, -50%) translateY(-128px); }
    }
    
    @keyframes floatNode2Mobile {
        0%, 100% { transform: translate(-50%, -50%) translate(85px, -85px); }
        50% { transform: translate(-50%, -50%) translate(85px, -93px); }
    }
    
    @keyframes floatNode3Mobile {
        0%, 100% { transform: translate(-50%, -50%) translateX(120px); }
        50% { transform: translate(-50%, -50%) translateX(120px) translateY(-8px); }
    }
    
    @keyframes floatNode4Mobile {
        0%, 100% { transform: translate(-50%, -50%) translate(85px, 85px); }
        50% { transform: translate(-50%, -50%) translate(85px, 77px); }
    }
    
    @keyframes floatNode5Mobile {
        0%, 100% { transform: translate(-50%, -50%) translateY(120px); }
        50% { transform: translate(-50%, -50%) translateY(112px); }
    }
    
    @keyframes floatNode6Mobile {
        0%, 100% { transform: translate(-50%, -50%) translate(-85px, 85px); }
        50% { transform: translate(-50%, -50%) translate(-85px, 77px); }
    }
    
    @keyframes floatNode7Mobile {
        0%, 100% { transform: translate(-50%, -50%) translateX(-120px); }
        50% { transform: translate(-50%, -50%) translateX(-120px) translateY(-8px); }
    }
    
    @keyframes floatNode8Mobile {
        0%, 100% { transform: translate(-50%, -50%) translate(-85px, -85px); }
        50% { transform: translate(-50%, -50%) translate(-85px, -93px); }
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
        min-width: unset;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #991b1b;
}

/* Popup Modal Styles */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover,
.popup-close:focus {
    color: #dc2626;
    background: white;
    transform: scale(1.1);
}

.popup-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}


/* Popup Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Popup */
@media (max-width: 768px) {
    .popup-content {
        margin: 10% auto;
        width: 95%;
        max-width: 350px;
    }
    
    .popup-image {
        height: auto;
    }
}
