*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
:root{
    --color: #667dff;
    --text-primary:#ffffff;
    --text-secondary:a0a0a0;
    --bg-primary:#0a0a0a;
    --bg-secondary:#1a1a1a;
    --accent:#00aeac;
    --border-color:rgba(255,255,255,0.1);
    --shadow:rgba(0,0,0,0.3);
}
[data-theme="light"]{
    --text-primary:#1a1a1a;
    --text-secondary:#666666;
    --bg-primary:#ffffff;
    --bg-secondary:#f8f9fa;
    --border-color:rgba(0,0,0,0.1);
    --shadow:rgba(0,0,0,0.1);
}
body{
    font-family: "Inter",sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease,color 0.3s ease;
}
/* loader */
.loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    flex-direction: column;
}
.loader-text{
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0;
}
.loader-bar{
    width: 300px;
    height: 4px;
    background-color: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}
.loader-progress{
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,var(--color),var(--accent));
}

/* Custom Cursor */
.cursor{
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius:50% ;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}
.cursor-follower{
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.2s ease;
}

/* Navigation */
nav{
    position: fixed;
    top: 0;
    width: 100vw;
    padding: 1.5rem 2rem;
    background-color:rgba(10,10,10,0.5) ;
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: background-color 0.3s ease;
    transform: translateY(-100%);
}
[data-theme="light"] nav {
    background-color: rgb(255, 255, 255);
}
.nav-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: 1400px;
}
.logo{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}
.nav-links{
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: transform 0.3s ease;
}
.nav-links a{
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:hover{
    color: var(--accent);
}
.nav-links a::after{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition:width 0.3s ease;
}
.nav-links a:hover::after{
    width: 100%;
}
.theme-toggle{
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid var(--border-color);
    margin-left: 1rem;
    padding-left: 0.5rem;
}
.theme-toggle::before{
    content: " ";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background-color: var(--accent);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-sizing: 0 0 10px rgba(0,255,229,0.7);
}
[data-theme="light"] .theme-toggle::before{
    transform: translate(28px);
    background: var(--color);
    box-shadow: 0 0 10px rgba(25,117,255,0.7);
}
.theme-toggle-icon{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: opacity 0.3s ease;
}
.theme-toggle-icon.sun{
    right: 6px;
    opacity: 0;
}
.theme-toggle-icon.moon{
    left: 5px;
    opacity: 1;
}
[data-theme="light"].theme-toggle-icon.moon{
    opacity: 0;
}

/* mobile menu */
.menu-toggle{
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span{
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transform-origin: center;
}
.menu-toggle.active span:nth-child(1){
    transform: rotate(45deg) translate(6px,6px);
}
.menu-toggle.active span:nth-child(2){
    opacity: 0;
}
.menu-toggle.active span:nth-child(3){
    transform: rotate(-45deg) translate(6px,-6px);
}

.mobile-menu{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active{
    transform: translateX(0%);
}
.mobile-menu a{
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    margin: 1rem 0;
    font-family: 'playfair Display',serif;
    transform: translateY(20px);
    transition: all 0.3s ease;
    opacity: 0;
}
.mobile-menu.active a{
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a:nth-child(1){
    transition-delay:0.1s ;
}
.mobile-menu a:nth-child(2){
    transition-delay:0.2s ;
}
.mobile-menu a:nth-child(3){
    transition-delay:0.3s ;
}
.mobile-menu a:nth-child(4){
    transition-delay:0.4s ;
}
.mobile-menu a:nth-child(5){
    transition-delay:0.5s ;
}
/* hero section */
.hero{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50% rgba(0,102,255,0.1)0%, transparent 50%);
}
.hero-img{
    height: 60%;
    margin-left: 5%;
    margin-right: 5%;
}
.hero-content{
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}
.hero-title{
    font-size:clamp(3rem,8vw,8rem) ;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 1rem;
    font-family: 'Playfair Display',serif;
    filter: blur(10px);
    transform: translateY(5rem);
    opacity: 0;
}
.hero-subtitle{
    font-size: clamp(1.2rem,3vw,2rem);
    color:#666666;
    margin-bottom: 2rem;
    filter: blur(10px);
    transform: translateY(5rem);
    opacity: 0;
}
.hero-description{
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 3rem;
    filter: blur(10px);
    transform: translateY(5rem);
    opacity: 0;
}
/* for view my work this time not use in my portfolio */

/* .cta-button{
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg,var(--color));
    color: var(--accent);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease;
    filter: blur(10px);
    transform: translateY(5rem);
    opacity: 0;
}
.cta-button:hover{
    transform: translateY(-3px);
} */
 .hero-3d-model{
    position: absolute;
    width: 130%;
    z-index: -1;
}
@media (max-width:1080px){
    .hero-img{
        height: 38%;
    }
}
@media (max-width:768px){
    .nav-links{
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-content{
        padding: 0 1rem;
    }
    .nav-container{
        pad: 0 1rem;
    }
    .cursor, .cursor-follower {
        display: none;
    }
    .hero{
        display: flex;
        flex-direction: column-reverse;
    }
    .hero-img{
        height: 30%;
        margin: 0;
    }
}
/* About section */
.about-section{
    width: 100%;
    margin-top: -8rem;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    padding: 2rem 1rem;
}
.about-title{
    margin-top:5rem;
    font-size:5rem;
    background-image: linear-gradient(to right, #3f5efb, #15d21e);;
    color: transparent;
    background-clip: text;
    text-align: center;
}
.bento-grid{
    position: relative;
    display: grid;
    height: 90vh;
    width: 90%;
    grid-template-columns: repeat(3,1fr);
    grid-template-areas: 
    "intro intro tech"
    "time passion tech"
    ;
    gap: 1.5rem;
}
.card{
    background-color: linear-gradient(145deg,rgb(0,0,0,0.14),rgba(0,0,0,0.7));
    border: 2px solid rgba(76, 4, 244, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
/* Card specifications areas */
.intro{grid-area: intro;min-height: 300px;}
.tech{grid-area: tech;min-height: 450px;}
.time{grid-area: time;min-height: 220px;}
.passion{grid-area: passion;min-height: 220px;}

/* Hover effects*/
/* .card:hover{
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(-5px);
}
.card::before{
    content: '';
    position: absolute;
    inset: 0 0 0 0;
    background: radial-gradient(circle at var(--x) var(--y),
                rgba(124,233,230,0.1),
                transparent 40%
                );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.card:hover::before{
    opacity: 1;
} */
.card {
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
.card:hover {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
  }
  
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x) var(--y),
                rgba(124, 233, 230, 0.1),
                transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}
  
.card:hover::before {
    opacity: 1;
}
  
/* Ensure card content appears above the ::before */
.card > * {
    position: relative;
    z-index: 1;
}
.card-title{
    font-size: 2rem;
    font-weight: 500;
    margin-top: 4rem;
    background: linear-gradient(40deg, #15d21e, #3f5efb);
    /* background: linear-gradient(90deg, #ff7e5f, #feb47b); gradient applied */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.card-text{
    color: rgb(235, 243, 7);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 30rem;
}
.bento-grid .background-img{
    position:absolute;
    inset: -1% -1% -1% -1%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    z-index:-1;
}
.model-box{
    position: absolute;
    right: 5%;
    top: 20%;
    width: 20rem;
    height: 20rem;
}
.info-3D{
    width: 110%;
    height: 110%;
    mix-blend-mode: lighten;
}
/* about responsive */
@media (max-width: 1024px) {
    .bento-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-template-areas:
        "intro intro"
        "tech tech"
        "time passion";
      height: auto;
    }
  
    .model-box {
      width: 15rem;
      height: 15rem;
      top: 10%;
      right: 2%;
    }
  
    .card-title {
      font-size: 1.5rem;
    }
  
    .card-text {
      font-size: 0.95rem;
      max-width: 100%;
    }
  }
  
  @media (max-width: 768px) {
    .about-title {
      font-size: 3rem;
      margin-top: 3rem;
    }
  
    .bento-grid {
      grid-template-columns: 1fr;
      grid-template-areas:
        "intro"
        "tech"
        "time"
        "passion";
      width: 100%;
      height: auto;
    }
  
    .about-section {
      padding: 2rem 1rem;
      margin-top: 2rem;
    }
  
    .card {
      padding: 1.5rem;
    }
  
    .card-title {
      font-size: 1.25rem;
      margin-top: 2rem;
    }
  
    .card-text {
      font-size: 0.9rem;
    }
  
    .model-box {
      position: relative;
      width: 12rem;
      height: 12rem;
      margin: 1rem auto;
      top: unset;
      right: unset;
    }
  
    .info-3D {
      width: 100%;
      height: 100%;
    }
  }
/* Skill Section */

.skill-container {
    padding: 4rem 2rem;
    text-align: center;
}
  
.skill-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background:linear-gradient(to right, #3f5efb, #15d21e);;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
  
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
  
.skill-card {
    flex: 1 1 calc(25% - 1.5rem); /* 4 per row */
    max-width: calc(25% - 1.5rem);
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}
  
.skill-card:hover {
    transform: scale(1.05);
    border-color: rgba(63, 94, 251, 0.2);
}
  
.skill-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}
  
.skill-card:hover img {
    transform: scale(1.1);
}
  
.skill-card span {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}
  
/* Tablet: 2 per row */
@media (max-width: 768px) {
    .skill-card {
      flex: 1 1 calc(50% - 1rem);
      max-width: calc(50% - 1rem);
}
  
.skill-title {
      font-size: 2rem;
}
}
  
/* Mobile: 1 per row */
@media (max-width: 480px) {
    .skill-card {
      flex: 1 1 100%;
      max-width: 100%;
}
}
/* Contact us section */
.contact-section {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    margin: 2rem auto; /* center horizontally */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
  }
  
  .contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    /* margin-left: 6rem; */
    background: linear-gradient(to right, #071c83, #a80c11);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-align: center;
  }
  
  .contact-subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #777;
  }
  
  .contact-form .input-group {
    position: relative;
    margin-bottom: 25px;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    font-size: 1rem;
    transition: 0.3s ease;
    background: transparent;
  }
  
  .contact-form label {
    position: absolute;
    top: 12px;
    left: 14px;
    color: #aaa;
    font-size: 0.95rem;
    pointer-events: none;
    transition: 0.2s ease;
  }
  
  .contact-form input:focus + label,
  .contact-form input:not(:placeholder-shown) + label,
  .contact-form textarea:focus + label,
  .contact-form textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    background: #fff;
    padding: 0 6px;
    font-size: 0.8rem;
    color: #007bff;
  }
  
  .send-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .send-btn:hover {
    background: #0056b3;
  }
  
  .socials {
    margin-top: 30px;
    text-align: center;
  }
  
  .socials a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    transition: 0.2s ease;
  }
  
  .socials a:hover {
    color: #0056b3;
  }
  
  /* Responsive tweaks */
  @media (max-width: 768px) {
    .contact-title {
      font-size: 2.5rem;
    }
  
    .contact-section {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .contact-title {
      font-size: 2rem;
    }
  
    .contact-form input,
    .contact-form textarea {
      font-size: 0.95rem;
    }
  
    .send-btn {
      font-size: 0.95rem;
    }
  
    .socials a {
      display: block;
      margin: 10px 0;
    }
  }