/* Basic Styles */
:root {
    --primary-blue: #7951a9; /* Royal Purple */
    --dark-blue: #A98EE0; /* A lighter shade of purple for accents */
    --background-color: #212121; /* New dark background */
    --text-color: #F8F8F8; /* Off-white text for readability on dark background */
    --light-accent: #FFFFFF; /* Pure white for elements that need to pop */
    --card-bg-light: #2A2A2A; /* Slightly lighter dark for cards/elements on dark background */
    --card-paragraph: #AAAAAA; /* Gray for card paragraphs */
    --card-line: #555555; /* Darker grey for card lines */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color); /* Main background color */
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--background-color); /* Same as hero section background */
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Add a subtle box shadow back */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--light-accent); /* Dark logo color */
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--text-color); /* Dark nav links color */
    font-weight: bold;
    transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease, padding 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease; /* Added new transitions */
    display: inline-block; /* Allow padding and sizing */
    padding: 5px 10px; /* Base padding */
    border-radius: 5px; /* Base border-radius */
}

.nav-links a:hover {
    color: var(--light-accent); /* Text color on hover */
    background-color: var(--primary-blue); /* Background color on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow on hover */
}

.nav-links .nav-btn {
    background-color: var(--primary-blue);
    color: var(--light-accent);
    padding: 8px 15px; /* Adjust padding for a button look */
    border-radius: 5px; /* Maintain border radius */
    margin-left: 20px; /* Space from other links */
}

.nav-links .nav-btn:hover {
    background-color: var(--dark-blue); /* Darker purple on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Stronger shadow */
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-accent); /* White for visibility on dark background */
    margin: 5px;
    transition: all 0.3s ease;
}

/* 🌟 Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px; /* space between text and image */
  padding: 100px 20px;
  background: var(--background-color);
  min-height: 80vh;
  flex-wrap: wrap; /* allows stacking on smaller screens */
}

/* --- Hero Content --- */
.hero-content {
  flex: 1 1 500px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px; /* consistent spacing */
  text-align: left;  /* ✅ force left alignment for desktop */
}

.hero-content .intro {
  font-size: 1.2rem;
  color: var(--text-color);
  margin: 0;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
  line-height: 1.2;
  text-align: left; /* ✅ keep inline with other text */
}

.hero-content .tagline {
  font-size: 1.2rem;
  color: var(--text-color);
  margin: 0;
}

.hero-content .description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.btn {
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--dark-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: #fff;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 15px;
}

.social-icons a {
  font-size: 1.5rem;
  color: #A98EE0;
  transition: transform 0.2s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
  color: var(--dark-blue);
}

/* --- Hero Image --- */
.hero-image {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image .image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image .image-wrapper img {
  width: 100%;
  max-width: 500px;
  border-radius: 50%;
  border: 3px solid var(--primary-blue); /* clean circle border */
  box-shadow: 0 8px 24px rgba(0,0,0,0.25); /* soft shadow */
  background: none; /* remove ugly purple glow */
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .hero-image .image-wrapper img {
    max-width: 320px; /* smaller for mobile */
  }
}


/* Services Section */
.services,
.works,
.about,
.contact {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--background-color); /* Dark background for sections */
    color: var(--text-color); /* Ensure text is light */
}

.services h2,
.works h2,
.about h2,
.contact h2 {
    font-size: 2.5rem;
    color: var(--primary-blue); /* Use royal purple for headings */
    margin-bottom: 50px;
}

.service-grid,
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item,
.work-item {
    background-color: var(--card-bg-light); /* Slightly lighter dark for service/work items */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    color: var(--text-color); /* Light text for items */
}

.service-item img,
.work-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.service-item h3,
.work-item h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.work-item p {
    color: var(--text-color);
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap; /* Makes it responsive */
}

