@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

@keyframes shimmer {
    to {
        background-position: -200% center;
    }
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 8px; /* Changed to rounded corners */
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.15s ease-out;
}

/* --- Base Styles & Variables --- */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-secondary: #666666;
    --primary-color: #f56565; /* Orange accent */
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(#f0f0f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h3 {
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px; /* Added letter spacing */
    background: linear-gradient(45deg, #ff6b6b, #f56565, #ff8e53); /* Gradient text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(245, 101, 101, 0.5); /* Subtle glow */
}

h2 {
    font-size: 2.5rem;
    text-align: center; /* Centered */
    margin-bottom: 1rem;
    letter-spacing: 1px; /* Added letter spacing */
    background: linear-gradient(45deg, #ff6b6b, #f56565, #ff8e53); /* Gradient text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Ensure text color is transparent */
}

p.subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* --- Header --- */
header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li .cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav ul li .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 50, 86, 0.4); /* Changed to blue glow */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-image {
    height: 50px; /* You can adjust this value as needed */
}

.logo-icon {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    margin-right: 0.5rem;
    font-weight: 900;
}

/* --- Hero Section --- */
@keyframes heroOverlayPulse {
    0% { background: rgba(0, 0, 0, 0.6); }
    50% { background: rgba(0, 0, 0, 0.7); }
    100% { background: rgba(0, 0, 0, 0.6); }
}

.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    animation: heroOverlayPulse 8s infinite alternate ease-in-out; /* Subtle animation */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.future-ready-tag {
    display: inline-block;
    border: 1px solid white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.4); /* Enhanced shadow */
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 50, 86, 0.6); /* Changed to blue glow */
}

.hero-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    border-radius: 12px;
    padding: 1.5rem;
    width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Lift effect */
}

.hero-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero-card p {
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* --- Sections --- */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Services Section --- */
#services {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: #0a0a14; /* Deep, dark blue/black base */
    background-image: radial-gradient(circle at 50% 0%, rgba(2, 50, 86, 0.9) 0%, rgba(2, 50, 86, 0) 70%); /* Brighter, more prominent glow */
    background-size: 100% 200%;
    background-position: 50% 50%; /* Glow effect is now permanent */
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #023256; /* Use the darker blue for the border */
    text-align: center;
    box-shadow: 0 10px 30px rgba(2, 50, 86, 0.5); /* Shadow is now permanent */
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-5px); /* Add a subtle lift on hover */
    box-shadow: 0 15px 35px rgba(2, 50, 86, 0.6); /* Slightly enhance the shadow */
}

.service-item::before {
   display: none;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-item ul {
    padding-left: 0;
    text-align: left;
    opacity: 1; /* Text is now fully visible by default */
    transition: opacity 0.4s ease;
}

.service-item:hover ul {
    opacity: 1;
}

.service-item li {
    margin-bottom: 0.5rem;
    color: #cccccc; /* A slightly dimmer white for the list items */
}

/* --- Why Choose Us Section --- */
#features {
    padding: 6rem 0;
    background-color: #0a0a14;
    background-image: url('img/tech-pattern.svg');
    animation: bg-pan 20s linear infinite;
    position: relative;
}

@keyframes bg-pan {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item {
    background-color: #0a0a14; /* Deep, dark blue/black base */
    background-image: radial-gradient(circle at 50% 0%, rgba(2, 50, 86, 0.9) 0%, rgba(2, 50, 86, 0) 70%); /* Brighter, more prominent glow */
    background-size: 100% 200%;
    background-position: 50% 100%;
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #023256; /* Use the darker blue for the border */
    text-align: center;
    transition: background-position 0.8s ease-out, transform 0.4s ease-out, box-shadow 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-5px); /* Add a subtle lift on hover */
    box-shadow: 0 15px 35px rgba(2, 50, 86, 0.6); /* Slightly enhance the shadow */
}

.feature-icon {
    background-color: transparent;
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 1.2rem;
    color: #ffffff;
}

.feature-item p {
    color: #cccccc;
}

