@import "https://fonts.googleapis.com/css2?family=Staatliches&display=swap";
@import "https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap";
@import "https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap";
 * {
     scroll-behavior:smooth;
     box-sizing:border-box 
}
 body::-webkit-scrollbar {
     display:none 
}
 body {
     width:100%;
     line-height:1.6;
     letter-spacing:2px;
     margin:0;
     overflow-x:hidden;
     background-image:url(../images/background.png);
     background-size:cover;
     background-position:center;
     background-attachment:fixed;
     color:#fff 
}
 #bg-canvas {
     position:fixed;
     inset:0;
     width:100%;
     height:100%;
     z-index:-1 
}
/* Hero */
 .head {
    height:100vh;
    position:relative
}
 .hero {
    display:flex;
    justify-content:center;
    align-items:center;
    padding:0 clamp(12px, 4vw, 40px);
    position:relative;
    overflow:hidden;
    min-height:100vh;
    min-height:100svh
}
 .content {
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    min-height:100vh;
    min-height:100svh;
    justify-content:center;
    gap:8px;
    padding-top:4vh
}
 .hero-heading {
    display:inline-flex;
    flex-direction:column;
    align-items:flex-start
}
 .content h1 {
    font-size:clamp(2.25rem, 10vw, 100px);
    color:#fff;
    font-weight:900
}
 .content h3 {
    font-size:clamp(1rem, 4.5vw, 30px);
    width:100%
}
 .hello {
    color:#ffff00;
    font-size:clamp(1.5rem,5vw,2.5rem);
    margin-bottom:.25rem;
    font-weight:700;
    opacity:0;
    animation:fadeIn 1s ease-in-out .5s forwards
}
 .name {
    font-size:9vw;
    font-weight:900;
    letter-spacing:2px;
    text-align:center;
    text-transform:uppercase;
    color:#fff;
    margin-bottom:.25rem;
    position:relative;
    display:inline-block
}
 .name::after {
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:-5px;
    height:0;
    background-color:transparent
}
 .name-outline {
    -webkit-text-stroke:2px #fff;
    color:transparent;
    display:inline-block
}
 .title-container {
    height:40px;
    margin-bottom:.75rem;
    position:relative
}
 .hero-heading .title-container {
    align-self:center;
    text-align:center;
    margin-top:20px
}
 .title-container::after {
    content:'';
    position:absolute;
    height:4px;
    width:100%;
    max-width:600px;
    background:linear-gradient(90deg,transparent,#ff3333,transparent);
    bottom:-10px;
    left:50%;
    transform:translateX(-50%)
}
 .title {
    font-size:clamp(1.5rem,5vw,2.5rem);
    font-weight:700;
    opacity:0;
    animation:fadeIn 1s ease-in-out 1.5s forwards;
    display:inline-block;
    color:#fff
}

/* Loader */
#app-loader {
    position:fixed;
    inset:0;
    background:#000;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    transition:opacity .35s ease, visibility .35s ease;
}
#app-loader.hidden {
    opacity:0;
    visibility:hidden;
}
.loader-content {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
}
.loader-spinner {
    width:56px;
    height:56px;
    border-radius:50%;
    border:4px solid rgba(255,255,255,0.15);
    border-top-color:#ff3333;
    animation:loader-spin 1s linear infinite;
    box-shadow:0 0 14px rgba(255,51,51,0.4);
}
.loader-text {
    color:#fff;
    font-weight:700;
    letter-spacing:1px;
}
@keyframes loader-spin { to { transform:rotate(360deg) } }
 .typing-cursor {
    display:inline-block;
    width:3px;
    height:30px;
    background-color:#fff;
    margin-left:5px;
    animation:blink 1s infinite;
    vertical-align:middle;
    box-shadow:0 0 8px rgba(255,255,255,.8)
}
 .buttons {
    display:flex;
    justify-content:center;
    gap:clamp(10px,5vw,30px);
    margin-top:3rem;
    flex-wrap:wrap
}
 .hero-nav {
    margin-top:60px
}
 .btn {
    padding:clamp(10px,3vw,15px) clamp(20px,5vw,40px);
    font-size:clamp(1rem,3vw,1.2rem);
    background-color:transparent;
    border:2px solid #00ffcc;
    color:#00ffcc;
    cursor:pointer;
    transition:all .3s ease;
    position:relative;
    overflow:hidden;
    z-index:1;
    opacity:0;
    animation:fadeIn 1s ease-in-out 2s forwards;
    font-weight:700;
    letter-spacing:1px;
    box-shadow:0 0 10px rgba(0,255,204,.3);
    text-shadow:0 0 5px rgba(0,255,204,.5);
    text-decoration:none
}
 .btn:hover {
    color:#0a0a0a;
    box-shadow:0 0 15px rgba(0,255,204,.6)
}
 .btn::before {
    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background-color:#00ffcc;
    transition:all .3s ease;
    z-index:-1
}
 .btn:hover::before {
    left:0
}
 .btn:active {
    transform:scale(.95)
}
 @keyframes fadeIn {
    from{
        opacity:0;
        transform:translateY(20px)
    }
    to{
        opacity:1;
        transform:translateY(0)
    }
}
 @keyframes blink {
    0%,100%{
        opacity:1
    }
    50%{
        opacity:0
    }
}
/* Navbar (inside hero) */
 .navbar ul {
    list-style-type:none;
    display:flex;
    width:100%;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:40px
}
 .navbar ul li {
    display:inline;
    margin:0 15px
}
 .navbar ul li a {
    text-decoration:none;
    color:#fff;
    font-size:clamp(14px, 2.5vw, 20px);
    font-weight:700;
    position:relative;
    display:block;
    text-transform:uppercase;
    margin:10px 0;
    padding:10px 20px;
    transition:.3s;
    z-index:1
}
 .navbar ul li a:before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border-top:2px solid red;
    border-bottom:2px solid red;
    transform:scaleY(2);
    opacity:0;
    transition:.3s
}
 .navbar ul li a:after {
    content:"";
    position:absolute;
    top:2px;
    left:0;
    width:100%;
    height:100%;
    background-color:white;
    transform:scale(0);
    opacity:0;
    transition:.3s;
    z-index:-1
}
 .navbar ul li a:hover {
    color:#000;
    text-decoration:none
}
 .navbar ul li a:hover:before {
    transform:scaleY(1);
    opacity:1
}
 .navbar ul li a:hover:after {
    transform:scaleY(1);
    opacity:1
}
/* Tablet wrapping for hero nav (visible md and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-nav .navbar ul,
    .navbar.hero-nav ul {
        flex-wrap:wrap;
        row-gap:12px;
        column-gap:24px;
    }
    .navbar.hero-nav ul li a {
        padding:8px 14px;
    }
    .hero-nav { margin-top:30px }
}
@media (max-width: 720px) {
    /* .hero-nav visibility handled by Bootstrap d-none d-md-block */
    .hero-heading {
       align-items:center
   }
    .buttons {
       margin-top:1.25rem
   }
    .hero-heading .title-container {
       margin-top:10px
   }
}
 @media (max-width: 880px) {
     .hero {
        width:100%;
        flex-direction:column;
        text-align:center;
        padding:0
    }
     .content {
        min-height:100svh;
        display:flex;
        flex-direction:column;
        justify-content:center;
        gap:10px
    }
     .content h1 {
        font-size:50px;
        text-align:center;
        margin-left:0
    }
     .buttons {
        align-self:center;
        width:300px;
        margin-top:12px
    }
     .buttons a {
        display:block;
        margin:10px 0
    }
}
 @media (max-width: 767px) {
     .content h1 {
        font-size:32px;
        text-align:left
    }
}
/* About (new) */
.about-container {
    color:#fff;
    padding:30px 0
}
.about-container .container {
    width:100%;
    margin:0 auto
}
@media (min-width: 1024px) {
    .about-container .container {
        max-width:90%
    }
}
.about-section {
    background-color:rgba(0,0,0,0.4);
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.1);
    overflow:hidden;
    padding:1rem;
    position:relative
}
.about-header {
    text-align:center;
    margin-top:0;
    margin-bottom:1rem
}
.about-content {
    display:grid;
    grid-template-columns:1fr;
    gap:2rem
}
@media (min-width: 768px) {
    .about-content {
        grid-template-columns:4fr 2fr;
        align-items:start
    }
}
.profile-info {
    display:flex;
    flex-direction:column;
    justify-content:center
}
.profile-title {
    color:#00ffcc;
    font-size:clamp(1.5rem,4vw,2rem);
    margin-bottom:1rem
}
.profile-bio {
    font-size:clamp(1rem,2.5vw,1.25rem);
    line-height:1.6;
    margin-bottom:1.5rem
}
.profile-bio span {
    display:block;
    margin-bottom:1rem
}
.details-grid {
    display:grid;
    grid-template-columns:1fr;
    gap:1rem;
    margin-bottom:1.5rem
}
@media (min-width: 576px) {
    .details-grid {
        grid-template-columns:1fr 1fr
    }
}
.detail-item {
    background-color:rgba(80,80,80,0.203);
    padding:1rem;
    border-radius:8px;
    border:1px solid rgba(255,255,255,0.05);
    position:relative;
    overflow:hidden;
    transition:box-shadow .3s ease, transform .2s ease
}
.detail-item:hover {
    box-shadow:0 8px 24px rgba(0,0,0,.35), 0 0 16px rgba(0,255,204,.25);
    transform:translateY(-2px)
}
.detail-item:before {
    content:"";
    position:absolute;
    top:-50%;
    left:-75%;
    width:50%;
    height:200%;
    background:linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%);
    transform:translateX(-150%) rotate(25deg);
    transition:transform .6s ease
}
.detail-item:hover:before {
    transform:translateX(250%) rotate(25deg)
}
.detail-label {
    color:#00ffcc;
    font-size:.9rem;
    margin-bottom:.3rem
}
.detail-value {
    font-size:1rem
}
.profile-image {
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    position:relative;
    border-radius:10px;
    cursor:pointer;
    backface-visibility:hidden;
    isolation:isolate; /* ensure children are clipped inside this stacking context */
    clip-path: inset(0 round 10px); /* hard-clip children to the rounded frame */
}

