/* ===== VARIABLES ===== */
:root {
    --primary-color: #ee6b07;
    --secondary-color: #ff9a3d;
    --bg-color: #000000;
    --second-bg-color: #111111;
    --text-color: #ffffff;
    --accent-color: #04fc43;
    --transition-speed: 0.3s;
    --nav-height: 70px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.heading span {
    color: var(--primary-color);
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--primary-color);
    border-radius: 6px;
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(238, 107, 7, 0.3);
}

/* ===== HEADER & NAVIGATION - FIXED ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.sticky {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

/* NAVBAR FIX */
.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    padding: 0.5rem 1rem;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--primary-color);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--primary-color);
}

/* ===== HOME SECTION ===== */
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.home-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    padding: 0 2rem;
}

.home-content h1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.orange-text {
    color: var(--primary-color);
}

.text-animate {
    height: 60px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-title {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.animated-title::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.intro-text {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.btn-box {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.home-sci {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--color);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--color);
    transition: all 0.3s ease;
}

.home-sci a:hover {
    background: var(--color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-color);
    font-size: 1.4rem;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    margin: 0.5rem auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--second-bg-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: center;
}

.about-img {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.about-img img:hover {
    transform: scale(1.05);
}

.circle-spin {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.about-content h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.detail-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.detail-item div span {
    display: block;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detail-item div p {
    font-size: 1.6rem;
    margin: 0;
    color: var(--text-color);
}

/* ===== EDUCATION SECTION ===== */
.education {
    background: var(--bg-color);
}

.education-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}

.education-column .title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

.education-box {
    border-left: 2px solid var(--primary-color);
    position: relative;
}

.education-content {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--primary-color);
    border-radius: 50%;
}

.education-content .content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.education-content .content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.year {
    display: inline-flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    background: rgba(238, 107, 7, 0.1);
    border-radius: 20px;
    margin-bottom: 1rem;
}

.year i {
    margin-right: 0.5rem;
}

.education-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.education-content h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.education-content p {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: var(--second-bg-color);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
}

.skills-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.skills-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.skills-box h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.skill-info span:first-child {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-color);
}

.skill-info span:last-child {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Individual skill bar colors */
.html-progress { background: linear-gradient(90deg, #e34c26, #f06529); }
.css-progress { background: linear-gradient(90deg, #264de4, #2965f1); }
.js-progress { background: linear-gradient(90deg, #f0db4f, #f7df1e); }
.react-progress { background: linear-gradient(90deg, #61dafb, #00d8ff); }
.python-progress { background: linear-gradient(90deg, #3776ab, #306998); }
.java-progress { background: linear-gradient(90deg, #ed8b00, #f8981d); }
.web-progress { background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); }
.problem-progress { background: linear-gradient(90deg, #00b894, #00d2a3); }
.communication-progress { background: linear-gradient(90deg, #0984e3, #00cec9); }
.team-progress { background: linear-gradient(90deg, #a29bfe, #6c5ce7); }
.mysql-progress { background: linear-gradient(90deg, #00758f, #0096d6); }
.flutter-progress { background: linear-gradient(90deg, #02569b, #027dfd); }

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    opacity: 0;
}

.skill-progress.animated::after {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--bg-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    height: 400px;
    perspective: 1000px;
}

.project-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .project-inner {
    transform: rotateY(180deg);
}

.project-front,
.project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.project-front {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-badge {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.project-back {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.project-details {
    text-align: center;
    color: var(--bg-color);
}

.project-details h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.project-details p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-tech li {
    list-style: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 1.2rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-link {
    color: var(--bg-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--second-bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-item i {
    font-size: 3rem;
    color: var(--primary-color);
}

.contact-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.4rem;
    color: var(--text-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
    margin-bottom: 2rem;
}

.contact-form .btn {
    width: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-color);
    padding: 2rem 9%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text p {
    font-size: 1.4rem;
    color: var(--text-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-iconTop a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(238, 107, 7, 0.4);
}

.footer-iconTop a i {
    font-size: 2rem;
    color: var(--bg-color);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop (1024px and above) */
@media (min-width: 1024px) {
    .navbar {
        display: flex !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .header {
        padding: 2rem 5%;
    }
    
    section {
        padding: 8rem 5% 2rem;
    }
    
    .navbar {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .navbar.active {
        display: flex;
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 5rem;
        transition: all 0.5s ease;
    }
    
    .navbar.active a {
        margin: 1.5rem 0;
        font-size: 2rem;
        padding: 1rem 2rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .education-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .home-content h1 {
        font-size: 4rem;
    }
    
    .animated-title {
        font-size: 2.8rem;
    }
    
    .heading {
        font-size: 3.5rem;
    }
    
    .input-group {
        grid-template-columns: 1fr;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .btn-box {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .home-content h1 {
        font-size: 3rem;
    }
    
    .animated-title {
        font-size: 2rem;
    }
    
    .heading {
        font-size: 2.8rem;
    }
    
    section {
        padding: 8rem 2rem 2rem;
    }
    
    .header {
        padding: 1.5rem 2rem;
    }
}

/* ===== NOTIFICATION STYLES ===== */
.email-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    color: white;
    font-size: 1.4rem;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.email-notification.success {
    background: #00b894;
}

.email-notification.error {
    background: #ff4757;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-content i {
    font-size: 2rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .email-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ===== FIX HORIZONTAL SCROLLING ===== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

section, .header, .footer {
    width: 100%;
    max-width: 100vw;
}

.home, .video-background, .video-background video {
    width: 100vw;
    max-width: 100%;
}

.home-content {
    width: 100%;
    max-width: 100%;
}


/* ===== IMAGE OPTIMIZATION ===== */
.about-img img,
.project-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    /* Add loading optimization */
    loading: lazy;
    background: linear-gradient(45deg, #333, #555);
}

/* Preload critical images */
.about-img img {
    background: linear-gradient(45deg, #333, #555);
    min-height: 400px;
    object-fit: cover;
}

.project-img {
    background: linear-gradient(45deg, #222, #444);
    min-height: 180px;
    object-fit: cover;
}

/* Add blur effect while loading */
img[data-src] {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

img {
    filter: blur(0);
}


/* ===== HOME SECTION - FIXED ===== */
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.home-content {
    text-align: center;
    max-width: 800px;
    z-index: 2; /* Increased z-index */
    padding: 0 2rem;
    position: relative;
}

.home-content h1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.orange-text {
    color: var(--primary-color);
}

.text-animate {
    height: 60px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-title {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.animated-title::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.intro-text {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.btn-box {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.home-sci {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem; /* Added margin to separate from scroll */
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2px solid var(--color);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
}

.home-sci a:hover {
    background: var(--color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* FIXED SCROLL INDICATOR - No overlap */
.scroll-indicator {
    position: absolute;
    bottom: 2rem; /* Reduced from 3rem */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-color);
    font-size: 1.4rem;
    z-index: 2; /* Lower than social icons */
}

.scroll-arrow {
    width: 2px;
    height: 25px; /* Reduced height */
    background: var(--primary-color);
    margin: 0.5rem auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-7px); /* Reduced bounce */
    }
    60% {
        transform: translateY(-3px);
    }
}


/* ===== ORANGE DROPDOWN STYLES ===== */
.project-select,
.contact-form select {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--primary-color) !important; /* Orange text */
    font-weight: 700; /* Bold text */
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ee6b07' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.5rem;
}

/* Focus state */
.project-select:focus,
.contact-form select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(238, 107, 7, 0.3);
    color: var(--primary-color) !important;
}

/* Dropdown options styling */
.project-select option,
.contact-form select option {
    background: var(--bg-color) !important;
    color: var(--primary-color) !important; /* Orange text for options */
    font-weight: 600;
    font-size: 1.6rem;
    padding: 1rem;
}

/* First option (placeholder) - make it stand out */
.project-select option[value=""],
.contact-form select option[value=""] {
    color: var(--primary-color) !important;
    font-weight: 700;
    background: var(--bg-color) !important;
}

/* Other options */
.project-select option:not([value=""]),
.contact-form select option:not([value=""]) {
    color: var(--primary-color) !important;
    background: var(--second-bg-color) !important;
}

/* Hover state */
.project-select option:hover,
.contact-form select option:hover {
    background: var(--primary-color) !important;
    color: var(--bg-color) !important;
}

/* Selected option */
.project-select option:checked,
.contact-form select option:checked {
    background: var(--primary-color) !important;
    color: var(--bg-color) !important;
    font-weight: 700;
}

/* Make sure text is always visible */
.project-select:invalid,
.contact-form select:invalid {
    color: var(--primary-color) !important;
}

.project-select:valid,
.contact-form select:valid {
    color: var(--primary-color) !important;
}


