/* Base styles */
:root {
    --primary-color: #0ef;
    --secondary-color: #1f242d;
    --bg-color: #323946;
    --text-color: #fff;
    --dark-color: #1f242d;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
  }
  
  html {
    font-size: 62.5%;
    overflow-x: hidden;
  }
  
  body {
    background: var(--dark-color);
    color: var(--text-color);
  }
  
  section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
  }
  
  /* Header Styles */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  }
  
  .header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
  }
  
  .logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
  }
  
  .navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
  }
  
  .navbar a:hover,
  .navbar a.active {
    color: var(--primary-color);
  }
  
  #menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
  }
  
  /* Home Section */
  /* Home Section - Modern Design */
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 0 9%;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--bg-color) 100%);
    position: relative;
    overflow: hidden;
  }
  
  .home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 238, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
  }
  
  .home-content {
    max-width: 600px;
    z-index: 2;
  }
  
  .home-content h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
  }
  
  .home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
  }
  
  .home-content .multiple-text {
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    display: inline-block;
  }
  
  .home-content p {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
  }
  
  .social-media {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
  }
  
  .social-media a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
  }
  
  .social-media a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.3);
  }
  
  .btn {
    display: inline-block;
    padding: 1.5rem 3.5rem;
    background: var(--primary-color);
    border-radius: 50px;
    font-size: 1.8rem;
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--text-color);
    z-index: -1;
    transition: width 0.3s ease;
  }
  
  .btn:hover::before {
    width: 100%;
  }
  
  .btn:hover {
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 238, 255, 0.4);
    transform: translateY(-3px);
  }
  
  .home-img {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInRight 1s ease 0.9s forwards;
  }
  
  .home-img img {
    width: 35rem;
    height: 35rem;
    object-fit: cover;
    border-radius: 50%;
    border: 15px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px var(--primary-color);
    transition: all 0.3s ease;
  }
  
  .home-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    z-index: -1;
  }
  
  @keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Floating Elements */
  .floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
  }
  
  .floating-element {
    position: absolute;
    background: rgba(0, 238, 255, 0.05);
    border-radius: 50%;
    animation: float 15s infinite linear;
  }
  
  .floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
  }
  
  .floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
  }
  
  .floating-element:nth-child(3) {
    width: 50px;
    height: 50px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-50px) rotate(180deg);
    }
    100% {
      transform: translateY(0) rotate(360deg);
    }
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
    .home-img img {
      width: 30rem;
      height: 30rem;
    }
  }
  
  @media (max-width: 991px) {
    .home {
      flex-direction: column-reverse;
      text-align: center;
      padding-top: 15rem;
      padding-bottom: 5rem;
    }
  
    .home-content {
      max-width: 100%;
    }
  
    .social-media {
      justify-content: center;
    }
  
    .home-img {
      margin-bottom: 5rem;
    }
  
    .home-img::before {
      display: none;
    }
  }
  
  @media (max-width: 768px) {
    .home-content h1 {
      font-size: 4.5rem;
    }
  
    .home-content .multiple-text {
      font-size: 2.5rem;
    }
  
    .home-img img {
      width: 25rem;
      height: 25rem;
    }
  }
  
  @media (max-width: 450px) {
    .home-content h1 {
      font-size: 3.5rem;
    }
  
    .home-content h3 {
      font-size: 2.2rem;
    }
  
    .home-content p {
      font-size: 1.6rem;
    }
  
    .home-img img {
      width: 20rem;
      height: 20rem;
    }
  }
  /* About Section */
  .about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem; /* Reduced gap */
    background: var(--bg-color);
  }
  
  .about-img img {
    width: 22vw; /* Reduced from 35vw */
    height: 22vw;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 2rem var(--primary-color);
    animation: pulse 2s infinite alternate;
    border: 0.5rem solid var(--primary-color);
  }
  
  .heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
    position: relative;
  }
  
  .heading::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 10rem;
    height: 0.3rem;
    background: var(--primary-color);
  }
  
  .about-content h2 {
    text-align: left;
    line-height: 1.2;
  }
  
  .about-content h3 {
    font-size: 2.6rem;
  }
  
  .about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    line-height: 1.6;
  }
  
  .skills {
    margin-top: 2rem;
  }
  
  .skills h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .skills ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .skills li {
    font-size: 1.6rem;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: transform 0.3s;
  }
  
  .skills li:hover {
    transform: translateY(-3px);
  }
  
  /* Services Section */
  .services h2 {
    margin-bottom: 5rem;
  }
  
  .services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .services-box {
    flex: 1 1 30rem;
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--dark-color);
    transition: .5s ease;
    position: relative;
    overflow: hidden;
  }
  
  .services-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
  }
  
  .services-box:hover::before {
    transform: translateX(100%);
  }
  
  .services-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 238, 255, 0.2);
  }
  
  .services-box i {
    font-size: 7rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
  }
  
  .services-box h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
  }
  
  .services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
    line-height: 1.6;
  }
  
  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .skill-tags span {
    background: var(--dark-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s;
  }
  
  .skill-tags span:hover {
    background: var(--primary-color);
    color: var(--dark-color);
  }
  
  /* Portfolio Section */
 /* Portfolio Section - Modern Card Layout */
.portfolio {
    background: var(--bg-color);
    padding: 10rem 9% 2rem;
  }
  
  .portfolio h2 {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
    position: relative;
  }
  
  .portfolio h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
  }
  
  .portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
  }
  
  .portfolio-card {
    background: var(--dark-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
  }
  
  .portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 238, 255, 0.3);
  }
  
  .card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
  }
  
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .portfolio-card:hover .card-image img {
    transform: scale(1.1);
  }
  
  .card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .card-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .card-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #ddd;
  }
  
  .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
  }
  
  .tech-tag {
    background: rgba(0, 238, 255, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
  }
  
  .card-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
  }
  
  .card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    background: var(--primary-color);
    color: var(--dark-color);
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s;
  }
  
  .card-btn:hover {
    background: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 238, 255, 0.4);
  }
  
  .card-btn i {
    margin-left: 0.5rem;
    font-size: 1.2rem;
  }
  
  .demo-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
  }
  
  .demo-btn:hover {
    background: var(--primary-color);
    color: var(--dark-color);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .portfolio-container {
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }
    
    .card-image {
      height: 180px;
    }
  }
  
  @media (max-width: 480px) {
    .portfolio h2 {
      font-size: 3.5rem;
    }
    
    .card-content h3 {
      font-size: 2rem;
    }
    
    .card-btn {
      padding: 0.6rem 1.4rem;
      font-size: 1.3rem;
    }
  }
  /* Timeline Section */
  .timeline-section {
    background: var(--bg-color);
    padding: 10rem 9% 2rem;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--text-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--bg-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--bg-color);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--bg-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--bg-color) transparent transparent;
}

