:root {
    --primary-color: #0d6efd; /* Vibrant blue from logo */
    --primary-dark: #0a58ca;
    --secondary-color: #0f2557; /* Dark blue from text */
    --text-color: #495057;
    --heading-color: #212529;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(13, 110, 253, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 37, 87, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.text-primary {
    color: var(--primary-color);
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.btn {
    color: var(--bg-white);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 37, 87, 0.7); /* Dark overlay */
    z-index: 1;
}

.hero-container-centered {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--bg-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.text-highlight {
    background: linear-gradient(90deg, #4da3ff, #00f2fe, #4da3ff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-text 3s linear infinite;
}

@keyframes gradient-text {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-outline-light:hover {
    background-color: var(--bg-white);
    color: var(--secondary-color);
}

/* Stats / Highlights Bar */
.stats-bar {
    background-color: var(--bg-white);
    padding: 40px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item .icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.stat-item:hover .icon-box {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: rotate(10deg);
}

.stat-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.cta-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary-color);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cta-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.cta-text h2 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

/* Common Page Styles */
.page-header {
    background: linear-gradient(135deg, #0f2557 0%, #0a0e17 100%);
    color: var(--bg-white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 50%; height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.15) 0%, transparent 70%);
    transform: rotate(30deg);
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -10%;
    width: 50%; height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
    transform: rotate(-30deg);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.2rem;
    color: #aeb2b7;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.15);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info-card, .contact-form-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.image-placeholder {
    background-color: var(--bg-white);
    height: 400px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image-placeholder {
    height: 250px;
    background-color: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #adb5bd;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info p {
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #aeb2b7;
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make logo white if it's dark */
}

.footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #aeb2b7;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .cta-container, .contact-grid, .about-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-mockup {
        height: 350px;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cta-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: block;
    }
    
    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Page Transition */
body {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
body.fade-in {
    opacity: 1;
}

/* Premium Monitor Showcase CSS */
.recent-work-section {
    padding: 100px 0;
    background: #0a0e17; /* Deep premium dark background */
    position: relative;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.glow-orb.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(13, 110, 253, 0.3);
    top: -100px;
    left: -100px;
}

.glow-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 242, 254, 0.2);
    bottom: -150px;
    right: -100px;
}

.portfolio-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px 40px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.showcase-item {
    text-align: center;
    position: relative;
}

.monitor-mockup {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    perspective: 1000px;
}

.showcase-item:hover .monitor-mockup {
    transform: translateY(-10px) scale(1.03);
}

.monitor-inner {
    background: #e2e4e9; /* Silver aluminum finish */
    border-radius: 15px 15px 0 0;
    padding: 15px 15px 35px 15px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.8);
}

.monitor-webcam {
    width: 6px;
    height: 6px;
    background: #111;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

.monitor-logo {
    width: 12px;
    height: 12px;
    background: #999;
    border-radius: 50%;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.monitor-screen {
    background: #000;
    height: 250px;
    overflow: hidden;
    position: relative;
    border: 2px solid #000;
    border-radius: 2px;
}

.screen-glare {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 10;
    animation: glare 6s infinite;
}

@keyframes glare {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.monitor-screen img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 8s ease-in-out; 
    object-position: top;
}

/* Scroll to bottom on hover */
.monitor-mockup:hover .monitor-screen img {
    transform: translateY(calc(-100% + 250px)); 
}

/* Stand */
.monitor-stand {
    width: 12%;
    height: 35px;
    margin: 0 auto;
    background: linear-gradient(to right, #b4b6bb, #d1d3d8, #b4b6bb);
    position: relative;
    z-index: 1;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.monitor-base {
    width: 35%;
    height: 8px;
    margin: 0 auto;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(to right, #a1a3a8, #d1d3d8, #a1a3a8);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

/* Project Info Glass Card */
.project-info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: -30px auto 0;
    width: 85%;
    position: relative;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.showcase-item:hover .project-info-card {
    transform: translateY(5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-category {
    display: inline-block;
    background: linear-gradient(45deg, #0d6efd, #00f2fe);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.view-project-link {
    color: #00f2fe;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.view-project-link:hover {
    color: #fff;
    gap: 12px;
}

/* Glowing Button */
.btn-glow {
    background: linear-gradient(45deg, #0d6efd, #00f2fe);
    border: none;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.7);
    transform: translateY(-3px);
}

/* Modern Image Wrapper */
.modern-img-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 60px;
    border-radius: 20px;
}

.modern-img-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(0, 242, 254, 0.4));
    border-radius: 24px;
    z-index: -1;
    transform: rotate(-2deg);
    transition: var(--transition);
}

.modern-img-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--primary-color);
    border-radius: 24px;
    z-index: -2;
    transform: rotate(2deg);
    transition: var(--transition);
}

.modern-img-wrapper:hover::before {
    transform: rotate(0deg);
    top: -10px; left: -10px; right: 10px; bottom: 10px;
}

.modern-img-wrapper:hover::after {
    transform: rotate(0deg);
    top: 10px; left: 10px; right: -10px; bottom: -10px;
}

.modern-img-wrapper img {
    border-radius: 20px;
    width: 100%;
    display: block;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: var(--transition);
    object-fit: cover;
}

.modern-img-wrapper:hover img {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Modern Contact Info */
.modern-contact-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(13, 110, 253, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
}
.contact-item:hover {
    transform: translateX(10px);
    background: rgba(13, 110, 253, 0.1);
}
.icon-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #00f2fe);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
}
.contact-text {
    display: flex;
    flex-direction: column;
}
.contact-text span {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.contact-text strong {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor.expand {
    width: 40px;
    height: 40px;
    background-color: rgba(13, 110, 253, 0.2);
    border-width: 1px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none; /* Hide on mobile */
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
