html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    background:
    radial-gradient(circle at top,#24124b 0%,#141428 35%,#0b0f16 75%,#080b12 100%);
    color: #e8e8e8;
}

.logo-ci {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(to right, #f9620b, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px; /* Or your preferred max width */
    margin: auto;
}

hr {
    width: 50%;
    margin: 20px auto;
    border-top: 1px solid #ccc;
}

h1, h2 {
    font-weight: 700;
}

p {
    font-weight: 400;
    color: #ccc;
    text-decoration: none;
}

a {
    font-weight: 400;
    color: #007bff;
    text-decoration: none;
}

a:hover {
    color: #0056b3;
}

.fas, .fab {
    margin-right: 1px;
    color: inherit;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 10px;
    color: #fff;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.email-icon {
    background-color: #555555;
}

.youtube-icon {
    background-color: #dd4b39;
}

.instagram-icon {
    background-color: #E1306C;
}

.facebook-icon {
    background-color: #1877F2;
}

.icon-link:hover {
    transform: scale(1.1);
    color: #fff;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    padding: 60px 8%;
    max-width: 700px;
    color: #fff;
}

.hero-tagline {
    color: #f9620b;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 20px 0;
    color: #fff;
}

.hero-title span {
    background: linear-gradient(to right, #f9620b, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtext {
    font-size: 17px;
    color: #ddd;
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-primary {
    background: #f9620b;
    color: #fff;
    padding: 14px 26px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #e0550a;
    color: #fff;
}

.btn-secondary {
    border: 1px solid #007bff;
    color: #4fa3ff;
    padding: 14px 26px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(0,123,255,0.1);
    color: #4fa3ff;
}

.hero-features {
    display: flex;
    gap: 40px;
    color: #eee;
    font-size: 14px;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features i {
    font-size: 20px;
    color: #f9620b;
}

@media only screen and (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .hero-content { padding: 40px 6%; }
    .hero-features { flex-wrap: wrap; gap: 20px; }
    .hero-buttons { flex-wrap: wrap; }
}

@media only screen and (max-width: 480px) {
    .hero {
        min-height: 100vh;
        background-size: 250% auto;
        background-position: 80% 30%;
        background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.75)), url('/images/hero-bg.png');
    }
    .hero-content {
        padding: 30px 6% 40px;
    }
    .hero-title {
        font-size: 30px;
        margin-bottom: 12px;
    }
    .hero-subtext {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-bottom: 20px;
    }
    .btn-primary, .btn-secondary {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 20px;
    }
    .hero-features {
        gap: 10px;
        font-size: 12px;
    }
}
 
.video {
    background-color: rgb(255, 255, 255);
    color: black;
}

.more-info  {
    background-color: grey;
    color: white;
}
footer {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(to right, #831bcd, #f9620b);
    color: #fff;
    padding: 15px 20px;
    text-align: center;
}

footer p {
    margin: 0;
    word-wrap: break-word;
}

section {
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position:relative;
    overflow:hidden;
    z-index:1;
}

#blogs{
    position:relative;
    overflow:hidden;
    padding:80px 0;
    max-width:100%;

    background:transparent;
    padding-bottom:80px;

}

#blogs::before{

content:"";
position:absolute;
inset:0;
background-image:
radial-gradient(circle,#6d40ff 1px,transparent 1px);
background-size:45px 45px;
opacity:.08;

}

img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    object-fit: cover;
}

.thumbnail-content img {
    width: 100%;
    height: 180px; /* nice rectangular look */
    border-radius: 12px 12px 0 0; /* top rounded only */
    object-fit: cover;
}

form{

margin:20px auto;

padding:25px;

width:100%;

max-width:600px;

background:rgba(18,18,42,.88);

border:1px solid rgba(140,90,255,.35);

border-radius:18px;

box-shadow:0 15px 40px rgba(0,0,0,.45);

backdrop-filter:blur(12px);

box-sizing:border-box;

}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    color:#d9d9ff; /* Changed label color */
}