.right::after {
    left: -16px;
}

.content {
    padding: 20px 30px;
    background-color: var(--bg-color);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content p {
    font-size: 1.6rem;
    line-height: 1.6;
}
  
  /* Contact Section */
  .contact h2 {
    margin-bottom: 3rem;
  }
  
  .contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .contact form .input-box input,
  .contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    transition: all 0.3s;
    border: 1px solid transparent;
  }
  
  .contact form .input-box input:focus,
  .contact form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 1rem var(--primary-color);
  }
  
  .contact form .input-box input {
    width: 49%;
  }
  
  .contact form textarea {
    resize: none;
    height: 20rem;
  }
  
  .contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
  }
  
  /* Form submission message */
  .form-message {
    font-size: 1.6rem;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    display: none;
    animation: fadeIn 0.5s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .success {
    background-color: #4CAF50;
    color: white;
    display: block;
  }
  
  .error {
    background-color: #f44336;
    color: white;
    display: block;
  }
  
  /* Footer */
  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--bg-color);
  }
  
  .footer-text p {
    font-size: 1.6rem;
  }
  
  .footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--primary-color);
    border-radius: .8rem;
    transition: .5s ease;
  }
  
  .footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--primary-color);
    transform: translateY(-5px);
  }
  
  .footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
    html {
      font-size: 55%;
    }
  }
  
  @media (max-width: 991px) {
    .header {
      padding: 2rem 3%;
    }
  
    section {
      padding: 10rem 3% 2rem;
    }
  
    .services {
      padding-bottom: 7rem;
    }
  
    .portfolio {
      padding-bottom: 7rem;
    }
  
    .contact {
      min-height: auto;
    }
  
    .footer {
      padding: 2rem 3%;
    }
  }
  
  @media (max-width: 768px) {
    #menu-icon {
      display: block;
    }
  
    .navbar {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 3%;
      background: var(--dark-color);
      border-top: .1rem solid rgba(0, 0, 0, .2);
      box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
      display: none;
    }
  
    .navbar.active {
      display: block;
    }
  
    .navbar a {
      display: block;
      font-size: 2rem;
      margin: 3rem 0;
    }
  
    .home {
      flex-direction: column;
      gap: 3rem;
    }
  
    .home-content h3 {
      font-size: 2.6rem;
    }
  
    .home-content h1 {
      font-size: 5rem;
    }
  
    .home-img img {
      width: 50vw;
      height: 50vw;
      margin-top: 4rem;
    }
  
    .about {
      flex-direction: column-reverse;
      gap: 3rem;
    }
  
    .about-img img {
      width: 50vw;
      height: 50vw;
      margin-top: 4rem;
    }
  
    .services h2 {
      margin-bottom: 3rem;
    }
  
    .portfolio h2 {
      margin-bottom: 3rem;
    }
  
    .portfolio-container {
      grid-template-columns: repeat(2, 1fr);
    }
  
    /* Timeline responsive */
    .timeline::after {
      left: 31px;
    }
  
    .container {
      width: 100%;
      padding-left: 70px;
      padding-right: 25px;
    }
  
    .container::before {
      left: 60px;
      border: medium solid var(--bg-color);
      border-width: 10px 10px 10px 0;
      border-color: transparent var(--bg-color) transparent transparent;
    }
  
    .left::after,
    .right::after {
      left: 15px;
    }
  
    .right {
      left: 0%;
    }
  }
  
  @media (max-width: 617px) {
    .portfolio-container {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 450px) {
    html {
      font-size: 50%;
    }
  
    .contact form .input-box input {
      width: 100%;
    }
  
    .home-img img,
    .about-img img {
      width: 60vw;
      height: 60vw;
    }
  }
  
  @media (max-width: 365px) {
    .home-img img,
    .about-img img {
      width: 70vw;
      height: 70vw;
    }
  
    .footer {
      flex-direction: column-reverse;
      gap: 2rem;
    }
  
    .footer p {
      text-align: center;
      margin-top: 2rem;
    }
  }