.about-image img {
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.about-content {
  display: flex;
  align-items: center;   /* Vertically center image & text */
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: nowrap;     /* Side by side by default */
}

.about-image img {
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.about-text {
  flex: 1; /* Take remaining space */
}

/* Slide-in animations */
.about-content {
  display: flex;
  align-items: flex-start;   /* Align image & text to top */
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;         /* Keep them side by side */
}

.about-image img {
  width: 280px;              /* Fixed smaller width */
  height: auto;              /* Keep proportions */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  flex-shrink: 0;            /* Prevent shrinking */
}

.about-text {
  flex: 1;                   /* Take the rest of the space */
  text-align: left;          /* Align all lines left */
}

.about-text p {
  margin: 0 0 1rem 0;        /* Add spacing but keep lines aligned */
  line-height: 1.6;          /* Better readability */
}

/* Slide-in animations */
.slide-in-left {
  animation: slideInLeft 1s ease forwards;
  opacity: 0;
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
  opacity: 0;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --- About Section Styling --- */
.about-content {
  display: flex;
  align-items: center;      /* Centers image & text */
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;          /* Prevents breaking on small screens */
}

.about-image {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  padding: 6px; /* Space for gradient border */
  background: linear-gradient(135deg, #a855f7, #6366f1); /* Purple gradient border */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img {
  width: 280px;
  height: 320px;
  object-fit: cover;        /* Crop image to fit nicely */
  border-radius: 16px;      /* Inner rounded corners */
  display: block;
}

.about-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.about-text {
  max-width: 650px;
  line-height: 1.6;
}

/* ✅ Responsive for mobile */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;   /* Stack image and text */
    text-align: center;
  }

  .about-image img {
    width: 220px;
    height: 260px;
    margin-bottom: 1rem;
  }

  .about-text {
    text-align: center;
  }
}





/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--card-line); /* Darker border for form elements */
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--card-bg-light); /* Dark background for form elements */
    color: var(--text-color); /* Light text for form elements */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--card-paragraph); /* Grayer placeholder text */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: var(--primary-blue);
    color: var(--light-accent);
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Added transform and box-shadow */
}

.contact-form button:hover {
    background-color: var(--dark-blue); /* Darker purple on hover */
    filter: brightness(1); /* No brightness filter */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Footer */
footer {
    background-color: var(--dark-blue); /* Darker purple for footer background */
    color: var(--light-accent);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-logo {
    font-weight: bold;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
}

.footer-links li {
    margin: 0 10px;
}

.footer-links a {
    color: var(--light-accent); /* White footer links */
    transition: color 0.3s ease, transform 0.2s ease; /* Added transform */
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px); /* Slight lift effect */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse; /* Image on top of content */
        padding: 50px 20px;
        text-align: center;
    }

    .hero-content {
        margin-right: 0;
        margin-bottom: 30px;
        max-width: 100%; /* Ensure content fits within screen */
    }

    .hero-image img {
        max-width: 80%; /* Adjust image size for better fit on small screens */
        margin-bottom: 30px; /* Add space between image and content */
    }

    .hero-buttons {
        flex-direction: row; /* Change to row for side-by-side */
        justify-content: center; /* Center buttons horizontally */
        flex-wrap: wrap; /* Allow wrapping if screen is too small */
        gap: 10px; /* Reduce gap for smaller screens */
    }

    .btn {
        padding: 8px 15px; /* Smaller padding for buttons on mobile */
        font-size: 0.9rem; /* Slightly smaller font size */
    }

    .hero-social-links {
        justify-content: center; /* Center social icons on mobile */
    }

    /* Make burger visible on mobile */
    .burger {
        display: block; /* Make the hamburger icon visible */
    }

    .nav-links {
        flex-direction: column; /* Keep vertical */
        flex-wrap: nowrap; /* Prevent wrapping */
        justify-content: center; /* Center items vertically */
        align-items: center; /* Center horizontally */
        width: 70%; /* Occupy 70% of screen width */
        height: 100vh; /* Full viewport height */
        background-color: var(--background-color); /* Dark background for dropdown */
        position: fixed; /* Use fixed for full screen overlay */
        top: 0;
        right: -70%; /* Start off-screen to the right (match width) */
        left: auto; 
        padding: 20px 0;
        border-top: none; /* Remove border-top */
        transform: translateX(0); /* Reset transform for initial state */
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth slide-in transition, and opacity */
        z-index: 999; /* Ensure it's on top */
        opacity: 0; /* Initially hidden */
        pointer-events: none; /* Make it non-interactive when hidden */
    }

    .nav-links.nav-active {
        display: flex; /* Ensure it's flex when active */
        transform: translateX(-100%); /* Slide into view */
        opacity: 1; /* Make visible */
        pointer-events: all; /* Make interactive */
    }

    .nav-links li {
        margin: 15px 0; /* Adjust margin for vertical layout */
        text-align: center; /* Center text in vertical menu */
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--light-accent); /* White for hamburger menu */
        margin: 5px;
        transition: all 0.3s ease;
    }

    .service-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .hero-image {
        width: 100%; /* Adjust for mobile */
        height: auto; /* Adjust for mobile */
    }

    .tool-icon {
        width: 40px; /* Standardized size for mobile */
        height: 40px; /* Standardized size for mobile */
        background-color: transparent; /* Make background transparent on mobile */
        box-shadow: none; /* Remove shadow on mobile */
        border: none; /* Removed purple border on mobile */
        opacity: 0; /* Ensure hidden for mobile animation */
        animation: float 3s ease-in-out infinite alternate, fadeIn 1s forwards ease-out 2s; /* Apply same animation for mobile */
    }

    .tool-icon img {
        width: 90%; /* Enlarge icon image to show fully on mobile */
        height: 90%; /* Enlarge icon image to show fully on mobile */
    }

    .tool-1 {
        top: 5%;
        left: 8%;
        animation-delay: 2s; /* Starts after hero image (1s animation + 0.8s delay) */
    }

    .tool-2 {
        top: 15%;
        right: 8%;
        animation-delay: 2.2s; /* Staggered after tool-1 */
    }

    .tool-3 {
        bottom: 5%;
        left: 12%;
        animation-delay: 2.4s; /* Staggered after tool-2 */
    }
}

