/* Base Styles */
:root {
    --primary-color: #6e42ff;
    --secondary-color: #00d9ff;
    --dark-bg: #0a192f;
    --darker-bg: #060f1e;
    --light-text: #e6f1ff;
    --gray-text: #8892b0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-active {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: transparent;
    border: 1px solid var(--secondary-color);
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-follower-active {
    width: 50px;
    height: 50px;
    border-color: var(--secondary-color);
    background-color: rgba(0, 217, 255, 0.1);
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(10, 25, 47, 0.8);
}

header.scrolled {
    padding: 15px 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(6, 15, 30, 0.95);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.2;
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 40px;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.primary-btn:hover::before {
    left: 100%;
}

.secondary-btn {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--secondary-color);
    position: relative;
    z-index: 1;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.2;
}

.secondary-btn:hover::before {
    width: 100%;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--primary-color);
    z-index: -1;
    animation: glitch-animation 0.3s infinite;
}

.glitch::after {
    color: var(--secondary-color);
    z-index: -2;
    animation: glitch-animation2 0.3s infinite;
}

@keyframes glitch-animation {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glitch-animation2 {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(3px, -3px);
    }
    40% {
        transform: translate(3px, 3px);
    }
    60% {
        transform: translate(-3px, -3px);
    }
    80% {
        transform: translate(-3px, 3px);
    }
    100% {
        transform: translate(0);
    }
}