.profile-image img {
    width:100%;
    height:auto;
    border-radius:10px;
    object-fit:cover;
    border:3px solid #00ffcc;
    transition:transform .3s ease;
    position:relative;
    z-index:1;
}

.profile-image__rect {
    position:absolute;
    bottom:-150px;
    left:0;
    right:-10px;
    height:150px;
    background:#ff3333;
    transform:rotate(-3deg);
    z-index:9;
    transition:all .2s ease-in;
    transition-delay:.3s;
}

.profile-image__tri {
    border-top:220px solid transparent;
    border-bottom:190px solid transparent;
    border-left:288px solid #fff;
    opacity:.9;
    position:absolute;
    display:block;
    top:0;
    left:-100%;
    transition:all .3s ease-in-out;
    z-index:8;
}

.profile-image__tri::before {
    content:'';
    border-top:220px solid transparent;
    border-bottom:190px solid transparent;
    border-left:288px solid #00ffcc;
    position:absolute;
    display:block;
    top:-220px;
    left:-612px;
    transition:all .3s ease-in-out;
    transition-delay:.2s;
}

.profile-image__circle {
    width:320px;
    height:320px;
    border-radius:50%;
    background:#fff;
    position:absolute;
    top:-25%;
    left:50%;
    opacity:.9;
    transform:scale(0);
    transition:all .3s ease;
    z-index:7;
}

