/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Brand/Logo - Static Top Left in Hero */
.brand {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.brand-logo {
    height: 50px;
    width: auto;
    border-radius: 15px;
}

.brand-name {
    font-size: 30px;
    font-weight: bold;
    background: linear-gradient(90deg, #FDB915 0%, #FF8C00 50%, #FF4D1F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(253, 185, 21, 0.4));
    position: relative;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
#hero {
    background-color: #0a0a0a;
    position: relative;
    overflow: hidden;
    justify-content: flex-end;
    padding-right: 10%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(253, 185, 21, 0.6) 0%,
        rgba(255, 140, 0, 0.4) 25%,
        rgba(255, 77, 31, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 75%,
        rgba(0, 0, 0, 0) 100%
    );
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translateX(-10%);
        opacity: 0.8;
    }
    50% {
        transform: translateX(0%);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: left;
    opacity: 0;
    transform: translateX(100px);
    animation: fadeInFromRight 1s ease-out 0.3s forwards;
}

@keyframes fadeInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-headline {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -1px;
}

.hero-subtext {
    font-size: 18px;
    color: #d1d5db;
    line-height: 1.7;
    margin: 0;
}

.hero-button {
    align-self: flex-start;
    background: linear-gradient(135deg, #FDB915 0%, #FF4D1F 100%);
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 185, 21, 0.4);
    text-decoration: none;
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(253, 185, 21, 0.6);
}

.hero-button:active {
    transform: translateY(0);
}

/* Why Choose SafeNet Section */
#about {
    background: radial-gradient(circle at 50% 50%, #1a1224 0%, #0d0a15 100%);
    justify-content: flex-start;
    padding-left: 10%;
    position: relative;
    overflow: hidden;
}

.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 15s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    width: 250px;
    height: 250px;
    top: 60%;
    left: 70%;
    background: radial-gradient(circle, rgba(255, 77, 31, 0.25) 0%, transparent 70%);
    animation-delay: 2s;
    animation-duration: 15s;
}

.particle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 80%;
    background: radial-gradient(circle, rgba(253, 185, 21, 0.2) 0%, transparent 70%);
    animation-delay: 4s;
    animation-duration: 18s;
}

.particle:nth-child(4) {
    width: 350px;
    height: 350px;
    top: 70%;
    left: 20%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.2) 0%, transparent 70%);
    animation-delay: 1s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 50%;
    background: radial-gradient(circle, rgba(255, 77, 31, 0.15) 0%, transparent 70%);
    animation-delay: 3s;
    animation-duration: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, -80px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(-40px, -40px) scale(1.05);
        opacity: 0.6;
    }
}

.why-choose-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.why-choose-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 25px;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
}

.why-choose-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.why-choose-headline {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

.why-choose-text {
    font-size: 18px;
    color: #d1d5db;
    line-height: 1.7;
    margin: 0;
}

.why-choose-stats {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out 0.2s;
}

.why-choose-content.visible ~ .why-choose-stats,
.why-choose-stats.visible {
    opacity: 1;
    transform: translateX(0);
}

.stat-item {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-right: none;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item:hover {
    border-color: rgba(255, 140, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 140, 0, 0.08) 100%);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.85rem;
    color: #a1a1a1;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FF8C00;
}

/* Services/Features Section */
#services {
    background: linear-gradient(180deg, #1a1224 0%, #0d0a15 100%);
    position: relative;
    overflow: hidden;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 140, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 140, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.4;
}

.grid-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(253, 185, 21, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 77, 31, 0.15) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.features-grid {
    position: relative;
    z-index: 10;
    display: grid;
    height:600px;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr; /* implicit rows get equal fraction */
    gap: 40px;
    max-width: 1200px;
    padding: 0 40px;
}

.feature-box {
    background: linear-gradient(145deg, #1a1224 0%, #0d0a15 100%);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;    
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100px);
}

.feature-box.visible {
    animation: feature-reveal .8s ease-out calc(var(--i, 0) * 0.15s) forwards;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FDB915, #FF8C00, #FF4D1F);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-10px) !important;
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.3);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(253, 185, 21, 0.2), rgba(255, 140, 0, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #FF8C00;
    transition: all 0.4s ease;
}

@keyframes feature-reveal {
    from { opacity: 0; transform: translateY(100px); }
    to   { opacity: 1; transform: translateY(0); }
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(253, 185, 21, 0.4), rgba(255, 140, 0, 0.4));
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 16px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.2);
    border: 2px solid rgba(255, 140, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.scroll-indicator.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    animation: bounceScroll 2s ease-in-out infinite 0.5s;
}

