/*==========================================/*
   PORTFOLIO WEBSITE
   style.css
/*========================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}
/* html-ന് ഡാർക്ക് നിറം നൽകുക */
html {
    background-color: #0f172a; /* ഈ കളർ നൽകുന്നതോടെ വൈറ്റ് സ്പേസ് പൂർണ്ണമായും മാറും */
}

/* body-യിൽ ഈ ഒരു ലൈൻ കൂടി ചേർക്കുക (നിങ്ങളുടെ പഴയ കോഡിനൊപ്പം) */
body {
    min-height: 100vh; /* പേജ് സ്ക്രീനിൽ മുഴുവനായി നിറഞ്ഞു നിൽക്കാൻ ഇത് സഹായിക്കും */
    
    /* താഴെ കാണുന്നവ നിങ്ങളുടെ പഴയ കോഡാണ്, അത് മാറ്റേണ്ടതില്ല */
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f766e, #0f172a);
    background-size: 400% 400%;
    animation: bgAnimation 15s ease infinite;
    color: #fff;
    overflow-x: hidden;
}

body{
    background:linear-gradient(-45deg,#0f172a,#1e293b,#0f766e,#0f172a);
    background-size:400% 400%;
    animation:bgAnimation 15s ease infinite;
    color:#fff;
    overflow-x:hidden;
}

@keyframes bgAnimation{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}
/* LIGHTBOX BACKDROP */
.lightbox{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

/* ഇമേജിനും വീഡിയോയ്ക്കും ഒരേ ബോർഡർ & ഗ്ലോ ഇഫക്റ്റ് */
.lightbox img, .lightbox video {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 20px; /* ബോർഡർ റൗണ്ട് ചെയ്യാൻ */
    border: 2px solid rgba(255, 255, 255, 0.1); /* നേർത്ത വൈറ്റ് ബോർഡർ */
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4); /* നിങ്ങളുടെ പ്രൊജക്റ്റ് കാർഡിലെ അതേ ഗ്ലോ ഇഫക്റ്റ് */
    background: #000;
}

/* Close ബട്ടൺ സ്റ്റൈൽ */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}
/* IMAGE */
.lightbox-img{
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,229,255,0.3);
}

/* CLOSE BUTTON */
.lightbox .close{
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* CAPTION */
.lightbox-caption{
    color: #fff;
    margin-top: 15px;
    font-size: 18px;
}


/*================ Hero Side  ================*/
#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

canvas {
    display: block;
}

.hero {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}
#three-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: blur(0.3px);
}
#three-container {
    position: fixed;
    inset: 0;
    z-index: 0;
}

canvas {
    display: block;
}

/* HERO PREMIUM LAYER */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* glow overlay */
.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,255,255,0.2), transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: 1;
}

/* content stays above 3D */
.hero-content {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}


/* content stays above 3D */
.demo-media{
    width:100%;
    height:500px;
    border-radius:15px;
    overflow:hidden;
    background:rgba(0,0,0,0.2);
}
.demo-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}



/*================ NAVBAR ================*/

header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    backdrop-filter:blur(15px);
    background:rgba(255,255,255,.08);
    z-index:1000;
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#fff;
}

.logo span{
    color:#00e5ff;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:30px;
}

nav ul li a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:.3s;
}

nav ul li a:hover,
nav ul li a.active{
    color:#00e5ff;
}

#menu-btn{
    display:none;
    font-size:28px;
    cursor:pointer;
}

/*================ HERO ================*/

.hero{
    min-height:100vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:120px 8% 60px;
    gap:40px;
}

.hero-content{
    flex:1;
    animation:slideLeft 1.2s ease;
}

.hero-content h3{
    font-size:28px;
    color:#00e5ff;
}

.hero-content h1{
    font-size:65px;
    margin:10px 0;
}

.hero-content h2{
    font-size:34px;
    margin-bottom:20px;
}

#typing{
    color:#00e5ff;
}

.hero-content p{
    line-height:1.8;
    color:#ddd;
    max-width:600px;
    margin-bottom:35px;
}



/* --- Optimized Profile Picture Styles --- */

.hero-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;   /* 🔥 THIS is missing */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* image fully fill circle */
.hero-image img,
.main-profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.hero-image::after{
    content:"";
    position:absolute;
    width:270px;
    height:270px;
    border-radius:50%;
    border:3px solid transparent;
    border-top:3px solid #00e5ff;
    border-bottom:3px solid #00e5ff;
    animation:rotate-glow 3s linear infinite;
}
@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glow-animation {
    0% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.2); }
    100% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.6); }
}

/* മൊബൈൽ വ്യൂവിനായി മാത്രം */
@media (max-width: 480px) {
    .main-profile-pic { 
        width: 180px; 
        height: 180px; 
    }
    .hero-image::after { 
        width: 195px; 
        height: 195px; 
    }
}