/* --- Portfolio Section --- */
#portfolio {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: #0a0a14; /* Deep, dark blue/black base */
    background-image: radial-gradient(circle at 50% 0%, rgba(2, 50, 86, 0.9) 0%, rgba(2, 50, 86, 0) 70%); /* Brighter, more prominent glow */
    background-size: 100% 200%;
    background-position: 50% 50%; /* Glow effect is now permanent */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #023256;
    box-shadow: 0 10px 30px rgba(2, 50, 86, 0.5); /* Shadow is now permanent */
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.portfolio-item:hover {
    transform: translateY(-5px); /* Add a subtle lift on hover */
    box-shadow: 0 15px 35px rgba(2, 50, 86, 0.6); /* Slightly enhance the shadow */
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    opacity: 0.7; /* Soften the image to let the glow show through */
    transition: opacity 0.3s ease;
}

.portfolio-item:hover img {
    opacity: 1;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.portfolio-content p {
    color: #cccccc;
}

/* --- Staggered Animations --- */
.service-item, .feature-item, .portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.visible .service-item,
.visible .feature-item,
.visible .portfolio-item {
    opacity: 1;
    transform: translateY(0);
}

.visible .grid-item:nth-child(1) { transition-delay: 0.1s; }
.visible .grid-item:nth-child(2) { transition-delay: 0.2s; }
.visible .grid-item:nth-child(3) { transition-delay: 0.3s; }
.visible .grid-item:nth-child(4) { transition-delay: 0.4s; }
.visible .grid-item:nth-child(5) { transition-delay: 0.5s; }
.visible .grid-item:nth-child(6) { transition-delay: 0.6s; }

/* --- About Section --- */
#company {
    padding: 6rem 0;
    background-color: #0a0a14;
    background-image: url('img/tech-pattern.svg');
    animation: bg-pan 20s linear infinite;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-mission h3 {
    color: #ffffff;
}

.about-mission p {
    color: #cccccc;
}

.about-mission ul {
    padding-left: 0;
    list-style: none;
}

.about-mission li {
    margin-bottom: 0.8rem;
    color: #cccccc;
    padding-left: 2rem;
    position: relative;
}

.about-mission li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(245, 101, 101, 0.5);
}

.about-expertise {
    background-color: #0a0a14; /* Deep, dark blue/black base */
    background-image: radial-gradient(circle at 50% 0%, rgba(2, 50, 86, 0.9) 0%, rgba(2, 50, 86, 0) 70%); /* Brighter, more prominent glow */
    background-size: 100% 200%;
    background-position: 50% 50%; /* Glow effect is now permanent for readability */
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #023256; /* Use the darker blue for the border */
    box-shadow: 0 10px 30px rgba(2, 50, 86, 0.5); /* Shadow is now permanent */
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out; /* Keep transition for hover */
}

.about-expertise:hover {
    transform: translateY(-5px); /* Add a subtle lift on hover */
    box-shadow: 0 15px 35px rgba(2, 50, 86, 0.6); /* Slightly enhance the shadow */
}

.expertise-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.expertise-item span:last-child {
    background-color: #fde2e2;
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Contact Section --- */
#contact {
    padding: 6rem 0;
    background-color: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3rem;
}

.contact-info, .contact-form {
    width: 100%;
    max-width: 700px;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form .full-width {
    grid-column: 1 / -1;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.contact-form button {
    width: auto;
    justify-self: start;
    border: none; /* Removed the border */
}

/* --- Message Styles --- */
p.success, p.error {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

p.success {
    background-color: #e6ffe6; /* Light green */
    color: #006600; /* Dark green */
    border: 1px solid #00cc00;
}

p.error {
    background-color: #ffe6e6; /* Light red */
    color: #cc0000; /* Dark red */
    border: 1px solid #ff0000;
}

/* --- Footer --- */
footer {
    background-color: #0a0a14;
    background-image: url('img/tech-pattern.svg');
    background-size: 100px 100px; /* Adjust as needed for subtlety */
    color: #a0a0a0;
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-grid h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-grid ul {
    padding-left: 0;
}

.footer-grid li {
    margin-bottom: 0.5rem;
}

.footer-grid a {
    color: #a0a0a0;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.9rem;
}

.footer-logo {
    height: 40px; /* Adjust as needed for footer logo */
    margin-bottom: 1rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

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

    .hero-card {
        width: 90%;
    }

    .service-grid, .feature-grid, .portfolio-grid, .about-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 2rem;
    }

    .contact-form form {
        grid-template-columns: 1fr;
    }

    .contact-form input, .contact-form textarea, .contact-form button {
        width: 100%;
        justify-self: stretch;
    }

    .contact-info, .contact-form {
        max-width: 100%;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }
}