.scroll-indicator.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(100px);
}

.scroll-indicator svg {
    color: #FF8C00;
}

.scroll-indicator:hover {
    background: rgba(255, 140, 0, 0.4);
    border-color: rgba(255, 140, 0, 0.8);
}

@keyframes bounceScroll {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* About SafeNet Section */
#features {
    background: radial-gradient(circle at 50% 50%, #1a1224 0%, #0d0a15 100%);
    position: relative;
    overflow: hidden;
}

#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255, 140, 0, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 140, 0, 0.03) 41px),
        repeating-linear-gradient(90deg, rgba(255, 140, 0, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 140, 0, 0.03) 41px);
    opacity: 0.5;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    padding: 0 40px;
    width: 100%;
}

.about-box {
    background: linear-gradient(145deg, #1a1224 0%, #0d0a15 100%);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.about-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.origins-box {
    transition-delay: 0s;
}

.company-box {
    transition-delay: 0.2s;
}

.developer-box {
    transition-delay: 0.4s;
}

.about-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(90deg, 
        #FDB915, 
        #FF8C00, 
        #FF4D1F, 
        #FF8C00, 
        #FDB915
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    background-size: 300% 100%;
    animation: borderGlow 6s linear infinite;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

.origins-box {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.company-box {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.developer-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.box-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.company-box .box-header {
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
    margin-bottom: 20px;
}

.box-logo {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    object-fit: contain;
}

.box-title {
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.box-content {
    flex: 1;
}

.company-text {
    font-size: 16px;
    color: #d1d5db;
    line-height: 1.7;
    margin: 0;
}

.origins-text {
    font-size: 16px;
    color: #d1d5db;
    line-height: 1.7;
    margin: 0;
}

.developer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.developer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 140, 0, 0.4);
    flex-shrink: 0;
}

.developer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.developer-name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.developer-role {
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* Contact Section */
#contact {
    background: radial-gradient(circle at 50% 50%, #1a1224 0%, #0d0a15 100%);
    position: relative;
    overflow: hidden;
    padding-top: 0px !important;
}

.contact-container {
    max-width: 1200px;
    padding: 0 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contact-header {
    text-align: center;
}

.contact-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.contact-subtitle {
    font-size: 18px;
    color: #9ca3af;
    margin: 0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: linear-gradient(145deg, #1a1224 0%, #0d0a15 100%);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FDB915, #FF8C00, #FF4D1F);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.3);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(253, 185, 21, 0.2), rgba(255, 140, 0, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8C00;
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(253, 185, 21, 0.4), rgba(255, 140, 0, 0.4));
}

.contact-method-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.contact-method-desc {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

.contact-button {
    background: linear-gradient(135deg, #FDB915 0%, #FF4D1F 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 185, 21, 0.4);
    text-decoration: none;
    display: inline-block;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(253, 185, 21, 0.6);
}

.support-categories {
    text-align: center;
}

.categories-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 25px 0;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-tag {
    background: rgba(255, 140, 0, 0.15);
    border: 1px solid rgba(255, 140, 0, 0.3);
    color: #d1d5db;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: rgba(255, 140, 0, 0.25);
    border-color: rgba(255, 140, 0, 0.5);
    transform: translateY(-2px);
}

/* Footer */
#footer {
    background: linear-gradient(180deg, #0d0a15 0%, #000000 100%);
    color: #fff;
    padding: 60px 0 0 0;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    background: linear-gradient(90deg, #FDB915 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #FF8C00;
    transform: translateX(3px);
}

.footer-link svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 140, 0, 0.1);
    padding: 25px 40px;
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    #footer {
        padding: 40px 0 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 20px 28px 20px;
        gap: 20px;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-link {
        justify-content: center;
    }

    .footer-bottom {
        padding: 18px 20px;
    }

    /* Why Choose Section Responsive */
    .why-choose-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .why-choose-stats {
        flex-direction: row;
        gap: 1rem;
        transform: translateY(50px);
    }

    .why-choose-stats.visible {
        transform: translateY(0);
    }

    .stat-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        font-size: 1.75rem;
    }

    .why-choose-headline {
        font-size: 32px;
    }

    .why-choose-text {
        font-size: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}
