/* Base Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --text-color: #000000;
    --bg-color: #ffffff;
    --card-bg: #f5f5f5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-height: 80px;
}

[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #cccccc;
    --text-color: #ffffff;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    margin-top: 10px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 15px 0;
    height: var(--header-height);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

/* Header Cube Styles */
.header-cube-container {
    width: 25px;
    height: 25px;
    perspective: 400px;
    margin-right: 15px;
}

.header-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: header-rotate 10s infinite linear;
}

@keyframes header-rotate {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.header-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--card-bg);
    box-shadow: inset 0 0 10px var(--shadow-color);
    opacity: 0.95;
}

.header-face img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.header-front {
    transform: translateZ(12.5px);
}

.header-back {
    transform: rotateY(180deg) translateZ(12.5px);
}

.header-right {
    transform: rotateY(90deg) translateZ(12.5px);
}

.header-left {
    transform: rotateY(-90deg) translateZ(12.5px);
}

.header-top {
    transform: rotateX(90deg) translateZ(12.5px);
}

.header-bottom {
    transform: rotateX(-90deg) translateZ(12.5px);
}

nav {
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links a {
    position: relative;
    display: inline-block;
    height: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.nav-links {
    margin-right: 20px;
    display: flex;
    gap: 32px;
    list-style: none;
}



.text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 20px
}

.text-line {
    display: flex;
}

.letter {
    display: inline-block;
    transform: translateY(0);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}


.nav-links li a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links li a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--accent-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-color);
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.theme-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
    position: relative;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 20px) 0 80px;
    background-color: var(--bg-color);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.cube-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

.cube {
    position: relative;
    width: 220px;
    height: 220px;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
    margin-bottom: 20px;
    cursor: grab;
    transition: transform 0.1s ease-out;
    z-index: 10;
}

.cube:hover {
    animation-play-state: paused;
    cursor: grabbing;
    transform: scale(1.05);
}

.cube:hover .face {
    border-color: var(--accent-color);
    box-shadow: inset 0 0 40px var(--shadow-color), 0 0 30px rgba(0, 0, 0, 0.2);
}

.cube:hover .face img {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.cube.manual-rotate {
    animation: none;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    box-shadow: inset 0 0 30px var(--shadow-color), 0 0 20px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.face img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.front {
    transform: translateZ(110px);
}

.back {
    transform: rotateY(180deg) translateZ(110px);
}

.right {
    transform: rotateY(90deg) translateZ(110px);
}

.left {
    transform: rotateY(-90deg) translateZ(110px);
}

.top {
    transform: rotateX(90deg) translateZ(110px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(110px);
}

.cube-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 20;
}

/* Cube Reflection */
.cube-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    opacity: 0.2;
    filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

.cube-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 20px;
    transform: translate(-50%, 100%);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cube-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cube-btn:hover {
    transform: scale(1.1);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--card-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Training Section */
.training {
    padding: 100px 0;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.training-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.training-card:hover {
    transform: translateY(-10px);
}

.training-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.training-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Updated About Section Styles */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    opacity: 0.03;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 300;
    margin-top: -15px;
    letter-spacing: 1px;
}

.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-text {
    flex: 2;
}

.lead-text {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-color);
    font-weight: 400;
    position: relative;
    padding-left: 30px;
}

.lead-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.mission-card,
.vision-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.mission-card h4,
.vision-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.mission-card p,
.vision-card p {
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.9;
}

.expertise-section {
    margin-top: 40px;
}

.expertise-section h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.expertise-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    border-radius: 2px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
    border-color: var(--primary-color);
}

.expertise-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

.expertise-item span {
    font-weight: 500;
    color: var(--text-color);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cube-container {
    position: relative;
    width: 200px;
    height: 200px;
    perspective: 1000px;
}

.floating-cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating-cube .face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.95;
    box-shadow: inset 0 0 30px var(--shadow-color), 0 0 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.floating-cube .face img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.cube-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

/* Projects Section Updates */
.projects-header {
    text-align: center;
    margin-bottom: 50px;
}

.projects-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 10px;
    font-weight: 300;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px var(--shadow-color);
}

.project-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--secondary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.project-logo {
    padding: 40px;
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-img {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
    border-radius: 50%;
    padding: 15px;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05) rotate(5deg);
}

.project-info {
    padding: 35px;
}

.project-info h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.project-category {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.project-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--card-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.project-link:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.stats-section {
    margin-top: 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card {
    text-align: center;
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: 15px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-info h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-form h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer Cube Styles */
.footer-cube-container {
    width: 30px;
    height: 30px;
    perspective: 600px;
    margin-right: 15px;
    position: relative;
    transform-style: preserve-3d;
}

.footer-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: footer-rotate 12s infinite linear;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    transform-origin: center center;
}

.footer-cube:hover {
    animation-play-state: paused;
    transform: scale(1.2) rotateX(20deg) rotateY(20deg);
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.6));
}

@keyframes footer-rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(90deg) rotateY(90deg) rotateZ(45deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg);
    }
    75% {
        transform: rotateX(270deg) rotateY(270deg) rotateZ(180deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

.footer-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--bg-color) 100%);
    box-shadow: 
        inset 0 0 15px var(--shadow-color), 
        0 0 10px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
}

