/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #403bd1;
    --secondary-color: #6b6bf5;
    --accent-color: #2a27a3;
    --dark-color: #0f172a;        /* Dark background */
    --light-color: #1e293b;       /* Main background color */
    --card-bg: #334155;           /* Card background */
    --gray-color: #94a3b8;
    --text-dark: #f1f5f9;         /* Light text for dark background */
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;        /* Muted text color */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --radius: 10px;
    --transition: all 0.3s ease;
    
    /* Light Blue Accent Colors */
    --light-blue: #0ea5e9;
    --sky-blue: #38bdf8;
    --cyan-blue: #06b6d4;
    --light-blue-shadow: rgba(14, 165, 233, 0.3);
    --gradient-blue: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-color) !important; /* #1e293b */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff !important; /* White headings for contrast */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #ffffff !important; /* White titles */
}

.section-title span {
    color: var(--light-blue) !important; /* Light blue accent */
    text-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted) !important; /* Light gray for subtitle */
    margin-bottom: 50px;
    font-size: 1.1rem;
    font-weight: 400;
}

.bg-light {
    background-color: #334155 !important; /* Darker than main */
}

.bg-dark {
    background-color: #0f172a !important; /* Even darker */
    color: var(--text-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-blue);
    border: 2px solid var(--light-blue);
}

.btn-secondary:hover {
    background-color: var(--light-blue);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0f172a !important; /* Dark navbar */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    padding: 18px 0;
    border-bottom: 2px solid var(--light-blue);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff !important; /* White text */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--light-blue) !important; /* Light blue icon */
}

.logo span {
    color: var(--light-blue) !important; /* Light blue accent */
    font-weight: 800;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #e2e8f0 !important; /* Light gray text */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-blue) !important; /* Light blue on hover */
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--light-blue);
    border-radius: 2px;
}

.nav-cta {
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff; /* White bars */
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    margin-top: 74px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-blue);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff !important; /* White text */
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--light-blue) !important; /* Light blue highlight */
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(14, 165, 233, 0.2);
    z-index: -1;
    border-radius: 5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted) !important; /* Light gray */
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-element {
    width: 320px;
    height: 320px;
    background: var(--gradient-blue);
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.floating-element::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    border-radius: inherit;
}

.floating-element i {
    font-size: 8rem;
    color: white;
    z-index: 1;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    }
    33% { 
        transform: translateY(-20px) rotate(2deg);
        border-radius: 60% 40% 40% 60% / 40% 50% 50% 60%;
    }
    66% { 
        transform: translateY(10px) rotate(-2deg);
        border-radius: 40% 60% 70% 30% / 60% 40% 40% 60%;
    }
}

/* ===== MAIN CONTENT BACKGROUND ===== */
.main-content {
    background-color: var(--light-color) !important; /* #1e293b */
}

/* ===== THREE COLUMNS LAYOUT ===== */
.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.column {
    display: flex;
    flex-direction: column;
}

/* CARDS - Dark Theme */
.card {
    background: var(--card-bg) !important; /* #334155 */
    border-radius: var(--radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--light-blue);
    border: 1px solid #475569;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--light-blue);
    background: #3c4a63 !important;
}

.card-icon {
    font-size: 2.8rem;
    color: var(--light-blue) !important;
    margin-bottom: 25px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.card-text {
    color: var(--text-muted) !important;
    margin-bottom: 25px;
    line-height: 1.7;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-muted) !important;
}

.skills-list i {
    color: var(--light-blue) !important;
    font-size: 1.1rem;
}

/* ===== PROJECTS GRID VIEW (Like IMG_7914.PNG) ===== */
.projects-grid-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #475569;
    margin-top: 30px;
    max-height: 800px;
    overflow-y: auto;
    padding: 20px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-grid-item {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #475569;
    transition: var(--transition);
    display: flex;
    gap: 25px;
    padding: 20px;
    align-items: flex-start;
    cursor: pointer;
    opacity: 1;
}

.project-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--light-blue);
    background: #253043;
}

.project-grid-image {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #475569;
    position: relative;
}

.project-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-grid-item:hover .project-grid-image img {
    transform: scale(1.05);
}

.project-grid-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-grid-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.project-grid-id {
    background: var(--gradient-blue);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.3);
}

.project-grid-title {
    font-size: 1.6rem;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.project-grid-category {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--light-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.project-grid-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    margin: 10px 0;
}

.project-grid-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-tag-grid {
    background: #334155;
    color: var(--light-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #475569;
    transition: var(--transition);
}

.tech-tag-grid:hover {
    background: var(--light-blue);
    color: white;
    border-color: var(--light-blue);
}

.project-grid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #475569;
}

.project-grid-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-grid-date i {
    color: var(--light-blue);
}

.view-details-btn {
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    gap: 15px;
}

.projects-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--text-muted);
    font-size: 1.1rem;
    gap: 15px;
}