/*=========== BUTTONS ================*/

/* ബട്ടണുകളുടെ കണ്ടെയ്നർ */
.buttons {
    display: flex;
    gap: 15px; /* ബട്ടണുകൾ തമ്മിലുള്ള അകലം കുറച്ചു, ഐപാഡിൽ എളുപ്പം ഫിറ്റ് ആവാൻ */
    margin-bottom: 30px;
    flex-wrap: wrap; /* സ്ഥലം തികഞ്ഞില്ലെങ്കിൽ മാത്രം അടുത്ത വരിയിലേക്ക് മാറാൻ */
    justify-content: flex-start;
}

/* ബട്ടണിന്റെ ഡിസൈൻ */
.btn, .download-btn, .mac-btn {
    padding: 12px 28px; /* പാഡിങ് ഒപ്റ്റിമൈസ് ചെയ്തു */
    border-radius: 50px;
    text-decoration: none;
    background: #00e5ff;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    transition: 0.4s;
    
    /* പുതിയതായി ചേർത്ത മാറ്റങ്ങൾ */
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    white-space: nowrap; /* ടെക്സ്റ്റ് താഴെ താഴെ വരാതിരിക്കാൻ ഇത് നിർബന്ധമാണ് */
    border: 2px solid transparent; /* ഗ്ലോ ഇഫക്റ്റിന് സ്മൂത്ത്നെസ്സ് നൽകാൻ */
}

/* ഹോവർ ഇഫക്റ്റ് കൂടുതൽ ഭംഗിയാക്കാൻ */
.btn:hover, .download-btn:hover, .mac-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.4);
    background: #00c4dc; /* ഹോവർ ചെയ്യുമ്പോൾ ചെറിയൊരു ഡാർക്ക് ഷേഡ് */
}

.btn-outline {
    background: transparent;
    border: 2px solid #00e5ff;
    color: #00e5ff;
}

.btn-outline:hover {
    background: #00e5ff;
    color: #000;
}
/*================ SOCIAL ================*/

.social-icons a{
    color:white;
    margin-right:20px;
    font-size:22px;
    transition:.3s;
}

.social-icons a:hover{
    color:#00e5ff;
    transform:translateY(-5px);
}

/*================ SCROLL ================*/

.scroll-down{
    text-align:center;
    margin-top:-30px;
}

.scroll-down i{
    color:white;
    font-size:32px;
    animation:bounce 2s infinite;
}

@keyframes bounce{
    0%,20%,50%,80%,100%{
        transform:translateY(0);
    }
    40%{
        transform:translateY(-15px);
    }
    60%{
        transform:translateY(-8px);
    }
}

/*================ STATS ================*/

.stats{
    padding:80px 8%;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.stats .box{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    border-radius:20px;
    text-align:center;
    padding:35px;
    transition:.4s;
}

.stats .box:hover{
    transform:translateY(-10px);
}

.stats h1{
    font-size:45px;
    color:#00e5ff;
}

.stats p{
    margin-top:10px;
}

/*================ FEATURES ================*/

.features{
    padding:90px 8%;
}

.section-title{
    text-align:center;
    font-size:42px;
    margin-bottom:60px;
}

.feature-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.card{
    background:rgba(255,255,255,.08);
    border-radius:20px;
    padding:40px;
    text-align:center;
    transition:.4s;
}

.card:hover{
    transform:translateY(-12px);
    box-shadow:0 20px 40px rgba(0,229,255,.25);
}

.card i{
    font-size:55px;
    color:#00e5ff;
    margin-bottom:20px;
}

.card h3{
    margin-bottom:15px;
}

.card p{
    color:#ddd;
    line-height:1.7;
}
.demo-card{
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.15);
}

/*================ CTA ================*/

.cta{
    padding:100px 8%;
    text-align:center;
}


.cta h2{
    font-size:42px;
    margin-bottom:20px;
}

.cta p{
    color:#ddd;
    margin-bottom:35px;
}

