/* General Reset */
html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background: #0d0d0d;
    color: #fff;
    font-family: Arial, sans-serif;
    max-width: 1300px;  /* Sets the max-width to 1300px */
    margin: 0 auto;     /* Centers the body content */
    padding: 0 10px;    /* Optional: Adds some padding on the sides */
    overflow-x: hidden;
}

.language-btn {
    all: unset; /* Reset default button styling */
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    padding: 5px 10px;
    
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
  
    background-color: #00bcd4; /* Green color */
    color: white;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.language-btn:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
/* Navbar - Position at top */
.navbar {
    
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #1a1a1a;
    border-radius: 20px;
    z-index: 10;  /* Ensures the navbar stays on top of other elements */
    max-width: 1300px; /* Set max-width to match body */
    width: 100%; /* Ensures it fills the available width within the max-width */
    margin: 0 auto; /* Centers the navbar */
    box-shadow: 0 8px 16px rgba(0, 188, 212, 0.2);
    opacity: 0;
    animation: slideDown 1s ease-out forwards;
}
@keyframes slideDown {
    from {
      top: -100px;
      opacity: 0;
    }
    to {
      top: 0;
      opacity: 1;
    }
  }
  
/* Logo */
.logo {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}

/* Navbar Links */
.nav-links {
    list-style-type: none; 
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #bfbfbf;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links .active {
    color: #00bcd4;
}

/* Main Block Styling */
.main {
    margin-top: 80px; /* Adds space below the fixed navbar */
    display: flex;
    justify-content: space-between; /* Align items horizontally */
    gap: 30px; /* Add space between the sections */
    width: 100%;
    max-width: 1300px; /* Centers the content */
    margin: 0 auto;
}

/* Hero Section */
.hero-skills-container {
    display: flex;                /* Aligns the hero and skills sections in a row */
    gap: 30px;                     /* Space between the sections */
    margin-top: 100px;             /* Space below the fixed navbar */
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    background-color: #1a1a1a;
    border-radius: 20px;
    width: 100%; /* Takes up 60% of the container */
    box-shadow: 0 8px 16px rgba(0, 188, 212, 0.2);
    max-height: 500px;
    transform: translateX(-100%);
  
  
  /* Apply the slide-in animation */
  animation: slideInFromLeft 1.5s ease-out forwards;
}
@keyframes slideInFromLeft {
    from {
      transform: translateX(-100%);
     
    }
    to {
      transform: translateX(0);
     
    }
  }
  @keyframes slideInFromRight {
    from {
      transform: translateX(100%);
  
    }
    to {
      transform: translateX(0);
    
    }
  }
.hero-content {
    max-width: 500px;
}

.hero-content p {
    font-size: 1.1em;
    color: #bfbfbf;
}

.hero-content h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin: 10px 0;
}

.hero-content h3 {
    font-size: 1.5em;
    margin: 10px 0;
}

.highlight {
    color: #00bcd4;
}

.description {
    font-size: 1em;
    color: #bfbfbf;
    margin: 20px 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icons a {
    color: #bfbfbf;
    font-size: 1.2em;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00bcd4;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00bcd4;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
    cursor: pointer;
  
    background-image: linear-gradient(
      0deg,
      rgba(94, 58, 238, 1) 0%,
      #00bcd4 100%
    );

    color: var(--white);
    box-shadow: inset 0 -2px 25px -4px var(--white);
}

.btn:hover {
    background-color: #019cab;
}

/* Hero Image Styling */
.hero-image {
    position: relative;
    width: 250px;
    height: 250px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

/* Skills Section Styling */
.skills-section {
    padding: 40px;
    background-color: #1a1a1a;
    border-radius: 20px;
    width: 35%; /* Adjusted for more space */
    box-shadow: 0 8px 16px rgba(0, 188, 212, 0.2);
    text-align: center;
    transform: translateX(-100%);
   
    /* Apply the slide-in animation */
    animation: slideInFromRight 2s ease-out forwards;
    
}
.services{
    max-width: 1300px; /* Sets the width to 1300px */
    background-color: #1a1a1a00; /* Same grey background as skills */
    border-radius: 20px; /* Rounded corners */
    text-align: center;
    display: flex;
    justify-content: center;
    
 padding-bottom: 30px;

}
.skills-section h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.skill-item {
    font-size: 1em;
    background-color: #333;
    color: #fff;
    padding: 15px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 188, 212, 0.1);
    width: 100px; /* Adjusted width to fit better */
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    background-color: #00bcd4;
}
/* My Work Section */

/* Work Gallery */
/* My Work Section */
.my-work-section {
   max-width: 1300px; /* Sets the width to 1300px */
    margin: 30px auto; /* Reduced top margin to 20px for a smaller gap */
    padding: 50px;
    background-color: #1a1a1a; /* Same grey background as skills */
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 8px 16px rgba(0, 188, 212, 0.2); /* Blue shadow */
    text-align: center;
    transform: translateX(-100%);
  
  
    /* Apply the slide-in animation */
    animation: slideInFromLeft 1s ease-out forwards;
}
.services h2{
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
}
.my-work-section h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Work Gallery */
.work-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-top: 20px;
}