form input[type="text"],
form input[type="email"],
form textarea{

width:100%;

padding:14px;

background:#121327;

color:white;

border:1px solid rgba(120,90,255,.25);

border-radius:10px;

margin:10px 0;

box-sizing:border-box;

}

form input::placeholder,
form textarea::placeholder{

color:#8e8eb5;

}

form button{

width:100%;

padding:15px;

background:linear-gradient(90deg,#7b2ff7,#ff6b2b);

color:white;

border:none;

border-radius:10px;

font-size:18px;

font-weight:600;

cursor:pointer;

transition:.35s;

}

form button:hover{

transform:translateY(-2px);

box-shadow:0 10px 25px rgba(255,120,50,.35);

}
 
@media only screen and (max-width: 480px) {
    header, footer {
        padding: 15px; /* Adjusts padding for smaller screens */
    }

    section, form {
        width: calc(100% - 20px); /* Adjusts width to ensure spacing on very small screens */
        margin: 10px auto;
    }

    .icon-link {
        width: 40px;
        height: 40px;
        margin: 0 5px; /* Adjusts icon size and spacing for smaller screens */
    }

    h1, h2 {
        font-size: 16px; /* Adjusts heading sizes for better readability on small devices */
    }
}


@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

.dark-mode {
    background-color: #333;
    color: #fff;
}

.dark-mode button {
    background-color: #555;
    color: #fff;
}

.dark-mode p {
    color: #fff;
}

.projects-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;

    max-width: 1200px;   
    margin: 0 auto;     

    padding: 5px;
}

 

 #blogs h2{
    font-size:48px;
    color:white;
    margin-bottom:8px;
}

#blogs p{
    color:#bcbcd6;
    font-size:18px;
    margin-bottom:45px;
}

#blogs h2::after{
    content:"";
    display:block;
    width:90px;
    height:4px;
    margin:18px auto;
    border-radius:50px;

    background:linear-gradient(90deg,#8a2be2,#ff6b2b);
}

.dark-mode .scroll-btn {
    background: #831bcd;
    color: #fff;
}
/* Horizontal scroll */
#projects {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    scroll-behavior: smooth;
    padding: 20px 90px;
    scroll-snap-type: x mandatory;

    /* ADD THESE TWO LINES */
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge legacy */

    -webkit-mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 60px, black calc(100% - 60px), transparent 100%);
}

 

/* Hide scrollbar */
#projects::-webkit-scrollbar {
    display: none;
}

.project-thumbnail {
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    background: transparent;
    display: flex;
}

@media(max-width:768px){

.project-thumbnail{

flex:0 0 260px;

max-width:260px;

}

.thumbnail-content h3{

font-size:22px;

}

.thumbnail-content img{

height:160px;

}

.scroll-btn{

display:none;

}

#projects{

padding:20px;

}

}

.card-inner{

background:rgba(20,20,40,.88);
border:1px solid rgba(140,90,255,.35);
backdrop-filter:blur(12px);
border-radius:18px;
overflow:hidden;
box-shadow:
0 0 0 1px rgba(255,255,255,.04),

0 12px 40px rgba(0,0,0,.45);

transition:.35s;
display:flex;
flex-direction:column;
width:100%;
}

.card-inner::before{

content:"";

position:absolute;

inset:0;

border-radius:18px;

padding:1px;

background:

linear-gradient(135deg,

rgba(140,80,255,.5),

rgba(255,100,60,.35));

-webkit-mask:
linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);

mask:
linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);

-webkit-mask-composite:xor;

mask-composite:exclude;

pointer-events:none;
}

.card-inner{
   position:relative;
}

.card-inner:hover{

transform:translateY(-10px);

border-color:#9d4cff;

box-shadow:

0 0 25px rgba(140,90,255,.35),

0 18px 45px rgba(0,0,0,.55);
}