.progress-bar{
    display:block;
    width:0;
    height:100%;
    background:linear-gradient(90deg,#00e5ff,#00bcd4);
    border-radius:30px;
    text-align:right;
    padding-right:10px;
    color:#000;
    font-size:12px;
    font-weight:bold;
    line-height:18px;
    transition:width 2s ease;
    box-shadow:0 0 15px rgba(0,229,255,.6);
}
/* നിങ്ങളുടെ CSS-ൽ എവിടെയെങ്കിലും ഈ കോഡ് ചേർക്കുക */
.stats, .features, .cta, footer {
    position: relative;
    z-index: 2;
}



/* മോഡലിൽ മൗസ് വെക്കുമ്പോൾ ക്ലിക്ക് ചെയ്യാനുള്ള ഐക്കൺ കാണിക്കാൻ */
.floating-model model-viewer {
    cursor: pointer;
    transition: all 0.4s ease; /* വളരെ സ്മൂത്ത് ആയി മാറാൻ */
}
/*================ FOOTER ================*/

footer{
    padding:25px;
    text-align:center;
    background:rgba(255,255,255,.08);
}

/*================ ANIMATIONS ================*/

@keyframes slideLeft{
    from{
        opacity:0;
        transform:translateX(-80px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes float{
    0%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-20px);
    }
    100%{
        transform:translateY(0);
    }
}



.project-card{
    height:auto;
    display:flex;
    flex-direction:column;
}

.project-content{
    display:flex;
    flex-direction:column;
    flex:1;
}

.project-buttons{
    margin-top:auto;
}

.project-card img{
    width:100%;
    height:170px;      /* Reduced from 220px */
    object-fit:cover;
    display:block;
}

.project-content{
    padding:18px;      /* Reduced from 25px */
}

.project-content h3{
    margin-bottom:10px;
    font-size:20px;
}

.project-content p{
    color:#ddd;
    line-height:1.5;
    margin-bottom:12px;
    font-size:15px;
}

.tech{
    margin-top:8px;
    margin-bottom:12px;
    color:#00e5ff;
    font-size:13px;
}

.project-buttons{
    display:flex;
    gap:10px;
}

.project-buttons .btn{
    padding:10px 18px;
    font-size:14px;
}

/* പുതിയതായി ചേർക്കേണ്ട പൊതുവായ ഡിസ്ക്ലെയിമർ സ്റ്റൈൽ */
.global-disclaimer {
    margin-top: 60px;      /* പ്രോജക്റ്റ് ഗ്രിഡിൽ നിന്നും അകലം */
    padding: 25px 8%;      /* സൈഡിൽ padding (പേജ് അലൈൻമെന്റിന് അനുസരിച്ച് മാറ്റാം) */
    background-color: rgba(0, 0, 0, 0.1); /* നേരിയ കറുപ്പ് പശ്ചാത്തലം */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* മുകളിൽ ഒരു നേരിയ വര */
    text-align: center;    /* ടെക്സ്റ്റ് സെന്റർ ചെയ്യാൻ */
}

.global-disclaimer p {
    max-width: 800px;      /* ടെക്സ്റ്റ് വരാൻ പാടുള്ള പരമാവധി വീതി */
    margin: 0 auto;        /* ബോക്സിൽ സെന്റർ ചെയ്യാൻ */
    color: #aaa;           /* മങ്ങിയ ഗ്രേ നിറം */
    font-size: 12px;       /* ചെറിയ ഫോണ്ട് സൈസ് */
    line-height: 1.6;      /* വരികൾ തമ്മിലുള്ള അകലം */
    font-style: italic;    /* ചരിഞ്ഞ അക്ഷരങ്ങൾ */
}

/* വേണമെങ്കിൽ ബോൾഡ് ടെക്സ്റ്റിന് സ്റ്റൈൽ നൽകാം */
.global-disclaimer strong {
    color: #ccc;
}
/*================ RESPONSIVE ================*/

@media (max-width:991px){

.hero{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.hero-image{
    order:1;
    margin-bottom:30px;
}

.hero-content{
    order:2;
}

.hero-content p{
    margin:auto auto 30px;
}

.buttons{
    justify-content:center;
}

.social-icons{
    text-align:center;
}

}

/* ================= MINIMALIST PREMIUM MOBILE MENU ================= */
/* ================= MASTERPIECE MOBILE MENU ================= */
@media (max-width: 768px) {
    #menu-btn {
        display: block;
        z-index: 10001;
        color: #fff;
        font-size: 24px;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    #menu-btn.active {
        color: #00e5ff;
        transform: rotate(180deg) scale(0.9);
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Deep premium dark space */
        background: rgba(5, 8, 15, 0.9); 
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }

    nav.active {
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        padding: 0;
        width: 100%;
    }

    nav ul li {
        margin: 18px 0;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    nav.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Silky smooth staggered load */
    nav.active ul li:nth-child(1) { transition-delay: 0.10s; }
    nav.active ul li:nth-child(2) { transition-delay: 0.15s; }
    nav.active ul li:nth-child(3) { transition-delay: 0.20s; }
    nav.active ul li:nth-child(4) { transition-delay: 0.25s; }
    nav.active ul li:nth-child(5) { transition-delay: 0.30s; }
    nav.active ul li:nth-child(6) { transition-delay: 0.35s; }

    nav ul li a {
        font-size: 32px; /* Confident & Large */
        font-weight: 600;
        color: rgba(255, 255, 255, 0.25); /* Faded elegantly */
        letter-spacing: 0px;
        text-transform: capitalize; /* Cleaner than full uppercase */
        text-decoration: none;
        display: inline-block;
        /* Layout shift ozhivakkan color and transform mathram transition cheyyunnu */
        transition: color 0.4s ease, transform 0.4s ease;
        position: relative;
        padding: 10px 20px;
    }

    nav ul li a::before {
        display: none;
    }

    nav ul li a:hover, nav ul li a.active {
        color: #fff; /* Bright white highlight */
        transform: translateY(-3px); /* Gentle float up */
    }

    /* Ultra-minimalist glowing dot indicator */
    nav ul li a::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%) scale(0);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #00e5ff;
        box-shadow: 0 0 15px #00e5ff;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    nav ul li a:hover::after, nav ul li a.active::after {
        transform: translateX(-50%) scale(1);
    }
}
/* ================= MAC OVERLAY ================= */

.mac-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,0.6);
backdrop-filter:blur(15px);
display:none;
justify-content:center;
align-items:center;
z-index:99999;
}

