*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --primary:#012c6b;
    --secondary:#0f5fd7;
    --light:#f8fafc;
    --white:#ffffff;
    --text:#1e293b;
    --gradient:linear-gradient(135deg,#012c6b 0%,#0f5fd7 50%,#43a1ff 100%);
    --shadow:0 10px 30px rgba(0,0,0,0.1);
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
    color:var(--text);
    background:var(--white);
}

.container{
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}

.navbar{
    position:fixed;
    top:0;
    width:100%;
    background:rgba(255,255,255,0.95);
    backdrop-filter:blur(10px);
    z-index:9999;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 20px;
}

.znsnet-logo img{
    width:130px;
    height:auto;
}

.nav-menu{
    display:flex;
    list-style:none;
    gap:30px;
    z-index: 998;
}

.nav-link{
    text-decoration:none;
    font-weight:600;
    color:var(--text);
    position:relative;
    transition:0.3s;
}

.nav-link:hover,.nav-link.active{
    color:var(--primary);
}

.nav-link::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:2px;
    background:var(--primary);
    transition:0.3s;
}

.nav-link:hover::after,.nav-link.active::after{
    width:100%;
}

.dropdown{
    position:relative;
}

.submenu{
    position:absolute;
    top:100%;
    left:0;
    background:white;
    list-style:none;
    min-width:220px;
    padding:10px 0;
    border-radius:10px;
    box-shadow:var(--shadow);
    opacity:0;
    visibility:hidden;
    transition:0.3s;
}

.dropdown:hover .submenu{
    opacity:1;
    visibility:visible;
}

.submenu a{
    display:block;
    padding:12px 20px;
    text-decoration:none;
    color:var(--text);
}

.submenu a:hover{
    background:var(--primary);
    color:white;
}

.hamburger{
    display:none;
    flex-direction:column;
    cursor:pointer;
}

.bar{
    width:25px;
    height:3px;
    background:var(--text);
    margin:3px 0;
}

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    background:var(--gradient);
    position:relative;
    color:white;
    padding:120px 20px 60px;
    overflow-x: hidden;
}

.hero-title{
    font-family:'Orbitron',sans-serif;
    font-size:3.5rem;
    margin-bottom:20px;
}

.hero-subtitle{
    max-width:700px;
    margin:auto;
    font-size:1.2rem;
    line-height:1.8;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-buttons{
    margin-top:30px;
    display:flex;
    gap:15px;
    justify-content:center;
    flex-wrap:wrap;
}

.btn{
    padding:14px 30px;
    border:none;
    border-radius:50px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
    touch-action: manipulation;
}

.btn-primary{
    background:white;
    color:var(--primary);
}

.btn-primary:hover{
    transform:translateY(-3px);
}

.btn-secondary{
    background:transparent;
    border:2px solid white;
    color:white;
}

.btn-secondary:hover{
    background:white;
    color:var(--primary);
}

.shape{
    position:absolute;
    pointer-events: none;
    border-radius:50%;
    background:rgba(255,255,255,0.1);
    animation:float 6s infinite ease-in-out;
}

.shape-1{
    width:120px;
    height:120px;
    top:20%;
    left:10%;
}

.shape-2{
    width:180px;
    height:180px;
    bottom:20%;
    right:10%;
}

.shape-3{
    width:80px;
    height:80px;
    bottom:10%;
    left:25%;
}

.floating-shapes {
    pointer-events: none;
}

@keyframes float{
    50%{transform:translateY(-20px);}
}

.services,.portfolio,.contact{
    padding:100px 0;
}

.section-header{
    text-align:center;
    margin-bottom:60px;
}

.section-header h2{
    font-size:2.5rem;
    margin-bottom:10px;
}

.services-grid,.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;
}

.service-card,.portfolio-item,.contact-form{
    background:white;
    border-radius:20px;
    box-shadow:var(--shadow);
    overflow:hidden;
    transition:0.3s;
}

.service-card:hover,
.portfolio-item:hover{
transform:translateY(-10px) scale(1.02);
}

.service-card{
    padding:40px 30px;
    text-align:center;
}

.service-icon{
    width:80px;
    height:80px;
    margin:auto;
    border-radius:50%;
    background:var(--gradient);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:20px;
}

.service-icon i{
    font-size:2rem;
    color:white;
}

.service-card ul{
    list-style:none;
    margin-top:20px;
    text-align:left;
}

.service-card li{
    padding:8px 0;
}

.portfolio-image img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.portfolio-content{
    padding:20px;
}