.profile-image__circle::before {
    content:'';
    display:block;
    width:100%;
    height:100%;
    background:#ffff00;
    border-radius:50%;
    transform:scale(0);
    transition:all .3s ease;
    transition-delay:.2s;
}

.profile-image__overlay {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index:10;
    pointer-events:none;
}

.profile-image__social {
    pointer-events:auto;
}

.profile-image__overlay p {
    position:absolute;
    top:83%;
    left:-100%;
    text-transform:capitalize;
    color:#fff;
    font-size:20px;
    font-weight:700;
    z-index:8;
    transition:all .6s ease;
    margin:0;
}

.profile-image__social {
    position:absolute;
    bottom:10px;
    left:10px;
    z-index:9;
    display:flex;
    gap:10px;
    pointer-events:auto;
}

.profile-image__social a {
    display:inline-block;
    width:35px;
    height:35px;
    border-radius:50%;
    background:#00ffcc;
    color:#000;
    text-align:center;
    line-height:35px;
    font-size:16px;
    transition:all .3s ease;
    transform:translateY(100px);
    text-decoration:none;
    cursor:pointer;
    pointer-events:auto;
}

.profile-image__social a:hover {
    background:#ffff00;
    color:#000;
    transform:translateY(0) scale(1.1);
    box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

.profile-image__social a:nth-child(1) {
    transition-delay:.2s;
}

.profile-image__social a:nth-child(2) {
    transition-delay:.3s;
}

.profile-image__social a:nth-child(3) {
    transition-delay:.4s;
}

/* Hover Effects */
.profile-image:hover {
    transform:translateY(-5px);
}

.profile-image:hover img {
    transform:translateY(-15px);
}

.profile-image:hover .profile-image__rect {
    bottom:-30px;
}

.profile-image:hover .profile-image__tri {
    left:-15%; /* avoid overshooting outside container on hover */
}

.profile-image:hover .profile-image__tri::before {
    left:-312px;
}

.profile-image:hover .profile-image__circle {
    transform:scale(1);
}

.profile-image:hover .profile-image__circle::before {
    transform:scale(.9);
}

.profile-image:hover .profile-image__overlay p {
    left:8%;
}

.profile-image:hover .profile-image__social a {
    transform:translateY(0);
}

/* Responsive adjustments for profile image animation */
@media (max-width: 768px) {
    .profile-image__rect {
        height:120px;
        bottom:-120px;
    }
    
    .profile-image__tri {
        border-top:150px solid transparent;
        border-bottom:120px solid transparent;
        border-left:200px solid #fff;
    }
    
    .profile-image__tri::before {
        border-top:150px solid transparent;
        border-bottom:120px solid transparent;
        border-left:200px solid #00ffcc;
        top:-150px;
        left:-400px;
    }
    
    .profile-image__circle {
        width:200px;
        height:200px;
        top:-20%;
    }
    
    .profile-image__overlay p {
        font-size:16px;
    }
    
    .profile-image__social a {
        width:30px;
        height:30px;
        line-height:30px;
        font-size:14px;
    }
}
.freelance-box {
    background-color:rgba(0,77,64,0.4);
    padding:1.5rem;
    border-radius:8px;
    margin-top:1rem;
    text-align:center;
    border:1px solid rgba(0,255,204,0.2)
}
.freelance-text {
    font-size:clamp(.9rem,2vw,1.1rem);
    line-height:1.6
}
/* Floating tech icons background */
.floating-icons {
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    pointer-events:none;
    z-index:-1;
    overflow:hidden
}
.floating-icon {
    position:absolute;
    width:64px;
    height:64px;
    opacity:0.3;
    animation:float 20s infinite linear;
    pointer-events:none
}
.floating-icon:nth-child(1) { top:10%; left:10%; animation-delay:0s; animation-duration:25s }
.floating-icon:nth-child(2) { top:20%; left:80%; animation-delay:2s; animation-duration:30s }
.floating-icon:nth-child(3) { top:60%; left:15%; animation-delay:4s; animation-duration:22s }
.floating-icon:nth-child(4) { top:30%; left:70%; animation-delay:6s; animation-duration:28s }
.floating-icon:nth-child(5) { top:80%; left:60%; animation-delay:8s; animation-duration:26s }
.floating-icon:nth-child(6) { top:15%; left:50%; animation-delay:10s; animation-duration:24s }
.floating-icon:nth-child(7) { top:70%; left:85%; animation-delay:12s; animation-duration:32s }
.floating-icon:nth-child(8) { top:40%; left:5%; animation-delay:14s; animation-duration:20s }
@keyframes float {
    0% {
        transform:translate(0,0);
        opacity:0.3
    }
    25% {
        transform:translate(100px,-50px);
        opacity:0.22
    }
    50% {
        transform:translate(-50px,100px);
        opacity:0.35
    }
    75% {
        transform:translate(150px,50px);
        opacity:0.18
    }
    100% {
        transform:translate(0,0);
        opacity:0.3
    }
}
@media (max-width: 768px) {
    .floating-icon {
        width:48px;
        height:48px;
        opacity:0.22
    }
}
/* Experience Section */
.experience {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.experience-container {
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.experience-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease-out forwards;
}

.experience-card:nth-child(1) {
    animation-delay: 0.1s;
}

.experience-card:nth-child(2) {
    animation-delay: 0.2s;
}

.experience-card:nth-child(3) {
    animation-delay: 0.3s;
}

.experience-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff3333, #ff6666);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.experience-icon i {
    font-size: 24px;
    color: #fff;
    z-index: 1;
    position: relative;
}

.experience-title h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    transition: all 0.3s ease;
}