.mac-overlay.active{
display:flex;
}

/* ================= MAC WINDOW ================= */

.mac-window{
width:900px;
max-width:95%;
height:550px;
background:#1e1e1e;
border-radius:14px;
overflow:hidden;
box-shadow:0 30px 80px rgba(0,0,0,0.6);
animation:pop .25s ease;
}

/* TOP BAR */

.mac-top{
height:40px;
background:#2c2c2c;
display:flex;
align-items:center;
padding:0 12px;
cursor:grab;
position:relative;
}

.mac-buttons{
display:flex;
gap:8px;
}

.mac-buttons span{
width:12px;
height:12px;
border-radius:50%;
display:inline-block;
}

.red{background:#ff5f56;}
.yellow{background:#ffbd2e;}
.green{background:#27c93f;}

.mac-title{
position:absolute;
left:50%;
transform:translateX(-50%);
font-size:13px;
opacity:0.7;
}

/* BODY */

.mac-body{
display:flex;
height:100%;
}

/* LEFT */

.mac-left{
width:35%;
background:#111;
text-align:center;
padding:20px;
}

.mac-left img{
width:120px;
height:120px;
border-radius:50%;
object-fit:cover;
margin-bottom:10px;
}

.mac-btn{
display:inline-block;
margin-top:15px;
padding:10px 18px;
background:linear-gradient(45deg,#00eaff,#6a5cff);
color:white;
border-radius:20px;
text-decoration:none;
}

/* RIGHT */

.mac-right{
width:65%;
padding:25px;
overflow:auto;
background:#181818;
color:#ddd;
}

.mac-right h3{
color:#00eaff;
margin-top:15px;
}

.tags{
display:flex;
flex-wrap:wrap;
gap:8px;
}

.tags span{
padding:6px 10px;
background:#2a2a2a;
border-radius:12px;
font-size:12px;
}

/* ANIMATION */

@keyframes pop{
from{transform:scale(0.8);opacity:0;}
to{transform:scale(1);opacity:1;}
}



/* ================= WINDOW OVERLAY ================= */

.portfolio-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,0.6);
backdrop-filter:blur(12px);
display:none;
justify-content:center;
align-items:center;
z-index:9999;
}

.portfolio-overlay.active{
display:flex;
}

/* ================= WINDOW ================= */

.portfolio-window{
width:900px;
max-width:95%;
height:550px;
background:#111827;
border-radius:12px;
overflow:hidden;
box-shadow:0 20px 60px rgba(0,0,0,0.5);
animation:open .3s ease;
}

/* ================= TOP BAR ================= */

.window-top{
height:45px;
background:#0f172a;
display:flex;
align-items:center;
padding:0 15px;
position:relative;
}

.window-buttons{
display:flex;
gap:8px;
}

.window-buttons span{
width:12px;
height:12px;
border-radius:50%;
display:inline-block;
}

.window-buttons .close{ background:#ff5f56; }
.window-buttons .min{ background:#ffbd2e; }
.window-buttons .max{ background:#27c93f; }

.window-title{
position:absolute;
left:50%;
transform:translateX(-50%);
font-size:13px;
opacity:0.7;
}

/* ================= CONTENT ================= */

.window-content{
display:flex;
height:100%;
}

/* LEFT */

.left-panel{
width:35%;
background:#0b1220;
padding:20px;
text-align:center;
}

.left-panel img{
width:120px;
height:120px;
border-radius:50%;
object-fit:cover;
margin-bottom:10px;
}

.left-panel h2{
margin:10px 0;
}

.download-btn{
display:inline-block;
margin-top:15px;
padding:10px 20px;
background:linear-gradient(45deg,#00eaff,#6a5cff);
color:white;
border-radius:25px;
text-decoration:none;
}

/* RIGHT */

.right-panel{
width:65%;
padding:25px;
overflow:auto;
background:#0f172a;
}

.right-panel h3{
margin-top:15px;
color:#00eaff;
}

.right-panel p, .right-panel li{
opacity:0.8;
line-height:1.6;
}

/* ================= ANIMATION ================= */

@keyframes open{
from{transform:scale(0.8);opacity:0;}
to{transform:scale(1);opacity:1;}
}
/*================ BUTTONS ================*/

.buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn, .download-btn, .mac-btn {
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    background: #00e5ff;
    color: #000;
    font-weight: 600;
    transition: 0.4s;
    
    /* സൈസ് മാറാതിരിക്കാൻ മാത്രം ചേർത്തവ */
    box-sizing: border-box;
    outline: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn:hover, .download-btn:hover, .mac-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #00e5ff;
    color: #00e5ff;
}

.btn-outline:hover {
    background: #00e5ff;
    color: #000;
}
@media (max-width: 768px){
    .buttons{
        flex-direction: column;
        align-items: center;
    }

    .btn,
    .download-btn,
    .mac-btn{
        width: 100%;         /* auto ഒഴിവാക്കി 100% നൽകി */
        max-width: 220px;    /* മൊബൈലിൽ എല്ലാ ബട്ടണുകൾക്കും ഒരേ സൈസ് കിട്ടാൻ ഇത് സഹായിക്കും */
    }
}


/* ================= FLOATING SCROLL NAVIGATION ================= */

.floating-scroll-nav {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* ബട്ടണുകൾ തമ്മിലുള്ള അകലം */
    z-index: 9999;
}

.scroll-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 229, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00e5ff;
    font-size: 22px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.scroll-nav-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-nav-btn:hover {
    background: #00e5ff;
    color: #000;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .floating-scroll-nav {
        bottom: 25px;
        right: 25px;
        gap: 10px;
    }
    .scroll-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* --- Final Profile Picture Fix --- */

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    z-index: 2;
}

.main-profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    position: relative;
    z-index: 2;
    animation: glow-animation 3s infinite alternate;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid #00e5ff;
    border-bottom: 3px solid #00e5ff;
    animation: rotate-glow 3s linear infinite;
    z-index: 1;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glow-animation {
    0% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.2); }
    100% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.6); }
}

@media (max-width: 480px) {
    .main-profile-pic { 
        width: 180px; 
        height: 180px; 
    }
    .hero-image::after { 
        width: 195px; 
        height: 195px; 
    }
}
/* ================= 3D MODEL NO-BOX & LARGE FIT ================= */

.hero-content {
    position: relative;
    padding-right: 480px !important; /* വലിയ മോഡലിന് നിൽക്കാൻ കൂടുതൽ സ്ഥലം */
    transform: translateZ(0); 
    z-index: 2;
    min-height: 450px; 
}

.floating-model {
    position: absolute;
    right: 0px; 
    top: 50%;
    transform: translateY(-50%); 
    width: 500px;  /* സൈസ് പരമാവധി കൂട്ടി (ബോക്സ് ഫീൽ ഒഴിവാക്കാൻ) */
    height: 500px; /* സൈസ് പരമാവധി കൂട്ടി */
    z-index: 10;
    pointer-events: auto;
    filter: drop-shadow(-10px 20px 30px rgba(0, 0, 0, 0.5)); 
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: transparent;
    outline: none !important;
    border: none !important;
}
/* ================= 3D LOADING SPINNER ================= */

.custom-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #00e5ff; /* നിങ്ങളുടെ തീം കളർ */
    z-index: 10;
    pointer-events: none;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(0, 229, 255, 0.1);
    border-top: 4px solid #00e5ff; /* കറങ്ങുന്ന ഭാഗം */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); /* ചെറിയൊരു ഗ്ലോ ഇഫക്റ്റ് */
}