.work-item {
    width: calc(33.33% - 20px); /* 3 items in one line, with some space between */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Important for positioning the title */
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Title styling */
.work-title {
    position: absolute;
    top: 10%;
    
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
}

/* Interaction effects */
.work-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.work-item:hover .work-title {
    opacity: 1; /* Show title on hover */
}

.work-item img:hover {
    transform: scale(1.1);
}

/* Flex container for Contact and Experience sections */

    .contact-timeline-container {
        display: flex;
        gap: 30px; /* Space between Contact and Experience sections */
        padding-top: 30px;
        max-width: 1300px;
        margin: 0 auto;
    }
    
    /* Contact and Experience sections styling */
    .contact {
        flex: 0.5; /* Set the Contact section to take up less space */
        background-color: #1a1a1a;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 188, 212, 0.2);
        transform: translateX(-100%);
  
  
        /* Apply the slide-in animation */
        animation: slideInFromLeft 2s ease-out forwards;
    }
    
    .experience {
        flex: 1.5; /* Set the Experience section to take up more space */
        background-color: #1a1a1a;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 188, 212, 0.2);
        transform: translateX(100%);
  
  
        /* Apply the slide-in animation */
        animation: slideInFromRight 1s ease-out forwards;
    }
    
    /* Contact Block */
    .contact-block {
        text-align: center;
    }
    
    .contact-icons {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .contact-icon {
        color: #fff;
        text-decoration: none;
        font-size: 1.2em;
        transition: color 0.3s;
    }
    
    .contact-icon:hover {
        color: #00bcd4;
    }
    
    /* Timeline Block */
    .timeline-block {
        position: relative;
        padding-left: 40px; /* Space for the line and dots */
    }
    
    .timeline-block::before {
        content: "";
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #00bcd4; /* Line color */
    }
    
    .timeline-item {
        position: relative;
        margin-bottom: 20px;
        padding-left: 20px;
    }
    
    .timeline-item::before {
        content: "";
        position: absolute;
        left: -24px;
        top: 8px;
        width: 10px;
        height: 10px;
        background-color: #00bcd4; /* Dot color */
        border-radius: 50%;
    }
    
    .timeline-item h3 {
        margin: 0;
        color: #fff;
    }
    
    .timeline-item p {
        margin: 5px 0;
        color: #ccc;
    }
    .timeline{
        padding-top: 20px;
    }
    .three-js-sections {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap; /* Allow wrapping on smaller screens */
        width: 100%; /* Ensure the parent takes full width */
        margin-top: 30px;
    }
    
    .three-js-section {
        background-color: #1a1a1a;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 8px 16px rgba(0, 188, 212, 0.2);
        text-align: center;
        flex: 1; /* Ensure both sections grow equally */
        min-width: 48%; /* Prevent the sections from getting too narrow */
        max-width: 48%; /* Ensure sections do not exceed 48% of the width */
    }
    
    #threejs-container1, #threejs-container2 {
        position: relative;
        width: 100%; /* Full width of the parent container */
        height: 400px; /* Set a fixed height for the 3D scene */
        margin-top: 20px;
        overflow: hidden;
    }
    canvas {
        
        width: 100%;
        height: 100%;
        display: block; /* Remove inline spacing */
    }
    .hamburger {
        display: none;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    
    .hamburger span {
        width: 25px;
        height: 4px;
        background-color: #fff;
    }
    @media (max-width: 1200px) {
        /* Adjust body padding */
        .hamburger {
            display: flex;
        }
    
        .nav-links {
            position: absolute;
            top: 60px;
            right: 0;
            background-color: #1a1a1a;
            width: 100%;
            padding: 10px 0;
            flex-direction: column;
            gap: 15px;
            display: none; /* Hidden by default */
            text-align: center;
        }
    
        .nav-links.active {
            display: flex; /* Show when active */
        }
    
        .nav-links li {
            width: 100%;
            text-align: center;
        }
        .hero-skills-container {
            flex-direction: column; /* Stack hero and skills sections vertically */
        }
        .contact-timeline-container {
            flex-direction: column; /* Stack hero and skills sections vertically */
        }
        .hero, .skills-section {
            width: 100%; /* Make both sections take full width */
            max-height: none; /* Adjust as needed */
        }
        
        .hero {
            margin-bottom: 0px; /* Optional: space between hero and skills */
        }
        .hero-image {
            padding-left: 10px;
            position: relative;
            width: 20vw;
            max-width: 250px; /* Maximum size limit */
            min-width: 180px; /* Minimum size limit to prevent excessive shrinking *
            min-width: 250px; /* Prevents the image from shrinking */
            flex-shrink: 0; /* Keeps the image size fixed */
        }
        
        .hero-image img {
            width: 100%;
            height: 100%;
            border-radius: 20px;
            object-fit: cover;
        } 
       
        .three-js-section {
            width: 100%; /* Make each section take the full width */
            max-width: 100%; /* Remove max-width limitation */
            margin-bottom: 20px; /* Add spacing between the sections */
        }

    }
    @media (max-width: 756px) {

       
        
        /* Hero Section */
        .hero {
            display: flex;
            flex-direction: column; /* Stacks items vertically */
            align-items: center; /* Center items horizontally */
            justify-content: space-between; /* Evenly spaces items vertically */
            padding: 50px;
            background-color: #1a1a1a;
            border-radius: 20px;
            width: 100%; /* Adjust the width as needed */
            box-shadow: 0 8px 16px rgba(0, 188, 212, 0.2);
            max-height: 700px;
            transform: translateX(-100%);
          
            /* Apply the slide-in animation */
            animation: slideInFromLeft 1.5s ease-out forwards;
        }
        




    .work-item {
        width: 80%; /* Full width for each item in one column */
        margin: 0 auto; /* Center the item horizontally */
    }
}
#smokeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Make sure the canvas is behind other elements */
  }
  /* From Uiverse.io by MuhammadHasann */ 
.card {
    --white: hsl(0, 0%, 100%);
    --black: hsl(240, 15%, 9%);
    --paragraph: hsl(0, 0%, 83%);
    --line: hsl(240, 9%, 17%);
    --primary: #00bcd4;;
  
    position: relative;
  
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  
    padding: 1rem;
   width: 1300px;
    background-color: #1a1a1a;
    background-image: radial-gradient(
        at 88% 40%,
        hsla(240, 15%, 9%, 1) 0px,
        transparent 85%
      ),
      radial-gradient(at 49% 30%, hsla(240, 15%, 9%, 1) 0px, transparent 85%),
      radial-gradient(at 14% 26%, hsla(240, 15%, 9%, 1) 0px, transparent 85%),
      radial-gradient(at 0% 64%,#00bcd4 0px, transparent 85%),
      radial-gradient(at 41% 94%, #00bcd4 0px, transparent 85%),
      radial-gradient(at 100% 99%, #00bcd4 0px, transparent 85%);
  
    border-radius: 1rem;
    box-shadow: 0px -16px 24px 0px rgba(255, 255, 255, 0.25) inset;
  }
  
  .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,
      hsl(0, 0%, 100%) -50%,
      hsl(0, 0%, 40%) 100%
    );
  
    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%,
      hsl(277, 95%, 60%) 40%,
      hsl(277, 95%, 60%) 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: 2.5em;
    font-weight: bold;
    color: var(--white);
  }
  
  .card .card_title__container .card_paragraph {
    margin-top: 0.25rem;
    width: 65%;
  
    font-size: 0.5rem;
    color: var(--paragraph);
  }
  
  .card .line {
    width: 100%;
    height: 0.1rem;
    background-color: var(--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);
  
    border-radius: 50%;
  }
  
  .card .card__list .card__list_item .check .check_svg {
    width: 0.75rem;
    height: 0.75rem;
  
    fill: var(--black);
  }
  
  .card .card__list .card__list_item .list_text {
    font-size: 1rem;
    color: var(--white);
  }
  
  .card .button {
    cursor: pointer;
  
    padding: 0.5rem;
    width: 100px;
    background-image: linear-gradient(
      0deg,
      rgba(94, 58, 238, 1) 0%,
      #00bcd4 100%
    );
  
    font-size: 1rem;
    color: var(--white);
  
    border: 0;
    border-radius: 5px;
    box-shadow: inset 0 -2px 25px -4px var(--white);
  }
  .button {
    text-decoration: none; /* Removes underline */
    /* Add other styling properties if needed */
}