/* Styles */
:root {
    --background: #0f172a;
    --foreground: #f8fafc;
    --card: #1e293b;
    --card-foreground: #f8fafc;
    --primary: #3b82f6;
    --primary-foreground: #f8fafc;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #3b82f6;
    --accent-foreground: #f8fafc;
    --destructive: #f43f5e;
    --destructive-foreground: #f8fafc;
    --border: #1e293b;
    --input: #1e293b;
    --ring: #2563eb;
    --radius: 0.75rem;

    /*  */
    --background: #0f172a;
    --foreground: #f8fafc;
    --card: #1e293b;
    --card-foreground: #f8fafc;
    --primary: #3b82f6;
    --primary-foreground: #f8fafc;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #3b82f6;
    --accent-foreground: #f8fafc;
    --destructive: #f43f5e;
    --destructive-foreground: #f8fafc;
    --border: #1e293b;
    --input: #1e293b;
    --ring: #2563eb;
    --radius: 0.75rem;
  }
/* update  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: var(--border);
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* to help me apply default and the same style */

  
  img {
    max-width: 100%;
    height: auto;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul {
    list-style: none;
  }
  
  /* Digital Grid Background */
  .digital-grid {
    position: relative;
  }
  
  .digital-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
      linear-gradient(rgba(0, 132, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 132, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    /* background-repeat: no-repeat; */
    z-index: -1;
  }
  
  /* Mouse Follower */
  .mouse-follower {
    pointer-events: none;
    position: fixed;
    z-index: 9999;
    width: 30px;
    height: 30px;
    background-color: rgb(4, 41, 226);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease-out, height 0.2s ease-out, opacity 0.2s ease-out;
   
    filter: blur(1px);
    
  }
  

  /*  */
   .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }
  
  .section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
  }


/* end update */

.port-cards{
    /* height: 700px; */
}  

.port-card{
    position: sticky;
    margin-left: auto;
    margin-right: auto; 
    top: 135px;

    margin-top: 120px;
    /* width: 100%; */
    width: 84%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background-color: blanchedalmond;
}

.port-img{
    transition: all 0.3s ease;

}

.port-card:hover{
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}
.port-card:hover .port-desc{
    background-color: rgb(50, 53, 53);
}
.port-card:hover .port-img{
    transform: scale(1.1);
    transition: all 0.3s ease;
}
.port-card:hover .view{
    background-color: var(--primary);
}
.port-card:nth-child(2){
    top: 155px;
    width: 86%;
}
.port-card:nth-child(3){
    top: 175px;
    width: 88%;

}
.port-card:nth-child(4){
    width: 90%;
    top: 195px;
}
.port-card:nth-child(5){
    width: 92%;
    top: 215px;
    /* margin-bottom: 290px; */
}
.port-card:nth-child(6){
    width: 94%;
    top: 235px;
    
}
.port-card:nth-child(7){
    width: 96%;
    top: 255px;
    
}
.port-card:nth-child(8){
    width: 98%;
    top: 275px;
    
}
.port-card:nth-child(9){
    width: 99%;
    top: 295px;
    
}


.port-img{
    overflow: hidden;
    background-color: rgb(179, 223, 223);
    width: 50%;
}
.port-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.port-desc{
    position: relative;
    width: 50%;
    padding: 30px;
    background-color: rgb(50, 53, 53);
}



.tech-tag{
    padding: 8px 14px; 
    margin-right: 5px;
    margin-top: 10px;
    display: inline-flex;
    color: aliceblue;
    background-color: rgba(71, 72, 73, 0.347);
    border-radius: 8px;
}
.view {
    position: absolute;
    display: block;
    border-radius: 10px;
    bottom:0 ;
    bottom: 30px;
    text-align: center;
    margin-top: 10px;
    background-color: var(--primary);
    color: white;
    padding: 15px 30px;
}

@media screen and (max-width:800px) {
    .port-card {
        flex-direction: column;
        height: auto;
        width: 98%;

        top: 35px;

    }
    .port-desc{
        width: 100%;
        padding: 15px;
    }

    .port-desc p{
    margin-bottom: 0px;
}

    .port-card:nth-child(2){
    top: 55px;
    width: 98%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.027);

}
.port-card:nth-child(3){
    top: 75px;
    width: 98%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.027);

}
.port-card:nth-child(4){
    width: 98%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.027);
    top: 95px;
}
.port-card:nth-child(5){
    width: 98%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.027);
    top: 115px;
    /* margin-bottom: 290px; */
}
.port-card:nth-child(6){
    width: 98%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.027);
    top: 135px;
    
}
.port-card:nth-child(7){
    width: 98%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.027);
    top: 155px;
    
}
.port-card:nth-child(8){
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.027);
    width: 98%;
    top: 175px;
    
}
.port-card:nth-child(9){
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.027);
    width: 98%;
    top: 195px;
    
}


    .port-img{
        width: 100%;
        height: 200px;
    }
    .tech-tag{
        margin-top: 10px;
    }

    .section-title{
      font-size: 26px;
      margin-bottom: 5px;
    }
    .view {
        position: static;
    
    }
}