.custom-loader p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}
/* മോഡൽ പൂർണ്ണമായും ലോഡ് ആയ ശേഷം ലോഡിങ് സ്ക്രീൻ മറഞ്ഞു പോകാൻ */
.custom-loader.hide {
    display: none !important;
}

/* കറങ്ങാനുള്ള ആനിമേഷൻ */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ടെക്സ്റ്റ് മിന്നി തിളങ്ങാൻ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* model-viewer-ന്റെ ഡിഫോൾട്ട് ബാർ ഒഴിവാക്കാൻ */
model-viewer::part(default-progress-bar) {
    display: none;
}


/* ലാപ്ടോപ്പുകൾക്ക് വേണ്ടി */
@media (max-width: 1200px) {
    .hero-content {
        padding-right: 350px !important;
    }
    .floating-model {
        width: 380px;
        height: 380px;
        right: 0;
    }
}

/* മൊബൈൽ ഫോണുകൾക്കും ടാബുകൾക്കും വേണ്ടി */
@media (max-width: 991px) {
    .hero-content {
        padding-right: 30px !important; 
    }
    .floating-model {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        margin: 20px auto;
        width: 100%;
        height: 350px;
    }
}
/* ഐപാഡുകൾക്കും ചെറിയ ലാപ്ടോപ്പുകൾക്കും (Tablet View) */
@media (max-width: 991px) {
    .buttons {
        justify-content: center; /* ഐപാഡിൽ ബട്ടണുകൾ നടുവിലായി വരാൻ */
        gap: 12px;
    }
    
    .btn, .download-btn, .mac-btn {
        padding: 10px 22px; /* ഐപാഡിൽ ബട്ടണിന്റെ വലിപ്പം ലേശം കുറച്ചു ഫിറ്റ് ആക്കാൻ */
        font-size: 15px;
    }
}