.cursor {
    display: inline-block;
    background-color: var(--primary-blue);
    width: 3px;
    height: 1.1em; /* Adjust to match font height */
    margin-left: 5px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections Animations */
.services,
.works,
.about,
.contact {
    opacity: 0;
    transform: translateY(50px); /* Start off-screen bottom */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transition */
}

.services.animate-visible,
.works.animate-visible,
.about.animate-visible,
.contact.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animations for items within sections */
.service-item,
.work-item {
    opacity: 0;
    transform: translateY(30px); /* Start off-screen bottom */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smooth transition */
}

.service-item.animate-visible,
.work-item.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flip Card Styles */
.card {
  --white: var(--light-accent); /* Using existing --light-accent variable */
  --black: var(--text-color); /* Using existing --text-color for dark elements */
  --paragraph: var(--card-paragraph); /* Using existing --light-gray for paragraphs */
  --line: var(--card-line); /* Using existing --dark-blue for lines */
  --primary: var(--primary-blue); /* Using existing --primary-blue */

  position: relative;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  padding: 1rem;
  width: 19rem;
  background-color: var(--card-bg-light); /* Changed to use var(--card-bg-light) */
  background-image: radial-gradient(
      at 88% 40%,
      var(--card-bg-light) 0px,
      transparent 85%
    ),
    radial-gradient(at 49% 30%, var(--card-bg-light) 0px, transparent 85%),
    radial-gradient(at 14% 26%, var(--card-bg-light) 0px, transparent 85%),
    radial-gradient(at 0% 64%, var(--primary) 0px, transparent 85%),
    radial-gradient(at 41% 94%, var(--dark-blue) 0px, transparent 85%),
    radial-gradient(at 100% 99%, var(--primary-blue) 0px, transparent 85%);

  border-radius: 1rem;
  box-shadow: 0px -16px 24px 0px rgba(255, 255, 255, 0.25) inset; /* Keep original shadow for effect */
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; /* Adjusted transition for subtle effect */
}

.card:hover {
    transform: translateY(-3px); /* Slightly less lift effect on hover */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); /* Softer shadow on hover */
}

.card .card__border {
  overflow: hidden;
  pointer-events: none;

  position: absolute;
  z-index: -10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background-image: linear-gradient(
    0deg,
    var(--light-accent) -50%,
    var(--card-bg-light) 100% /* Changed to existing light-blue */
  );

  border-radius: 1rem;
}

.card .card__border::before {
  content: "";
  pointer-events: none;

  position: fixed;
  z-index: 200;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%), rotate(0deg);
  transform-origin: left;

  width: 200%;
  height: 10rem;
  background-image: linear-gradient(
    0deg,
    hsla(0, 0%, 100%, 0) 0%,
    var(--primary) 40%, /* Changed to existing --primary */
    var(--primary) 60%,
    hsla(0, 0%, 40%, 0) 100%
  );

  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.card .card_title__container .card_title {
  font-size: 1rem;
  color: var(--light-accent);
}