/* Arrow buttons */
.scroll-btn{

position:absolute;

top:50%;

transform:translateY(-50%);

width:55px;

height:55px;

border-radius:50%;

background:rgba(70,50,130,.35);

border:1px solid rgba(255,255,255,.15);

color:white;

font-size:28px;

display:flex;

justify-content:center;

align-items:center;

cursor:pointer;

z-index:5;

transition:.3s;

backdrop-filter:blur(8px);

}
.scroll-btn.left {
    left: -55px;
}

.scroll-btn.right {
    right: -55px;
}

.scroll-btn:hover{

background:

linear-gradient(135deg,#7b2ff7,#ff6b2b);

transform:translateY(-50%) scale(1.08);

}


.thumbnail-content {
    padding: 0px 0px 20px 0px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.thumbnail-content img{

width:100%;

height:185px;

object-fit:cover;

border-radius:18px 18px 0 0;

transition:.4s;
}

.card-inner:hover img{

transform:scale(1.05);

}

.thumbnail-content h3{
font-size:22px;
font-weight:700;
color:white;
margin:16px 20px 8px;
min-height: 50px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1.2;
}
 
.thumbnail-content p{
    color:#bdbdd7;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size:14px;
    line-height:1.6;
    margin:8px 20px 16px;
    height: 67px;
    text-align: center;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumbnail-content .btn{
display:inline-flex;
align-items:center;
gap:8px;
padding:12px 28px;
border-radius:10px;
font-weight:600;
color:white;
background:
linear-gradient(90deg,#7b2ff7,#ff6b2b);
transition:.35s;
margin: 8px auto 0;
align-self: center;
}

.thumbnail-content .btn:hover{
transform:translateY(-2px);
box-shadow:
0 0 20px rgba(255,120,50,.4);
}


@media only screen and (max-width: 768px) {
    #projects {
        grid-template-columns: 1fr; /* This changes the layout to single column */
    }
}
/*Nav menu*/

/* Navigation Bar Styles */
.navbar {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap if needed, but we'll manage this with media queries */
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #0f0f0f, #1a1a1a);
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px 20px;
}

.nav-menu a {
    color: #fff;
    font-size: 15px;
    padding-bottom: 4px;
}

.nav-menu a.active {
    border-bottom: 2px solid #f9620b;
}

.nav-menu svg path {
    fill: #fff;
}

.dark-mode-toggle i {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Ensuring the nav logo and toggle are always aligned left */
.navbar-container {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allows the navbar-container to grow and use available space */
}

.nav-logo img {
    height: 50px; /* Adjust the height as necessary */
    width: auto; /* This will maintain the aspect ratio of your logo */
    border: none; /* Removes any borders */
    border-radius: 0; /* Removes any round corners */
    box-shadow: none; /* Removes any shadow effects */
}

/* Adjustments to the nav-menu to display inline on desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1; /* Allows the nav-menu to grow and use available space */
    justify-content: flex-end; /* Aligns menu items to the right */
}

/* Hide the toggle button on wider screens */
.nav-toggle {
    display: none;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none; /* Hide by default on mobile */
        /* Additional mobile-specific styles here */
    }

    /* Styling adjustments for when the nav-menu is active */
    .nav-menu.active {
        display: flex; /* Display the menu in a column when active */
    }

    .nav-toggle {
        display: block; /* Show the toggle button on mobile */
        margin-left: auto; /* Ensures the toggle button is aligned to the right */
    }
    .nav-toggle i {
        font-size: 24px; /* Increase to desired size */
        cursor: pointer;
    }
}


/* Dark Mode Adjustments */
.dark-mode .navbar {
    background-color: #333;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.dark-mode .nav-menu a, .dark-mode .nav-menu .resume-button {
    color: #fff;
}

.dark-mode .nav-menu a:hover, .dark-mode .nav-menu .resume-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0,0.4);
}