/* 3D Cube */
.hero-image {
    position: relative;
    width: 40%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-wrapper {
    perspective: 1000px;
    width: 300px;
    height: 300px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(110, 66, 255, 0.1);
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(110, 66, 255, 0.5);
    backdrop-filter: blur(5px);
}

.front {
    transform: translateZ(150px);
}

.back {
    transform: rotateY(180deg) translateZ(150px);
}

.right {
    transform: rotateY(90deg) translateZ(150px);
}

.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.top {
    transform: rotateX(90deg) translateZ(150px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

@keyframes rotate {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Services Section */
.services {
    background-color: var(--darker-bg);
    padding: 120px 50px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Changed to always show 4 columns */
    gap: 20px; /* Reduced gap between cards */
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.6), rgba(6, 15, 30, 0.9));
    border-radius: 15px;
    padding: 30px 20px; /* Reduced padding */
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 66, 255, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(110, 66, 255, 0.15), rgba(0, 217, 255, 0.15));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-icon {
    width: 60px; /* Reduced from 80px */
    height: 60px; /* Reduced from 80px */
    margin: 0 auto 20px; /* Reduced bottom margin */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    font-size: 1.5rem; /* Reduced from 2rem */
    color: white;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    z-index: -1;
    animation: pulse 2s infinite;
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

.service-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(110, 66, 255, 0.95), rgba(0, 217, 255, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    padding: 30px;
    border-radius: 15px;
}

.service-card:hover .service-hover {
    opacity: 1;
    transform: translateY(0);
}

.service-hover ul {
    margin-bottom: 20px;
    text-align: left;
}

.service-hover ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-hover ul li::before {
    content: '→';
    position: absolute;
    left: 0;
}

.learn-more {
    color: white;
    font-weight: 600;
    border-bottom: 2px solid white;
    padding-bottom: 2px;
    transition: var(--transition);
}

.learn-more:hover {
    padding-bottom: 5px;
}

/* About Section */
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 50px;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-text p {
    color: var(--gray-text);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tech-orbit {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px dashed rgba(110, 66, 255, 0.3);
    animation: orbit-rotate 20s linear infinite;
}

.tech-planet {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.tech-planet.html {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #e34c26;
}

.tech-planet.css {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: #264de4;
}

.tech-planet.js {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #f7df1e;
}

.tech-planet.react {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #61dafb;
}

.tech-planet.node {
    top: 25%;
    left: 25%;
    color: #68a063;
}

.tech-planet.python {
    bottom: 25%;
    right: 25%;
    color: #306998;
}

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

/* Projects Section */
.projects {
    background-color: var(--darker-bg);
    padding: 120px 50px;
}

.project-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--gray-text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 30px;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.6), rgba(6, 15, 30, 0.9));
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(110, 66, 255, 0.1);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.project-img {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(110, 66, 255, 0.1);
}

.project-img img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-img a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.project-img a:hover img {
    transform: scale(1.05);
}

.project-img a::after {
    content: "View Project";
    position: absolute;
    background: linear-gradient(145deg, rgba(110, 66, 255, 0.9), rgba(0, 217, 255, 0.9));
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.project-img a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--gray-text);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tags span {
    background: rgba(110, 66, 255, 0.2);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-link {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.project-link:hover::after {
    width: 100%;
}

/* Contact Section */
.contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 50px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

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

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray-text);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(110, 66, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(110, 66, 255, 0.3);
}

.social-link:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-5px);
}

.contact-form {
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.6), rgba(6, 15, 30, 0.9));
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(110, 66, 255, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 0;
    color: var(--light-text);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gray-text);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.form-group textarea {
    min-height: 120px;
    resize: none;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    gap: 10px;
}

.submit-btn i {
    transition: var(--transition);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 80px 50px 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(110, 66, 255, 0.2);
}

.footer-logo p {
    color: var(--gray-text);
    margin-top: 15px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

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

.footer-column ul li a {
    color: var(--gray-text);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* 404 Error Page Styles */
.error-page {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.error-page h1 {
    font-size: 8rem;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(110, 66, 255, 0.4);
}

.error-page h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.error-page p {
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Cookie Policy Table Styles */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(10, 25, 47, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(110, 66, 255, 0.2);
}

.cookie-table th {
    background-color: rgba(110, 66, 255, 0.2);
    color: var(--secondary-color);
    font-weight: 600;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:hover {
    background-color: rgba(110, 66, 255, 0.1);
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: rgba(10, 25, 47, 0.95);
    border: 1px solid rgba(110, 66, 255, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-consent.active {
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cookie-consent-header i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.cookie-consent h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.3rem;
}

.cookie-consent p {
    margin: 0 0 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
}

.cookie-btn-accept-all {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cookie-btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 66, 255, 0.4);
}

.cookie-btn-essential {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-essential:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.cookie-btn-customize {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.cookie-btn-customize:hover {
    background-color: rgba(110, 66, 255, 0.1);
}

.cookie-preferences {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-preferences.active {
    display: block;
}

.cookie-preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-preference-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-preference-info {
    flex: 1;
}

.cookie-preference-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: white;
}

.cookie-preference-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
    background-color: var(--secondary-color);
}

input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

/* Responsive styles for cookie consent */
@media (max-width: 768px) {
    .cookie-consent {
        width: 90%;
        max-width: 90%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 10px;
    }
    
    .cookie-consent.active {
        animation: fadeInMobile 0.5s forwards;
    }
    
    @keyframes fadeInMobile {
        from {
            opacity: 0;
            transform: translate(-50%, -40%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }
    
    .cookie-consent-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
/* Responsive Styles */
@media (max-width: 1200px) {
    .hero {
        padding: 0 50px;
    }
    
    .about {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text {
        margin-bottom: 50px;
    }
    
    .stats-container {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        height: auto; /* Change from fixed height to auto */
        min-height: 100vh; /* Ensure it still takes up full viewport height */
        padding-bottom: 50px; /* Add padding at bottom */
    }
    
    .hero-content {
        margin-bottom: 50px;
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Override the max-width */
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
        height: 300px; /* Reduce height on smaller screens */
    }
    
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-img {
        height: 180px;
        padding: 25px;
    }
    
    .project-img img {
        max-height: 120px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 30px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--darker-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    section {
        padding: 80px 30px;
    }
    
    .hero {
        padding: 80px 30px 50px; /* Adjust padding for mobile */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-container,
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .project-filter {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 70px 20px 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .subtitle {
        margin-bottom: 25px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 10px 20px;
    }
    
    .cube-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .project-img {
        height: 160px;
        padding: 20px;
    }
    
    .project-img img {
        max-height: 110px;
    }
    
    /* Fix the cube faces for smaller screens */
    .cube-face.front { transform: translateZ(100px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(100px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(100px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(100px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }
    
    /* Responsive styles for legal pages */
    .legal-page {
        padding: 100px 20px 60px;
    }
    
    .legal-content {
        padding: 30px 20px;
    }
    
    .legal-page h1 {
        font-size: 2.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.6rem;
    }
    
    .legal-content h3 {
        font-size: 1.3rem;
    }
}