/* Header Styles */
header {
    background-color: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--glow);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: radial-gradient(ellipse at center top, rgba(26, 35, 50, 0.8) 0%, var(--primary) 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="%2300d4ff" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

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

/* Services Section */
.services {
    background-color: var(--secondary);
}

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

.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
    border-color: rgba(0, 212, 255, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '\25B6';  /* Unicode for ? */
    color: var(--accent);
    margin-right: 8px;
    font-weight: bold;
}

/* Technologies Section */
.technologies {
    background-color: var(--primary);
}

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

.tech-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    text-align: center;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
    border-color: rgba(0, 212, 255, 0.3);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.tech-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tech-card p {
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    text-align: center;
    color: var(--primary);
}

/* Contact Form Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--glow);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2300d4ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

/* Projects Carousel - Single Project Movement */
.projects-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    overflow: hidden;
    padding: 0 80px;
}

.projects-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: calc(33.333% - 1.5rem);
    min-height: 320px;
    box-sizing: border-box;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}

.project-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.95rem;
}

.project-button {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    width: auto;
    max-width: 160px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.project-button:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
    z-index: 10;
}

.carousel-btn:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.2);
    box-shadow: var(--glow);
}

.indicator:hover {
    background: var(--accent-light);
}

/* Responsive adjustments for carousel */
@media (max-width: 1024px) {
    .project-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
        min-height: 300px;
    }
    
    .projects-carousel {
        padding: 0 70px;
    }
}

@media (max-width: 768px) {
    .project-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
        min-height: 280px;
        padding: 1.5rem;
    }
    
    .projects-carousel {
        padding: 0 60px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .project-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .project-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .projects-carousel {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .project-card {
        min-height: 260px;
        padding: 1.2rem;
    }
    
    .carousel-indicators {
        gap: 0.6rem;
    }
}

/* Centered Icons */
.centered-icon {
    margin-left: auto !important;
    margin-right: auto !important;
}

.service-card.text-center .service-icon,
.tech-card.text-center .tech-icon {
    margin: 0 auto 1.5rem !important;
}

/* Ensure all cards have centered content */
.service-card.text-center,
.tech-card.text-center {
    text-align: center;
}

/* Active navigation state */
.active {
    color: var(--accent) !important;
}

.active::after {
    width: 100% !important;
}

/* Text alignment utilities */
.text-center {
    text-align: center;
}

/* Software Development Specific Styles */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Icon colors for technology stack */
.fa-react { color: #61DAFB; }
.fa-aws { color: #FF9900; }
.fa-node-js { color: #339933; }
.fa-python { color: #3776AB; }
.fa-java { color: #007396; }
.fa-php { color: #777BB4; }
.fa-swift { color: #FA7343; }
.fa-android { color: #3DDC84; }
.fa-apple { color: #000000; }

/* Hardware Solutions Specific Styles */
.project-result {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-light);
}

/* Digital Marketing Specific Styles */
.project-result {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-light);
    text-align: center;
}

/* Ensure platform icons are properly sized */
.tech-icon .fa-2x {
    font-size: 2.5rem;
}

/* Footer Styles */
footer {
    background-color: var(--primary);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.footer-column p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    max-width: 520px;
}

/* Links list */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Contact icons inside list items */
.footer-links i {
    color: var(--accent);
    min-width: 18px;
}

/* Social links */
.social-links {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--accent);
    font-size: 1.1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* Bottom bar */
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    text-align: center;
    opacity: 0.85;
}

.footer-brand {
    color: var(--text);     
    text-decoration: none;    
    font: inherit;           
}

.footer-brand:visited {
    color: var(--text);     
}

.footer-brand:hover {
    color: var(--accent);
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo-link:visited {
    color: inherit;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 9999;
    padding: 0 14px;
}

.cookie-banner__content {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(26, 35, 50, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
}

.cookie-banner__text span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-banner__actions {
        justify-content: center;
        width: 100%;
    }
}
/* ---------- Header layout fixes ---------- */
.header-container {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* push nav + cta to the right */
#mainNav {
  margin-left: auto;
}

/* keep nav items aligned right */
nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

/* CTA visible on desktop */
.header-cta {
  white-space: nowrap;
}

/* ---------- Dropdown (desktop) ---------- */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-chevron {
  font-size: 0.85rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

/* drawer */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 260px;
  padding: 10px;
  border-radius: 14px;

  background: rgba(26, 35, 50, 0.95);
  border: 1px solid rgba(0, 212, 255, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

  display: none;
  z-index: 2000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu a:hover {
  color: var(--text);
  background: rgba(0, 212, 255, 0.12);
}

/* Hover opens dropdown (desktop) */
@media (min-width: 901px) {
  .has-dropdown {
    padding-bottom: 16px; /* creates hover area under the item */
  }

  .dropdown-menu {
    top: 100%;            /* remove gap */
    margin-top: 10px;     /* visual spacing but still within hover area */
  }

  /* Invisible bridge between link and dropdown */
  .has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
  }
}

/* ---------- Mobile menu ---------- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* keeps it at the far right */
  }

  /* hide CTA on small screens (optional) */
  .header-cta {
    display: none;
  }

  /* nav becomes dropdown panel */
  #mainNav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: rgba(10, 14, 23, 0.98);
    border-bottom: 1px solid rgba(0, 212, 255, 0.18);
    backdrop-filter: blur(10px);

    display: none;
    padding: 14px 0;
  }

  /* show when active */
  #mainNav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  nav ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  nav ul li:first-child {
    border-top: none;
  }

  nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 5%;
  }

  /* dropdown drawer inside mobile menu */
  .dropdown-menu {
    position: static;
    display: none;
    margin: 0 5% 12px;
    padding: 8px;
    min-width: unset;
  }

  /* when opened via JS */
  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .has-dropdown.open .nav-chevron {
    transform: rotate(180deg);
  }
}
