
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #020617, #0f172a);
    color: #e2e8f0;
}
/* Preloader */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #020617;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #22c55e;
  font-size: 20px;
}

.loader {
  border: 6px solid #1e293b;
  border-top: 6px solid #22c55e;
  border-radius: 50%;
  width: 60px; height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(2,6,23,0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar h1 {
    color: #22c55e;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar a {
    color: #cbd5f5;
    text-decoration: none;
    transition: 0.3s;
}

.navbar a:hover {
    color: #22c55e;
    text-shadow: 0 0 10px #22c55e;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: 0.3s ease;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #22c55e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
    text-align: center;
    padding: 40px 20px;
}

.gradient-text {
    font-size: 100px;
    background: linear-gradient(135deg, #020617, #0f172a);
    font-weight: bold;
}
.hero h2 {
    font-size: 48px;
     color: #22c55e;
    font-weight: bold;
}
.hero p {
    color: #94a3b8;
    margin-top: 10px;
    font-size: 18px;
}

/* Projects */
.projects {
    padding: 40px 60px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Card */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    border-radius: 22px;
    padding: 22px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 15px 35px rgba(2,6,23,0.28);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}
.card::before {
    content: "";
    position: absolute;
    width: 180%;
    height: 180%;
    background: linear-gradient(120deg, transparent, rgba(34,197,94,0.25), transparent);
    transform: rotate(25deg);
    top: -160%;
    left: -160%;
    transition: 0.6s ease;
}
.card:hover::before {
    top: 120%;
    left: 120%;
}
.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(34,197,94,0.24);
    border-color: rgba(34,197,94,0.35);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    color: #020617;
    box-shadow: 0 8px 20px rgba(34,197,94,0.25);
}

.card-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(34,197,94,0.15);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.25);
}

.card h3 {
    margin-bottom: 10px;
    color: #f8fafc;
    font-size: 20px;
}

.card p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}
.hidden {
    display: none;
}

/* Button */
.btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    color: #020617;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    align-self: flex-start;
    box-shadow: 0 8px 18px rgba(56,189,248,0.22);
}

.btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 22px rgba(34,197,94,0.25);
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    background: rgba(2,6,23,0.8);
    backdrop-filter: blur(10px);
    color: #94a3b8;
}
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #22c55e;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.pagination button:hover {
    background: #22c55e;
    color: #020617;
    box-shadow: 0 0 10px #22c55e;
}

.footer {
  background: linear-gradient(135deg, rgba(2,6,23,0.95), rgba(15,23,42,0.95));
  backdrop-filter: blur(18px);
  color: #e2e8f0;
  padding: 50px 25px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin: 0 40px;
  align-items: flex-start;
}

.footer-col {
  flex: 1;
  min-width: 220px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-col::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-col:hover {
  transform: translateY(-4px);
  border-color: rgba(34,197,94,0.25);
  box-shadow: 0 12px 28px rgba(34,197,94,0.12);
}

.footer-col:hover::before {
  opacity: 1;
}

.footer-col h4 {
  margin-bottom: 15px;
  color: #22c55e;
  font-size: 20px;
  font-weight: bold;
  border-bottom: 2px solid #22c55e;
  display: inline-block;
  padding-bottom: 5px;
  position: relative;
  z-index: 1;
}

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

.footer-col ul li {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li::before {
  content: "•";
  color: #22c55e;
  font-size: 16px;
}

.footer-col ul li a {
  color: #cbd5f5;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: #22c55e;
  transform: translateX(4px);
  text-shadow: 0 0 10px #22c55e;
}

/* Social Links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  color: #f8fafc;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(2,6,23,0.18);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(34,197,94,0.25);
}

.social-col {
  text-align: center;
}

.social-col h4 {
  display: block;
  text-align: center;
  margin-bottom: 18px;
}

.social-links a[href*="facebook"] {
  background: linear-gradient(135deg, #1877f2, #4a90e2);
}

.social-links a[href*="instagram"] {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-links a[href*="twitter"] {
  background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-links a[href*="linkedin"] {
  background: linear-gradient(135deg, #0a66c2, #004182);
}

.social-links a[href*="github"] {
  background: linear-gradient(135deg, #333, #111);
}

.social-links a[href*="youtube"] {
  background: linear-gradient(135deg, #ff0000, #c50000);
}

/* Map */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(34,197,94,0.2);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 14px;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

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

/* Hide main content initially */
.main-content {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
        flex-wrap: wrap;
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0 4px;
        gap: 10px;
        background: rgba(2, 6, 23, 0.96);
        border-radius: 12px;
        margin-top: 10px;
        overflow: hidden;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 4px 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 16px 15px;
    }

    .navbar h1 {
        font-size: 24px;
    }

    .hero {
        padding: 20px 10px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .pagination button {
        padding: 6px 10px;
        font-size: 14px;
    }

    .footer {
        padding: 24px 12px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0;
    }

    .footer-col {
        width: 100%;
        padding: 14px;
    }

    .footer-col ul li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-col {
        text-align: center;
    }

    #contact.footer {
        padding: 10px 10px;
    }
}
    .gradient-text {
        font-size: 32px;
    }
}