.card .card_title__container .card_paragraph {
  margin-top: 0.25rem;
  width: 65%;
  color: var(--card-paragraph);
}

.card .line {
  width: 100%;
  height: 0.1rem;
  background-color: var(--card-line);

  border: none;
}

.card .card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card .card__list .card__list_item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card .card__list .card__list_item .check {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 1rem;
  height: 1rem;
  background-color: var(--primary); /* Changed to use var(--primary) */

  border-radius: 50%;
}

.card .card__list .card__list_item .check .check_svg {
  width: 0.75rem;
  height: 0.75rem;

  fill: var(--text-color); /* Changed to use var(--text-color) for dark elements */
}

.card .card__list .card__list_item .list_text {
  font-size: 0.75rem;
  color: var(--light-accent);
}

.card .button {
  cursor: pointer;

  padding: 0.5rem;
  width: 100%;
  background-image: linear-gradient(
    0deg,
    var(--primary-blue),
    var(--dark-blue) 100% /* Changed to use existing variables */
  );

  font-size: 0.75rem;
  color: var(--light-accent);

  border: 0;
  border-radius: 9999px;
  box-shadow: inset 0 -2px 25px -4px var(--light-accent);
  transition: background-image 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Add transition for hover effect */
}

.card .button:hover {
    background-image: linear-gradient(
        0deg,
        var(--dark-blue),
        var(--primary-blue) 100%
    ); /* Darker on hover */
    transform: translateY(-2px); /* Slight lift */
    box-shadow: inset 0 -2px 25px -4px var(--light-accent), 0 4px 8px rgba(0, 0, 0, 0.2); /* Add outer shadow */
}

/* Adjust service-grid for new cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); /* Adjusted minmax to new card width */
    gap: 20px; /* Reduced gap between cards */
    justify-content: center; /* Center cards horizontally */
    align-items: flex-start; /* Align cards to the top */
    max-width: 1000px; /* Limit width to contain cards and allow centering */
    margin: 0 auto; /* Center the grid container */
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .card {
        width: 100%; /* Full width on mobile */
        /* No fixed height, let content define it */
}
}

/* Mobile Fixes */
html, body {
  overflow-x: hidden; /* remove horizontal scroll */
}

/* Small screens */
@media (max-width: 768px) {
  /* NAV & BURGER */
  .nav-links {
    position: absolute;
    right: 0;
    top: 60px;
    background: #111;
    flex-direction: column;
    width: 200px;
    height: auto;
    display: none;
    padding: 15px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .burger {
    display: flex;
    flex-direction: column;
    margin-right: 15px; /* keep away from screen edge */
  }

  /* HERO */
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }

  /* SERVICES */
  .service-grid {
    grid-template-columns: 1fr;
  }

  /* ABOUT */
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    text-align: center;
  }

  /* WORKS */
  .work-grid {
    grid-template-columns: 1fr;
  }
}



body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #212121;
  color: #f1f1f1;
}

#skills {
  padding: 60px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fff;
}

p.subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #bbb;
  margin-bottom: 50px;
}

.skills-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* Section titles */
.core h2, .tools h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.5rem;
}

/* Core Competencies */
.skill {
  margin-bottom: 25px;
}

.skill span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #ddd;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #444;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7951a9, #7951a9);
  border-radius: 10px;
  transition: width 1.5s ease;
}

/* Tools */
.tools-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.tool-item {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  color: #f1f1f1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s ease;
}

.tool-item:hover {
  transform: translateY(-4px);
  background: #333;
}