.experience-company {
    color: #00ffcc;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.experience-date {
    color: #ff0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.experience-content {
    position: relative;
    z-index: 2;
}

.experience-content p {
    color: #fff;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 204, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.2), transparent);
    transition: all 0.5s ease;
}

.experience-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.experience-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(0.5);
}

/* Hover Effects */
.experience-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 0, 0, 0.8);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 0, 0, 0.1);
}

.experience-card:hover .experience-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.experience-card:hover .experience-icon::before {
    opacity: 1;
    transform: rotate(45deg) translateX(100%);
}

.experience-card:hover .experience-title h3 {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.experience-card:hover .experience-date {
    color: #fff;
    transform: scale(1.05);
}

.experience-card:hover .skill-tag {
    background: rgba(0, 255, 204, 0.2);
    color: #fff;
    border-color: rgba(0, 255, 204, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.experience-card:hover .skill-tag::before {
    left: 100%;
}

.experience-card:hover .experience-glow {
    opacity: 1;
    transform: scale(1);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .experience-card {
        padding: 20px;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .experience-icon {
        width: 50px;
        height: 50px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .experience-icon i {
        font-size: 20px;
    }
    
    .experience-title h3 {
        font-size: 1.3rem;
    }
    
    .experience-date {
        margin-top: 5px;
    }
    
    .experience-skills {
        gap: 8px;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .experience {
        padding: 40px 0;
    }
    
    .experience-container {
        width: 95%;
    }
    
    .experience-card {
        padding: 15px;
    }
    
    .experience-title h3 {
        font-size: 1.2rem;
    }
    
    .experience-content p {
        font-size: 0.9rem;
    }
}

/* Education Section */
.education {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.education-container {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.education-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-line {
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff3333, #00ffcc, #ffff00);
    border-radius: 2px;
    opacity: 0.8;
    z-index: 1;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    width: 8px;
    height: 8px;
    background: #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 20px #ff3333;
}

.timeline-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -2px;
    width: 8px;
    height: 8px;
    background: #ffff00;
    border-radius: 50%;
    box-shadow: 0 0 20px #ffff00;
}

.education-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 51, 51, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-left: 120px;
    position: relative;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 0.8s ease-out forwards;
}

.education-card:nth-child(2) {
    animation-delay: 0.2s;
}

.education-card:nth-child(3) {
    animation-delay: 0.4s;
}

.education-card:nth-child(4) {
    animation-delay: 0.6s;
}

.education-icon {
    position: absolute;
    left: -80px;
    top: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff3333, #ff6666);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(0, 0, 0, 0.8);
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
}

.education-icon i {
    font-size: 24px;
    color: #fff;
    z-index: 1;
}

.education-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff3333, #00ffcc, #ffff00, #ff3333);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
    animation: rotate 3s linear infinite;
}

.education-content {
    position: relative;
    z-index: 2;
}

.education-header {
    margin-bottom: 20px;
}

.education-header h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.education-specialization {
    color: #00ffcc;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-bottom: 10px;
}

.education-date {
    color: #ffff00;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 0, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 0, 0.3);
}

.education-details {
    margin-bottom: 20px;
}

.institution {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    opacity: 0.9;
}

.location {
    color: #ccc;
    font-size: 1rem;
    margin: 0 0 15px 0;
    opacity: 0.8;
}

.education-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.single-stat {
    flex: 1;
    max-width: 300px;
    min-width: 250px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 255, 204, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    transition: all 0.3s ease;
}

.stat-label {
    color: #00ffcc;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}


.education-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 51, 51, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(0.5);
    z-index: 1;
}

/* Hover Effects */
.education-card:hover {
    transform: translateX(-10px) translateY(-5px);
    border-color: rgba(255, 51, 51, 0.8);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 51, 51, 0.3),
        inset 0 0 20px rgba(255, 51, 51, 0.1);
}

.education-card:hover .education-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.8);
}

.education-card:hover .education-icon::before {
    opacity: 1;
}

.education-card:hover .education-header h3 {
    color: #00ffcc;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.education-card:hover .stat-item {
    background: rgba(0, 255, 204, 0.2);
    border-color: rgba(0, 255, 204, 0.4);
    transform: translateY(-2px);
}


.education-card:hover .education-glow {
    opacity: 1;
    transform: scale(1);
}

/* Animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
 @media (max-width: 768px) {
    .education {
        padding: 60px 0;
    }
    
    .education-container {
        width: 95%;
    }
    
    .timeline-line {
        left: 30px;
        width: 3px;
    }
    
    .education-card {
        margin-left: 60px;
        padding: 20px;
    }
    
    .education-icon {
        left: -50px;
        width: 50px;
        height: 50px;
    }
    
    .education-icon i {
        font-size: 20px;
    }
    
    .education-header h3 {
        font-size: 1.5rem;
    }
    
    .education-stats {
        justify-content: center;
        gap: 15px;
    }
    
    .single-stat {
        max-width: 250px;
        min-width: 200px;
    }
    
    .stat-item {
        padding: 8px 12px;
    }
    
}

@media (max-width: 480px) {
    .education-card {
        margin-left: 40px;
        padding: 15px;
    }
    
    .education-icon {
        left: -35px;
        width: 40px;
        height: 40px;
    }
    
    .education-icon i {
        font-size: 16px;
    }
    
    .education-header h3 {
        font-size: 1.3rem;
    }
    
    .timeline-line {
        left: 20px;
    }
}
/* Skills */
.skills, #skills {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

 .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1000px;
    margin-top: 20px;
    padding: clamp(20px, 4vw, 40px);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

.expertise-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.expertise-header {
    color: #00ffcc;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    position: relative;
}

.expertise-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
    border-radius: 2px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 204, 0.2);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 204, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    z-index: 1;
}