/* മൊബൈൽ ഫോണുകൾക്ക് (Mobile View) */
@media (max-width: 600px) {
    .buttons {
        flex-direction: column; /* മൊബൈലിൽ താഴെ താഴെയായി വരാൻ */
        align-items: center;
        width: 100%;
    }

    .btn, .download-btn, .mac-btn {
        width: 100%;         
        max-width: 250px; /* മൊബൈലിൽ ബട്ടണുകൾ ഒരേ വീതിയിൽ (width) നിൽക്കാൻ */
    }
}
@media(max-width:500px){

.hero{
    padding-top:120px;
}

.hero-content h1{
    font-size:30px;
}

.hero-content h2{
    font-size:20px;
}

.btn{
    padding:12px 22px;
    font-size:14px;
}

.stats h1{
    font-size:36px;
}

}


/* ===== FINAL PROFILE IMAGE FIX ===== */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; /* hidden മാറ്റുക */
    padding: 0 !important; /* ബോക്സ് ലുക്ക് ഒഴിവാക്കാൻ */
    margin: 0 !important;
    background: transparent !important; /* ബോക്സ് ബാക്ക്ഗ്രൗണ്ട് ഉണ്ടെങ്കിൽ അത് ഒഴിവാക്കാൻ */
    position: relative;
    flex-shrink: 0;
}

.main-profile-pic {
    width: 250px !important;
    height: 250px !important;
    border-radius: 50% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 4px solid #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}
@media(max-width:480px){

.hero-image img,
.main-profile-pic{

    width:180px !important;
    height:180px !important;

    min-width:180px;
    min-height:180px;

    max-width:180px;
    max-height:180px;
}

}






/* ===== Live view button open===== */



.compare-popup{

    position:fixed;

    inset:0;

    width:100%;
    height:100%;

    background:
    rgba(5,10,25,0.75);

    backdrop-filter:blur(18px);

    display:flex;

    justify-content:center;

    align-items:center;


    opacity:0;

    visibility:hidden;

    transition:.4s ease;


    z-index:99999;

}



.compare-popup.active{

    opacity:1;

    visibility:visible;

}




.compare-box {
    width: 95vw;             /* ???????????? 95% ???? ???????? */
    height: 92vh;            /* ???????????? 92% ???? ???????? */
    max-width: 1600px;       /* ???? ????????????? ????????? ???? */
    padding: 0;              /* ?????? ??????????? ????????? */
    background: transparent; /* ?????????????? ?????? ????????? */
    border: none;            /* ?????????? ????? ????????? */
    box-shadow: none;        /* ?????????? ???? ????????? */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;               /* ?????? ????????? ??????? ?????????? ???? */
}


.compare-close{


    position:absolute;


    right:45px;

    top:25px;


    font-size:45px;


    color:white;


    cursor:pointer;


    transition:.3s;


}


.compare-close:hover{

    color:#00e5ff;

    transform:rotate(90deg);

}




/* ?????? ??????? (Loreal Revitalift ????? ????????) */
.compare-box h2 {
    color: #ffffff;             /* ???????? ?????? ??? */
    font-size: 24px;            /* ???? ????? ???????, ?????? ????? ???????? */
    font-weight: 500;
    letter-spacing: 2px;        /* ????????? ?????? ????? ???? (Professional Typography) */
    margin-bottom: 20px;
    text-transform: uppercase;  /* ???? ????????? */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); /* ??????? ??????????????? ???????? ???????? */
}


.compare-image-area {
    width: 100%;
    flex: 1;                 /* ??????? ?????? ??????? ???????? */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;           /* ????? ?????????? ??????????? ????????????? ??? ??????????? */
}

.compare-image-area img {
    max-width: 100%;         /* ???????????? ??????? ????????? ???????? */
    max-height: 100%;        /* ???????????? ???????? ????????? ???????? */
    width: auto;             /* ????????? ??????? ???? ??????????? */
    height: auto;            /* ????????? ??????? ???? ??????????? */
    object-fit: contain;     /* ?????? ????? ???????????? */
    
    /* 
      ?????? ?????????????? ???? ??????? ???? ????????? ???????? ?????? ???????? 
      ??? ??? ?????? ?????? ???????? 
    */
    border-radius: 16px;     
    border: 1px solid rgba(0, 229, 255, 0.6); 
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.35); 
    background-color: transparent; 
}