/* CTA Section inside #skills */
.cta {
  background: linear-gradient(135deg, #7951a9, #7951a9);
  padding: 50px 20px;
  margin-top: 60px;
  text-align: center;
  color: #fff;
  border-radius: 12px;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #f1f1f1;
}

.cta-btn {
  background: #fff;
  color: #7951a9;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #f1f1f1;
  transform: scale(1.05);
}

/* CTA card (right column) */
.cta-card {
  background: linear-gradient(135deg, #7951a9, #bba8d1);
  color: #fff;
  border-radius: 18px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  margin-top: 30px; /* ⬅ space from the card above */
}

.cta-card h3 { font-size: 1.6rem; margin: 0 0 12px; }
.cta-card p { margin: 0 0 22px; line-height: 1.6; }
.cta-primary {
  display: inline-block; text-decoration: none; font-weight: 800;
  font-size: 1.6rem; padding: 10px 18px; border-radius: 10px;
  background: rgba(255,255,255,0.2); color: #fff;
  backdrop-filter: blur(2px); transition: transform .2s ease, background .2s ease;
}
.cta-primary:hover { transform: translateY(-2px); background: rgba(255,255,255,0.28); }

/* Responsive */
@media (max-width: 900px) {
  .skills-wrapper { grid-template-columns: 1fr; gap: 36px; }
  .cta-card { margin-top: 10px; }
}

.services-section {
  padding: 80px 20px;
  background: var(--background-color);
  color: var(--text-color);
}

.section-title {
  font-size: 2.4rem;
  text-align: center;
  color: var(--light-accent);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--card-paragraph);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--card-bg-light);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.35);
}

.service-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--light-accent);
}

.service-card p {
  color: var(--card-paragraph);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.service-card ul {
  padding-left: 18px;
  margin: 0;
  list-style: disc;
  color: var(--card-paragraph);
  font-size: 0.9rem;
}

.service-card ul li {
  margin-bottom: 6px;
}

.service-card {
  background: var(--card-bg-light);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border: 1px solid var(--primary-blue); /* subtle border highlight */
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-content {
    align-items: center;
    text-align: center; /* ✅ center only on mobile */
  }

  .hero-content h1 {
    text-align: center;
  }
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 40px; /* ⬅️ add side padding */
  background-color: var(--background-color);
  min-height: 90vh;
  gap: 60px;
  max-width: 1200px; /* ⬅️ keep content within a centered container */
  margin: 0 auto; /* ⬅️ center the hero section itself */
}

/* Hero Content */
.hero-content {
  max-width: 550px;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s forwards ease-out;
  animation-delay: 0.3s;
}

.hero-content .intro {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 3.2rem;
  color: var(--primary-blue);
  margin-bottom: 18px;
  line-height: 1.1;
  text-align: left; /* ensure alignment */
}

.hero-content .tagline {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 24px;
}

.hero-content .description {
  font-size: 1rem;
  color: var(--card-paragraph);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards ease-out;
  animation-delay: 0.8s;
}

.hero-buttons .btn {
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--light-accent);
}

.btn-primary:hover {
  background: var(--dark-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--light-accent);
  transform: translateY(-2px);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeIn 1s forwards ease-out;
  animation-delay: 1.2s;
}

.social-icons a {
  color: var(--text-color);
  font-size: 1.4rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: var(--primary-blue);
  transform: translateY(-3px);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s forwards ease-out;
  animation-delay: 0.5s;
}

.hero-image img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 5px solid var(--primary-blue);
  box-shadow: 0 0 0 10px rgba(120, 81, 169, 0.25);
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
    margin-right: 0;
  }

  .hero-content h1 {
    font-size: 2.4rem;
    text-align: center;
  }

  .hero-image img {
    max-width: 320px;
  }
}


@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

/* Smaller on mobile */
@media (max-width: 768px) {
  .typewriter {
    font-size: 2rem;
  }
}

.scrolling-icons {
  height: 200px; /* visible window */
  overflow: hidden;
  background: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.icon-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scroll-vertical 12s linear infinite;
}

.icon-track i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin: 18px 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon-track i:hover {
  transform: scale(1.2);
  color: var(--secondary-accent, #6a11cb);
}

@keyframes scroll-vertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}


.tools-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--background-color);
  padding: 20px 0;
}

.marquee {
  display: flex;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  gap: 50px;
  animation: scroll-left 25s linear infinite;
}

.marquee-content i {
  font-size: 2rem;
  color: var(--primary-blue);
  transition: transform 0.3s ease, color 0.3s ease;
}

.marquee-content i:hover {
  transform: scale(1.3);
  color: var(--dark-blue);
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


.works-section {
  padding: 80px 20px;
  background: var(--background-color);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--card-paragraph);
  margin-bottom: 40px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}