.skill-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.skill-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hover Effects */
.skill-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(0, 255, 204, 0.8);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 204, 0.4),
        inset 0 0 20px rgba(0, 255, 204, 0.1);
}

.skill-item:hover::before {
    opacity: 1;
    transform: rotate(45deg) translateX(100%);
}

.skill-item:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 255, 204, 0.4));
}

.skill-item:hover .skill-name {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .expertise-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .expertise-header {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
        padding: 20px;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .skill-icon {
        width: 48px;
        height: 48px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .expertise-container {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .expertise-header {
        font-size: 1.3rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .skill-item {
        padding: 10px;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
}
/* Projects */
 .pro {
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center
}
 .section-title {
    font-size:clamp(1.75rem, 6vw, 3rem);
    font-weight:700;
    color:red;
    width:100%;
    text-align:left;
    margin-top:clamp(12px, 2.5vw, 20px);
    margin-bottom:clamp(12px, 2.5vw, 20px);
    margin-left:clamp(0px, 5vw, 40px)
}
 @media (max-width: 768px) {
    .section-title {
        font-size:clamp(1.5rem, 8vw, 2.5rem);
        text-align:center;
        margin-left:0
    }
}
 .certs {
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    margin:30px 0
}
 .certs-wrap {
    width:90%;
    max-width:1200px;
    display:flex;
    flex-wrap:wrap;
    gap:24px;
    justify-content:center
}
 .cert-card {
    flex:1 1 calc(50% - 24px);
    max-width:600px;
    border:2px solid red;
    box-shadow:0 0 12px red;
    background:#000;
    border-radius:12px;
    padding:clamp(10px, 2.5vw, 14px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
}
 .cert-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px
}
 .cert-title {
    font-size:clamp(.95rem, 3.2vw, 1rem);
    color:#fff;
    margin:0;
    font-weight:700
}
 .cert-date {
    color:#ff0;
    font-weight:700;
    font-size:.9rem;
    white-space:nowrap
}
 .cert-media img {
    width:100%;
    height:auto;
    border-radius:8px;
    display:block
}

/* Holographic animation for certification cards */
.cert-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0,255,255,0.5), 0 0 40px rgba(0,255,255,0.3);
}

.cert-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.cert-media::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        0deg, 
        transparent, 
        transparent 30%, 
        rgba(0,255,255,0.3)
    );
    transform: rotate(-45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 2;
    border-radius: 8px;
}

.cert-card:hover .cert-media::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}

.cert-media img {
    position: relative;
    z-index: 1;
}
 @media (max-width: 768px) {
    .cert-card {
        flex:1 1 100%;
        max-width:100%
    }
}
@media (max-width: 400px) {
    .certs-wrap {
        width:100%;
        padding:0 8px;
    }
    .cert-card {
        border-radius:10px;
        padding:10px;
    }
    .cert-head {
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }
    .cert-date {
        align-self:flex-start;
        font-size:.85rem;
    }
}
/* Cards stack */
 :root {
    --cards:4;
    --cardheight:70vh;
    --cardtoppadding:1.2em;
    --cardmargin:4vw;
    --cardHeight:70vh;
    --cardTopPadding:8vh;
    --cardMargin:2vw
}
 .container-pro {
    width:100%;
    margin:0 auto
}
 #cards {
    list-style:none;
    padding-left:0;
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:repeat(var(--cards), minmax(var(--cardHeight), auto));
    gap:0;
    padding-bottom:calc(var(--cards) * var(--cardTopPadding));
    margin-bottom:var(--cardMargin);
    max-width:1000px;
    margin-left:auto;
    margin-right:auto
}
 .card {
    background-color:transparent;
    position:sticky;
    top:0;
    padding-top:var(--cardTopPadding);
    margin:0
}
 .card:nth-child(1) {
    --index:0
}
 .card:nth-child(2) {
    --index:1
}
 .card:nth-child(3) {
    --index:2
}
 .card:nth-child(4) {
    --index:3
}
 .card-body {
    box-sizing:border-box;
    padding:clamp(16px, 4vw, 40px);
    border-radius:12px;
    overflow:hidden;
    min-height:var(--cardHeight);
    height:auto;
    display:flex;
    flex-direction:column;
    justify-content:center;
    border:2px solid red;
    box-shadow:0 0 20px red;
    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(3px);
    transition:transform .35s ease, box-shadow .35s ease, filter .35s ease
}
 .card-header {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin:0 0 8px 0
}
 .card-title {
    font-size:clamp(1.25rem, 4.5vw, 2rem);
    margin:0;
    font-weight:800
}
 .card-date {
    position:static;
    font-size:clamp(.9rem, 3.2vw, 1rem);
    font-weight:700;
    color:#ff0;
    white-space:nowrap
}
 .card-description {
    font-size:clamp(.95rem, 3.2vw, 1rem);
    line-height:1.6;
    margin:.75rem 0 1rem 0;
    max-width:68%
}
 .card-image {
    display:block;
    margin:8px 0 10px
}
 .card-image img {
    display:block;
    margin:0 auto;
    max-width:70%;
    height:auto;
    border-radius:10px;
    box-shadow:0 4px 16px rgba(0,0,0,.4)
}
 .card-link {
    text-decoration:none;
    padding:10px 20px;
    border-radius:999px;
    font-weight:700;
    display:inline-block;
    transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    color:#000;
    background:#fff
}
 .card-link:hover {
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(0,0,0,.25)
}
 .card-title{
    margin-right:120px
}
 .card-body:hover{
    transform:translateY(-4px);
    box-shadow:0 0 28px red
}
 #card1 .card-body {
    background-color:#000;
    color:#fff
}
 #card2 .card-body {
    background-color:#000;
    color:#fff
}
 #card3 .card-body {
    background-color:#000;
    color:#fff
}
 @media (max-width: 768px) {
     :root {
        --cardHeight:65vh;
        --cardTopPadding:6vh
    }
     .card-body {
        padding:20px
    }
     .card-title {
        font-size:1.5rem
    }
     .card-description {
        font-size:.95rem;
        max-width:100%;
        margin:.5rem 0 .75rem 0
    }
     .card-image img {
        max-width:90%
    }
}
@media (max-width: 400px) {
    .card-header {
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
    }
    .card-title{
        margin-right:0;
    }
}
/* Contact */
 .foot {
    margin-top:30px;
    background-color:#00000073;
    box-shadow:0 0 10px 1px #00000040;
    backdrop-filter:blur(5px);
    box-shadow:0 0 20px red;
    border-top:2px solid red
}
 .container-form {
    width:100%;
    padding:clamp(20px, 4vw, 40px)
}
.contact-info {
    color:#fff
}
 h1 {
    font-size:clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom:10px
}
 p {
    font-size:clamp(1rem, 2.8vw, 1.2rem);
    margin-bottom:20px;
    width:100%
}
 .address-section {
    display:flex;
    align-items:center;
    margin-bottom:20px
}
 .address-details p {
    text-align:start;
    letter-spacing:0;
    font-size:20px;
    color:red
}
 .address-details a {
    color:#fff;
    margin-left:20px
}
 .social-icons {
    margin-top:15px
}
 .social-icons a {
    margin-right:15px;
    color:red;
    font-size:1.5rem
}
.contact-form {
}
.form-contact {
    display:flex;
    justify-content:end
}
 form {
    display:flex;
    flex-direction:column;
    width:400px;
    align-self:flex-end
}
 .form-group {
    display:flex;
    flex-direction:column;
    gap:10px;
    justify-content:space-between;
    margin-bottom:15px
}
 input,textarea {
    width:100%;
    padding:10px;
    background-color:#ffffff18;
    color:#fff;
    border:none;
    border-radius:5px;
    font-size:1rem
}
 textarea {
    width:100%;
    height:100px
}
 input::placeholder,textarea::placeholder {
    color:#ccc
}
 button.submit-btn {
    padding:10px 20px;
    background-color:red;
    color:#fff;
    border:none;
    cursor:pointer;
    font-size:1rem;
    border-radius:5px;
    width:150px;
    align-self:flex-end
}
 button.submit-btn:hover {
    background-color:#fff;
    color:#000
}
@media (max-width: 767px) {
    .container-form {
       padding:20px
   }
    .form-contact {
       justify-content:center
   }
    .contact-info,.contact-form {
       margin-top:40px
   }
    .form-group {
       flex-direction:column
   }
    input,textarea {
       width:100%;
       margin-bottom:15px
   }
    .address-details p {
       font-size:15px
   }
    button.submit-btn {
       width:100%;
       text-align:center
   }
}
 footer {
    width:100%;
    display:flex;
    justify-content:space-between;
    padding:20px;
    font-size:16px;
    color:#fff
}
 .social-icons a {
    color:red;
    text-decoration:none
}
 .social-icons a:hover {
    text-decoration:underline;
    color:#fff
}
 @media (max-width: 767px) {
    footer {
        width:100%;
        justify-content:space-between;
        padding:15px;
        font-size:10px
    }
}
 @media (max-width: 480px) {
    footer p {
        padding:0;
        font-size:12px
    }
}
 .back-to-top {
    display:inline-block;
    padding:10px 15px;
    background-color:red;
    color:#fff;
    font-weight:700;
    border-radius:5px
}
 .back-to-top:hover {
    background-color:#fff;
    color:#000;
    text-align:right
}