.footer-cube:hover .footer-face {
    border-color: var(--accent-color);
    box-shadow: 
        inset 0 0 25px var(--shadow-color), 
        0 0 20px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, var(--bg-color) 0%, var(--card-bg) 100%);
}

.footer-face img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-cube:hover .footer-face img {
    transform: scale(1.15);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.6));
}

.footer-front {
    transform: translateZ(15px);
}

.footer-back {
    transform: rotateY(180deg) translateZ(15px);
}

.footer-right {
    transform: rotateY(90deg) translateZ(15px);
}

.footer-left {
    transform: rotateY(-90deg) translateZ(15px);
}

.footer-top {
    transform: rotateX(90deg) translateZ(15px);
}

.footer-bottom {
    transform: rotateX(-90deg) translateZ(15px);
}

/* Enhanced 3D Cube Glow Effect */
.footer-cube-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45px;
    height: 45px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
    filter: blur(2px);
}

.footer-cube-container:hover::before {
    opacity: 0.3;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.15;
    }
}

/* Cube Shadow for Depth */
.footer-cube-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 25px;
    height: 6px;
    transform: translateX(-50%) scaleY(0.3);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    z-index: -2;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo h3 {
    font-size: 1.8rem;
}

.footer-links h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Tools Page Styles */
.tools-hero {
    min-height: 60vh;
    padding: calc(var(--header-height) + 20px) 0 40px;
}

.tools-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tool-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: rotate(15deg) scale(1.1);
}

.tool-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tool-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.tools-cta {
    padding: 80px 0;
    text-align: center;
}

.tools-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tools-cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.small-cube-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.small-cube {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: rotate 15s infinite linear;
}

.small-cube .face {
    background-color: var(--bg-color);
    border: 1px solid var(--primary-color);
    opacity: 0.8;
}

/* Animations */
@keyframes rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(90deg) rotateY(180deg) rotateZ(45deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(360deg) rotateZ(90deg);
    }
    75% {
        transform: rotateX(270deg) rotateY(540deg) rotateZ(135deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(720deg) rotateZ(180deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(15deg) rotateY(15deg);
    }

    50% {
        transform: translateY(-20px) rotateX(25deg) rotateY(25deg);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .lead-text::before {
        display: none;
    }

    .lead-text {
        padding-left: 0;
    }

    .expertise-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .floating-cube-container {
        width: 180px;
        height: 180px;
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 40px;
        transition: all 0.5s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-container.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        margin-right: 0;
        gap: 30px;
    }

    .nav-links a {
        height: 32px;
    }

    .nav-links li a {
        font-size: 1.2rem;
        padding: 10px 0;
    }

    .nav-actions {
        flex-direction: column;
        gap: 30px;
    }

    .theme-switch-wrapper {
        margin: 0;
    }

    .hero {
        padding-top: var(--header-height);
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-logo {
        min-height: 120px;
        padding: 20px;
    }

    .project-img {
        max-width: 100px;
        max-height: 100px;
    }

    .project-info {
        padding: 20px;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 60px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav-links li a {
        font-size: 1.1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .cube {
        width: 180px;
        height: 180px;
    }

    .front {
        transform: translateZ(90px);
    }

    .back {
        transform: rotateY(180deg) translateZ(90px);
    }

    .right {
        transform: rotateY(90deg) translateZ(90px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(90px);
    }

    .top {
        transform: rotateX(90deg) translateZ(90px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(90px);
    }

    .cube-container::after {
        width: 180px;
        height: 180px;
    }

    .cube-container::before {
        width: 200px;
    }

    .small-cube {
        width: 120px;
        height: 120px;
    }

    .small-cube .front {
        transform: translateZ(60px);
    }

    .small-cube .back {
        transform: rotateY(180deg) translateZ(60px);
    }

    .small-cube .right {
        transform: rotateY(90deg) translateZ(60px);
    }

    .small-cube .left {
        transform: rotateY(-90deg) translateZ(60px);
    }

    .small-cube .top {
        transform: rotateX(90deg) translateZ(60px);
    }

    .small-cube .bottom {
        transform: rotateX(-90deg) translateZ(60px);
    }

    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }

    .about {
        padding: 60px 0;
    }

    .about-content {
        padding: 25px;
    }

    .lead-text {
        font-size: 1.2rem;
    }

    .projects-grid {
        gap: 30px;
    }

    .project-logo {
        padding: 30px;
        min-height: 150px;
    }

    .project-img {
        max-width: 120px;
        max-height: 120px;
    }

    .project-info {
        padding: 25px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 20px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .tools-hero {
        min-height: 50vh;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .tools-cta h2 {
        font-size: 2rem;
    }

    .tools-cta p {
        font-size: 1rem;
    }
}