.work-card {
  background: var(--card-bg-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-content {
  padding: 20px;
  text-align: left;
}

.work-content h3 {
  font-size: 1.4rem;
  color: var(--light-accent);
  margin-bottom: 10px;
}

.work-content p {
  font-size: 1rem;
  color: var(--card-paragraph);
}

/* Hover Effect */
.work-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 20px rgba(121, 81, 169, 0.4);
}

.work-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: var(--light-accent);
  background: var(--primary-blue);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.work-btn:hover {
  background: var(--dark-blue);
  transform: translateY(-3px);
}

.about-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background-color: #6a11cb; /* Button color */
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-btn:hover {
    background-color: #bba8d1;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Mobile fix only */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;   /* stack content and image */
    text-align: center;       /* center text */
  }

  .hero-content {
    max-width: 100%;          /* allow full width */
    padding: 0 1rem;          /* prevent text cut-off on sides */
  }

  .hero-buttons {
    flex-direction: column;   /* stack buttons vertically */
    align-items: center;      /* center them */
    gap: 1rem;
  }

  .hero-image {
    margin-top: 2rem;         /* spacing between text + image */
  }

  .hero-title {
    font-size: 1.5rem;       /* shrink slightly for mobile */
    line-height: 1.2;
    word-wrap: break-word;
  }
  .hero-title span {
    display: block; /* forces "Consultant" to move to a new line */
  }
}

.hero-title {
  font-size: clamp(1.2rem, 5vw, 2.5rem);
  line-height: 1.3;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #fff; /* blinking cursor */
  animation: typing 2s steps(20, end), blink 0.75s step-end infinite;
}

.typewriter.line2 {
  animation-delay: 2.2s; /* starts after line1 finishes */
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

.about {
  opacity: 1 !important;
  transform: none !important;
}

/* Footer Styles */
footer {
  background: #111; /* dark background */
  color: #eee;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  flex: 1 1 250px;
}

.footer-logo a {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.footer-tagline {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.5;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #ddd;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f39c12; /* highlight on hover */
}

.footer-contact p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.footer-contact a {
  color: #f39c12;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.social-links a {
  font-size: 1.2rem;
  margin-right: 12px;
  color: #ddd;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #f39c12;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom a {
  color: #bbb;
  font-weight: 500;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #f39c12;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    margin-top: 15px;
  }
}


/* Prevent horizontal overflow globally */
body {
  overflow-x: hidden;
}

/* Make sure all sections fit within screen */
section {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* Fix images in About section */
.about-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix text width */
.about-text {
  max-width: 100%;
  word-wrap: break-word;
}

/* Services grid mobile fix */
.services-grid {
  display: grid;
  grid-template-columns: 1fr; /* stack on small screens */
  gap: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* two columns on tablet */
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr); /* three columns on desktop */
  }
}


/* Service Section */
.services {
  background: var(--background-color);
  color: var(--text-color);
  padding: 4rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* First container: 2 cards side by side */
.services-top {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Second container: 6 cards in 3x3 grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--card-bg-light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--card-line);
}

.service-card h3 {
  color: var(--dark-blue);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--card-paragraph);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Hover Effect */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
  border-color: var(--primary-blue);
}

/* Responsive: stack on smaller screens */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-top {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Container for the 2 top cards */
.services-top {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Card Styles */
.card {
  position: relative;
  flex: 1 1 45%; /* Make them equal width & responsive */
  min-width: 300px;
  max-width: 500px;
  background: linear-gradient(to bottom, var(--dark-blue), var(--primary-blue));
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin: 12px;
  overflow: hidden;
  color: var(--text-color);
  transition: all 0.3s ease-in-out;
}

/* Title */
.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light-accent);
}

/* Description */
.small-desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--card-paragraph);
}

/* Hover Effects */
.card:hover:before {
  transform: scale(28);
}

.card:hover .small-desc {
  color: rgba(255, 255, 255, 0.9);
}

.card:hover .card-title {
  color: #fff;
}

/* Decorative corner arrow */
.go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 2.2em;
  height: 2.2em;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 0 4px 0 32px;
}

.go-arrow {
  margin-top: -4px;
  margin-right: -4px;
  color: #fff;
  font-family: courier, sans-serif;
  font-size: 1.2em;
}

/* Card background effect */
.card:before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(1);
  transition: transform 0.35s ease-out;
}

.status.completed {
  color: green;
  font-weight: bold;
}

.status.ongoing {
  color: orange;   
  font-weight: bold;
}