.compare-buttons {
    margin-top: 15px;
    display: flex;
    gap: 20px;
}




.compare-buttons button {
    width: 150px;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #ffffff;             /* ?????? ?????????? */
    
    /* ????????????? (Frosted Glass) ???????? */
    background: rgba(0, 229, 255, 0.05);      /* ???? ?????? ???? ???? */
    border: 1px solid rgba(0, 229, 255, 0.4); /* ?????? ????? */
    backdrop-filter: blur(10px);              /* ?????????????? ???? */
    
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* ??????? ??????????? ?????? ???? */
}



/* ??? ????? ??????????? ? ????????? ????????? ?????????????? */
.compare-buttons button {
    transition: all 0.3s ease-in-out !important; /* ???????? ??? ??? ????? */
}

/* ???? ???????? (???? ???????????) */
.compare-buttons button:hover {
    background: rgba(0, 229, 255, 0.25) !important; /* ??????????????? ?????? ???? ???? ???? */
    border-color: #00e5ff !important;               /* ????? ???????? ??????? */
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6) !important; /* ??????? ???? ???????? ??????? */
    transform: translateY(-3px) !important;         /* ??????????? ????? ??????? */
    color: #ffffff !important;
}

/* ??????? ?????????? (??? ????? ???????? ?????? ???????????? ????????? - ??????) */
.compare-buttons button.active {
    background: #00e5ff !important;
    color: #000000 !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5) !important;
    border-color: #00e5ff !important;
}


@media(max-width:700px){
    .compare-box h2 {
        font-size: 18px;
        letter-spacing: 1px;
    }
    .compare-buttons button {
        width: 120px;
        padding: 10px 15px;
        font-size: 13px;
    }
}



.compare-buttons button{


    width:130px;

    font-size:14px;


}



.compare-box h2{

    font-size:22px;

}
/* ???????? ?????? ?????????? ????? ???????????? (Active State) */
.compare-buttons button.active {
    background: #00e5ff !important;                 /* ??????????? ???? ???? */
    color: #000000 !important;                      /* ?????????? ??????? ???? */
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6) !important; /* ??????? ???? */
    border-color: #00e5ff !important;
    transform: scale(1.05) !important;              /* ???????? ??????????? ????? ??????? ???????? */
    font-weight: 600 !important;
}

/* ????? ???????? ??? ????????? ??????? */
#compareImage {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

















/* Visibility kootiyulla Puthiya Arrow CSS */
/* === PREMIUM LIVE VIEW ARROWS === */

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px; /* Icon size slightly kurachu for an elegant look */
    color: #00e5ff; /* Cyan colored icon */
    
    /* Premium Glassmorphism Effect */
    background: rgba(15, 23, 42, 0.4); /* Dark transparent background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    width: 55px; /* Size korachu koodi valuthakki */
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999 !important;
    pointer-events: auto !important;
    
    /* Smooth Bouncy Animation */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Subtle Border & Depth */
    border: 1px solid rgba(0, 229, 255, 0.2); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Hover aakumbol ulla Premium Glow Effect */
.nav-arrow:hover {
    background: rgba(0, 229, 255, 0.15); /* Light cyan tint */
    color: #fff; /* Icon turns white */
    border: 1px solid #00e5ff; /* Border bright aavum */
    
    /* Inner and Outer Glow */
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.2);
    transform: translateY(-50%) scale(1.1); /* Slight zoom */
}

/* Desktop View Positions */
@media (min-width: 769px) {
    .left-arrow {
        left: 40px; /* Image-il ninnu safe distance */
    }
    .right-arrow {
        right: 40px;
    }
}


/* Premium Mobile View Positions */
@media (max-width: 768px) {
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
        /* Mobile-il arrows kooduthal transparent aakkunnu */
        background: rgba(15, 23, 42, 0.2); 
        border: 1px solid rgba(0, 229, 255, 0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-arrow:hover {
        /* Mobile-il touch cheyyumbol glow aavan */
        background: rgba(0, 229, 255, 0.3);
    }

    .left-arrow {
        left: 5px; /* Screen-nte border-od chernnu nilkkan */
    }
    .right-arrow {
        right: 5px;
    }
    
    /* Mobile-il image korachukoodi fit aavan */
    .compare-image-area img {
        border-radius: 12px;
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.2); 
    }
}



/* ========================================= */
/* ? PERFORMANCE OPTIMIZATION FOR SCROLLING */
/* ========================================= */

/* 1. Hardware Acceleration (GPU ?????????? ???????? ??????) */
.project-card, 
.card, 
.stats .box,
.hero-content {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
    -webkit-font-smoothing: antialiased;
}