.tech-tag{
    display:inline-block;
    background:var(--primary);
    color:white;
    padding:6px 12px;
    border-radius:20px;
    margin-top:10px;
    font-size:14px;
}

.contact-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.contact-item{
    display:flex;
    gap:15px;
    margin-bottom:30px;
}

.contact-item i{
    width:50px;
    height:50px;
    border-radius:50%;
    background:var(--gradient);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
}

.contact-form{
    padding:40px;
}

.form-group{
    position:relative;
    margin-bottom:25px;
}

.form-group input,.form-group textarea,.form-group select{
    width:100%;
    padding:16px;
    border:2px solid #e2e8f0;
    border-radius:10px;
    font-size:1rem;
    outline:none;
}

.form-group label{
    position:absolute;
    left:15px;
    top:16px;
    background:white;
    padding:0 5px;
    transition:0.3s;
    pointer-events:none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:valid + label{
    top:-10px;
    font-size:12px;
    color:var(--primary);
}

.footer {
    position: relative;
    display:flex;
    background: var(--primary);
    color: #ffffff;
    padding: 60px 0 20px;
    overflow: hidden;
}

/* Floating Shapes Container */
.footer-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Floating Balls */
.footer-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    animation: footerFloat 8s ease-in-out infinite;
}

/* Individual Ball Sizes */
.footer-shapes .shape-1 {
    width: 120px;
    height: 120px;
    top: 20px;
    left: 10%;
    animation-delay: 0s;
}

.footer-shapes .shape-2 {
    width: 180px;
    height: 180px;
    bottom: -40px;
    right: 12%;
    animation-delay: 2s;
}

.footer-shapes .shape-3 {
    width: 90px;
    height: 90px;
    top: 50%;
    left: 45%;
    animation-delay: 4s;
}

.footer-shapes .shape-4 {
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 25%;
    animation-delay: 1s;
}

.footer-shapes .shape-5 {
    width: 140px;
    height: 140px;
    top: -30px;
    right: 35%;
    animation-delay: 3s;
}

/* Animation */
@keyframes footerFloat {

    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(180deg);
    }
}


/* Keep Footer Content Above Shapes */
.footer .container {
    position: relative;
    z-index: 2;
}

/* Footer Text */
.footer-section p,
.footer-section ul li a,
.footer-bottom {
    color: #cbd5e1;
}

.footer-section h3,
.footer-section h4 {
    color: #ffffff;
}

.footer-content{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
}

.footer-section ul{
    list-style:none;
}

.footer-section a{
    color:#cbd5e1;
    text-decoration:none;
}

.social-links{
    display:flex;
    gap:15px;
    margin-top:15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    color: #fff;
}

/* Facebook */
.social-links a:nth-child(1) {
    background: #1877f2;
}

/* Instagram */
.social-links a:nth-child(2) {
    background: radial-gradient(circle at 30% 107%,
    #fdf497 0%, #fdf497 5%,
    #fd5949 45%, #d6249f 60%,
    #285AEB 90%);
}

/* WhatsApp */
.social-links a:nth-child(3) {
    background: #25d366;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.footer-bottom{
    text-align:center;
    margin-top:40px;
    padding-top:20px;
    border-top:1px solid #334155;
}

.whatsapp-float{
    position:fixed;
    right:20px;
    bottom:20px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:#25d366;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
    text-decoration:none;
    z-index:999;
}

/* Terms Page */
.terms-page {
    position: relative;
    background: #f8fafc;
    overflow: hidden;
    z-index: 1;
}

/* Watermark Logo */
.terms-page::before {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;

    width: 1750px;
    height: 1750px;

    background-image: url("images/znsnet-logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    transform: translate(-50%, -50%);

    opacity: 0.15;

    z-index: 0;

    pointer-events: none;
}

/* Keep Content Above Watermark */
.terms-page .container {
    position: relative;
    z-index: 2;
}

@media(max-width:768px){

    .nav-menu{
        position:fixed;
        left:-100%;
        top:80px;
        flex-direction:column;
        background:white;
        width:100%;
        padding:30px 0;
        text-align:center;
        transition:0.3s;
    }

    .nav-menu.active{
        left:0;
    }

    .hamburger{
        display:flex;
    }

    .submenu{
        position:static;
        opacity:1;
        visibility:visible;
        display:none;
        box-shadow:none;
    }

    .dropdown.active .submenu{
        display:block;
    }

    .hero-title{
        font-size:2.3rem;
    }

    .contact-content,.footer-content{
        grid-template-columns:1fr;
    }
}