.data-source-info {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
    border-top: 1px solid #475569;
    padding-top: 15px;
}

.data-source-info a {
    color: var(--light-blue);
    text-decoration: none;
    transition: var(--transition);
}

.data-source-info a:hover {
    text-decoration: underline;
}

/* ===== PROJECT MODAL ===== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--light-blue);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #475569;
    background: #1e293b;
}

.modal-header h3 {
    margin: 0;
    color: #ffffff !important;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--light-blue);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.modal-project-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
}

.modal-project-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.modal-project-meta {
    flex: 1;
}

.modal-meta-item {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.meta-label {
    font-weight: 600;
    color: #ffffff;
    width: 100px;
}

.meta-value {
    color: var(--text-muted);
    background: #475569;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.modal-project-description h4,
.modal-project-technologies h4,
.modal-project-media h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modal-project-description p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

.tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-tag {
    background: #475569;
    color: var(--light-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #64748b;
}

.project-media-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.media-image {
    max-width: 300px;
    max-height: 200px;
    border-radius: var(--radius);
    border: 2px solid #475569;
    transition: var(--transition);
    object-fit: cover;
}

.media-image:hover {
    transform: scale(1.02);
    border-color: var(--light-blue);
}

.media-video {
    max-width: 300px;
    border-radius: var(--radius);
    border: 2px solid #475569;
}

/* ===== FOCUS GRID ===== */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--card-bg) !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #475569;
    border-top: 4px solid transparent;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-top-color: var(--light-blue);
}

.service-icon {
    font-size: 3rem;
    color: var(--light-blue) !important;
    margin-bottom: 25px;
}

.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #ffffff !important;
}

.service-item p {
    color: var(--text-muted) !important;
    line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid #475569;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--light-blue);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--light-blue);
    background: rgba(255, 255, 255, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item div {
    flex: 1;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: white !important;
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #475569;
    border-radius: var(--radius);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--card-bg);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

/* ===== STATS SECTION ===== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 25px 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid #475569;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--light-blue);
    transform: translateY(-5px);
    background: #3c4a63;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ===== SKILL METERS ===== */
.skill-meter {
    width: 100%;
    height: 8px;
    background-color: #475569;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-blue);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 20px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: white !important;
}

.cta-button {
    background: white;
    color: var(--light-blue) !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 70px 0 30px;
    border-top: 2px solid var(--light-blue);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white !important;
}

.footer-logo span {
    color: var(--light-blue);
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    border: 1px solid #475569;
}

.social-icon:hover {
    background-color: var(--light-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
    border-color: var(--light-blue);
}

.server-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px 25px;
    border-radius: 30px;
    display: inline-flex;
    border: 1px solid #475569;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background-color: var(--success-color);
    border-radius: 50%;
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.8); 
        opacity: 0; 
    }
    100% { 
        transform: scale(1); 
        opacity: 0; 
    }
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    margin-top: 30px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

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

.fa-spinner {
    animation: spin 1s linear infinite;
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FLOATING DOTS ANIMATION ===== */
@keyframes float-dot {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    25% { transform: translate(10px, -15px) scale(1.1); opacity: 0.9; }
    50% { transform: translate(-5px, -25px) scale(1.05); opacity: 0.8; }
    75% { transform: translate(-10px, -10px) scale(0.95); opacity: 0.6; }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .floating-element {
        width: 280px;
        height: 280px;
    }
    
    .floating-element i {
        font-size: 6rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Project grid responsive */
    .project-grid-item {
        flex-direction: column;
    }
    
    .project-grid-image {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 74px;
        left: -100%;
        flex-direction: column;
        background-color: #0f172a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        gap: 0;
        z-index: 999;
        border-top: 2px solid var(--light-blue);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 15px 0;
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid #1e293b;
    }
    
    .nav-cta {
        margin: 15px 0 0;
        padding: 15px 0;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .three-columns {
        grid-template-columns: 1fr;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 85vh;
    }
    
    .modal-project-info {
        flex-direction: column;
        text-align: center;
    }
    
    .project-grid-image {
        height: 200px;
    }
    
    .project-grid-title {
        font-size: 1.4rem;
    }
    
    .project-grid-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .view-details-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .floating-element {
        width: 220px;
        height: 220px;
    }
    
    .floating-element i {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .footer {
        padding: 50px 0 25px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid-container {
        max-height: 500px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .footer-social,
    .back-to-top,
    .contact-form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: #000 !important;
    }
    
    .card,
    .project-grid-item,
    .service-item {
        background: white !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
    }
}

/* Add to style.css - Reload button styles */
#reloadProjectsBtn {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

#reloadProjectsBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

#reloadProjectsBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.data-source-info {
    font-size: 0.8rem;
    margin-top: 5px;
}

.projects-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--text-muted);
    font-size: 1.1rem;
    gap: 15px;
}

.projects-loading button {
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--light-blue);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.projects-loading button:hover {
    background: var(--sky-blue);
    transform: translateY(-2px);
}