.modal-content {
    background-color: rgba(20,20,40,.97);
    color: #e8e8e8;
    padding: 25px;
    border: 1px solid rgba(140,90,255,.35);
    border-radius: 14px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.modal-content h2, .modal-content h3 {
    color: #fff;
}

.modal-content p, .modal-content li {
    color: #ccc;
}

.modal-body-simple {
    text-align: left;
    padding: 10px 5px;
}

.modal-body-simple p {
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 15.5px;
}

.modal-body-simple h4 {
    color: #fff;
    font-size: 18px;
    margin: 24px 0 10px;
    border-left: 3px solid #f9620b;
    padding-left: 10px;
}

.modal-body-simple h5 {
    color: #e8e8e8;
    font-size: 15.5px;
    font-weight: 600;
    margin: 18px 0 6px 20px;
    padding-left: 8px;
    border-left: 2px solid rgba(249, 98, 11, 0.5);
}

.modal-body-simple h5 + p {
    margin-left: 28px;
}

.modal-body-simple ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

.modal-body-simple ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.close {
    color: #bbb;
}
.close:hover, .close:focus {
    color: #fff;
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 92%;
        padding: 16px;
    }
    .image-carousel img {
        height: 70px;
    }
    .modal-row {
        flex-direction: column;
    }
    .column {
        flex-basis: auto;
        width: 100%;
    }
}

.modal-body {
    display: flex;
    flex-direction: column;
}


.modal-row {
    display: flex;
    justify-content: space-between; /* Ensures spacing between columns */
    align-items: flex-start; /* Align items at the top */
}

.column {
    flex: 1 1 45%; /* Give each column a bit of flex-grow and flex-shrink, but base size of 45% */
    margin: 5px; /* Small margin for spacing */
    min-width: 250px; /* Minimum width before wrapping */
    flex-basis: 45%;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header h2 {
    margin: 0;
    text-align: center;
}

.modal-header .close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.close:hover,
.close:focus {
    color: #E1306C;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 50%;
    padding: 10px;
}

@media screen and (max-width: 768px) {
    .modal-row {
        flex-direction: column;
    }

    .column {
        flex-basis: auto; /* Allows the column to take necessary space */
        width: 100%; /* Full width for smaller screens */
    }
}

#latest-videos{
    position:relative;
    overflow:hidden;
    padding:80px 0;
    max-width:100%;
    background:transparent;
}

#latest-videos h2{
    font-size:48px;
    color:white;
    margin-bottom:8px;
}

#latest-videos h2::after{
    content:"";
    display:block;
    width:90px;
    height:4px;
    margin:18px auto;
    border-radius:50px;
    background:linear-gradient(90deg,#8a2be2,#ff6b2b);
}

#latest-videos p{
    color:#bcbcd6;
    font-size:18px;
    margin-bottom:45px;
}

.videos-wrapper{
    position:relative;
    width:100%;
    max-width:1200px;
    margin:0 auto;
    overflow:hidden;
}

#video-track{
    display:flex;
    gap:20px;
    width:max-content;
    padding:10px 20px;
}

.video-thumb{
    position:relative;
    flex:0 0 auto;
    width:280px;
    height:157px;
    border-radius:14px;
    overflow:hidden;
    border:1px solid rgba(140,90,255,.35);
    box-shadow:0 12px 30px rgba(0,0,0,.45);
    display:block;
}

.video-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:0;
    box-shadow:none;
    transition:.4s;
}

.video-thumb:hover img{
    transform:scale(1.08);
}

.play-icon{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:50px;
    height:50px;
    border-radius:50%;
    background:rgba(0,0,0,.55);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:18px;
    transition:.3s;
}

.video-thumb:hover .play-icon{
    background:linear-gradient(90deg,#7b2ff7,#ff6b2b);
    transform:translate(-50%,-50%) scale(1.1);
}

@media(max-width:768px){
    .video-thumb{
        width:220px;
        height:124px;
    }
}

@media only screen and (max-width: 480px) {
    footer p {
        font-size: 13px;
    }
}