/* 2. Content Visibility (????????? ???????? ????? ??????????????? - Massive Speed Boost) */
.features, 
.stats, 
.project-card {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

/* 3. Mobile Specific Fixes */
@media (max-width: 768px) {
    /* Blur ???????? ????????????? (??????? 40px blur ???? lag ??????????) */
    nav {
        backdrop-filter: blur(15px) !important; 
        -webkit-backdrop-filter: blur(15px) !important;
    }
    
    .hero-content, 
    .demo-card, 
    .nav-arrow,
    .compare-popup,
    .mac-overlay,
    .portfolio-overlay {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    /* Body Background ??????? ??????????? ??????? */
    body {
        will-change: background-position;
    }

    /* Box shadows ?????? ?????? (GPU load ??????????) */
    .compare-image-area img {
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.15) !important; 
    }
    
    .card:hover, .project-card:hover {
        box-shadow: 0 10px 20px rgba(0,229,255,.15);
    }
}
/* ========================================= */
/* ? PROJECT SECTION SCROLL LAG FIX         */
/* ========================================= */

.project-card {
    /* ???????? GPU ?????????? ??????? ???????? ??? ????? ??????? */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
    /* ????????? ????????? ??????? ????? */
    will-change: transform;
    
    /* ??????? ??????????? ?????????? ??????????? ?????????? */
    contain: layout style paint;
}

.project-card img {
    /* ??????? ??????? ??????????? lag ?????????????????? */
    transform: translateZ(0);
}

/* ??????? ????????? ?????????? ???? ?????????? ?????????? */
@media (max-width: 768px) {
    .project-card:hover {
        transform: translateY(-5px); /* ???? ??????? ?????????? */
        box-shadow: 0 10px 20px rgba(0, 229, 255, 0.15); /* ???? ?????? ????? */
    }
}
/* ========================================= */
/* ? DROPDOWN BOX MOBILE MENU               */
/* ========================================= */

@media (max-width: 768px) {
    /* ??? ??????? ????????? ???????? ??? ?????? ????????? */
    nav {
        position: fixed;
        top: 85px; /* ??????? ???????? ???? */
        left: 5%; /* ???????????? ????????? ???? */
        width: 90%; /* ?????????? ???? */
        height: auto !important; /* ??? ??????? ?????? ????????? */
        background: rgba(15, 23, 42, 0.95) !important; /* ??????? ?????????????? */
        backdrop-filter: blur(20px) !important;
        border-radius: 20px; /* ???????? ?????? ?????? ????? */
        border: 1px solid rgba(0, 229, 255, 0.2); /* ????? ??? ????? */
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7); /* ???????? ???? ???? */
        padding: 10px 0 !important;
        
        /* ?????? ???????? ?????? ??????? */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px) scale(0.95); 
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        display: block !important;
        justify-content: unset !important;
    }
    
    /* ???????? ??????????? ?????? ????????? */
    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 20px !important;
        text-align: left !important;
    }
    
    nav ul li {
        margin: 0 !important;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        transform: none !important;
    }
    
    /* ?????????? ????????? ?? ?????????? */
    nav ul li:last-child {
        border-bottom: none !important;
    }
    
    nav ul li a {
        font-size: 16px !important;
        font-weight: 500 !important;
        padding: 16px 10px !important;
        display: block !important;
        width: 100%;
        color: #d1d5db !important;
        letter-spacing: 0.5px !important;
        transition: all 0.3s ease !important;
    }
    
    /* ??? ???????? ?????? ????????????? */
    nav ul li a::after {
        display: none !important;
    }
    
    /* ???? ??????????? ??? ??????? ?????????? ????????? */
    nav ul li a:hover, 
    nav ul li a.active {
        color: #00e5ff !important;
        padding-left: 18px !important; 
        background: transparent !important;
    }
}

/* ---------------------------------------------------- */
/* ????? ???????? ????? ???? ???????? ??????? ? */
/* ---------------------------------------------------- */

/* ========================================= */
/* ? LIVE VIEW POPUP CLOSE BUTTON FIX       */
/* ========================================= */

.compare-box {
    position: relative !important; 
}

@media (max-width: 768px) {
    .compare-close {
        position: absolute !important;
        top: -10px !important;
        right: 5px !important;
        font-size: 24px !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: rgba(15, 23, 42, 0.6) !important; 
        border: 1px solid rgba(0, 229, 255, 0.3) !important; 
        border-radius: 50% !important; 
        backdrop-filter: blur(10px) !important;
        z-index: 100 !important;
        transition: all 0.3s ease !important;
    }

    .compare-close:hover, 
    .compare-close:active {
        background: rgba(0, 229, 255, 0.2) !important;
        border-color: #00e5ff !important;
        color: #fff !important;
        transform: scale(1.1) !important; 
    }

    .compare-box h2 {
        margin-top: 40px !important; 
        font-size: 18px !important;
        text-align: center !important;
    }
}