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

:root {
    --primary-color: #ff6b35;
    --secondary-color: #ffffff;
    --background-color: #000000;
    --surface-color: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent-color: #ff8c42;
    --gradient-primary: linear-gradient(135deg, #ff6b35, #ff8c42);
    --gradient-secondary: linear-gradient(135deg, #ffffff, #f0f0f0);
    --shadow-primary: 0 10px 30px rgba(255, 107, 53, 0.3);
    --shadow-secondary: 0 5px 15px rgba(255, 255, 255, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --primary-color: #000000;
    --secondary-color: #000000;
    --background-color: #fafbfc;
    --surface-color: #f5f6f7;
    --text-primary: #000000;
    --text-secondary: #4a4a4a;
    --accent-color: #333333;
    --gradient-primary: linear-gradient(135deg, #000000, #333333);
    --gradient-secondary: linear-gradient(135deg, #000000, #333333);
    --shadow-primary: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-secondary: 0 5px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .navbar {
    background: rgba(250, 251, 252, 0.95) !important;
    border-bottom: 1px solid #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(250, 251, 252, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .nav-menu {
    background-color: rgba(250, 251, 252, 0.95);
}

[data-theme="light"] .nav-link {
    color: #000000 !important;
    background: transparent !important;
}

[data-theme="light"] .nav-link:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
}

[data-theme="light"] .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,0,0,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

[data-theme="light"] .hero::after {
    background: radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
}

[data-theme="light"] .project-overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid #000000;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

[data-theme="light"] .skill-bar {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .timeline::before {
    background: #000000;
}

[data-theme="light"] .timeline-marker {
    border: 4px solid var(--background-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .skill-category,
[data-theme="light"] .project-card,
[data-theme="light"] .achievement-card,
[data-theme="light"] .timeline-content,
[data-theme="light"] .contact-form {
    border: 1px solid #000000;
}

[data-theme="light"] .detail-item,
[data-theme="light"] .contact-item {
    border-left: 4px solid #000000;
}

[data-theme="light"] .detail-item i,
[data-theme="light"] .achievement-card i,
[data-theme="light"] .skill-category h3,
[data-theme="light"] .timeline-header h3,
[data-theme="light"] .timeline-duration,
[data-theme="light"] .timeline-description li::before,
[data-theme="light"] .reference i,
[data-theme="light"] .floating-element,
[data-theme="light"] .particle {
    color: #000000 !important;
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #000000, #333333);
    color: #ffffff;
}

[data-theme="light"] .btn-secondary {
    border: 2px solid #000000;
    color: #000000;
}

[data-theme="light"] .btn-secondary:hover {
    background: #000000;
    color: #ffffff;
}

[data-theme="light"] .social-link {
    background: linear-gradient(135deg, #000000, #333333);
}

[data-theme="light"] .project-tech span {
    background: #000000;
    color: #ffffff;
}

[data-theme="light"] .cube-face {
    background: linear-gradient(45deg, #000000, #333333);
}

[data-theme="light"] .hamburger span {
    background: #000000;
}

[data-theme="light"] .navbar {
    border-bottom: 1px solid #000000 !important;
}

[data-theme="light"] .brand-text {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .nav-link:hover {
    background: transparent !important;
}

[data-theme="light"] .hero {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 0%, transparent 70%) !important;
}

[data-theme="light"] .hero::after {
    background: radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.01) 0%, transparent 50%) !important;
}

[data-theme="light"] .title-line {
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .title-line {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3)) !important;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .floating-element {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3)) !important;
}

[data-theme="light"] .cube-face {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .detail-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .achievement-card:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .skill-category,
[data-theme="light"] .project-card,
[data-theme="light"] .achievement-card,
[data-theme="light"] .timeline-content,
[data-theme="light"] .contact-form {
    border: 1px solid #000000 !important;
}

[data-theme="light"] .project-card::before {
    background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.05), transparent) !important;
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .timeline-marker {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .contact-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    border: 1px solid #000000 !important;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .footer {
    border-top: 1px solid #000000 !important;
}

[data-theme="light"] .nav-link::after {
    background: #000000 !important;
}

@keyframes pulse-light {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="light"] .detail-item {
    background: rgba(0, 0, 0, 0.03) !important;
    border-left: 4px solid #000000 !important;
}

[data-theme="light"] .detail-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .achievement-card {
    border: 1px solid #000000 !important;
}

[data-theme="light"] .achievement-card:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: #000000 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .contact-item {
    background: rgba(0, 0, 0, 0.03) !important;
    border-left: 4px solid #000000 !important;
}

[data-theme="light"] .contact-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .contact-form {
    border: 1px solid #000000 !important;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #000000 !important;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: #000000 !important;
}

[data-theme="light"] .footer {
    border-top: 1px solid #000000 !important;
}

[data-theme="light"] .skill-category {
    border: 1px solid #000000 !important;
}

[data-theme="light"] .skill-category:hover {
    border-color: #000000 !important;
}

[data-theme="light"] .project-card {
    border: 1px solid #000000 !important;
}

[data-theme="light"] .project-card:hover {
    border-color: #000000 !important;
}

[data-theme="light"] .project-card::before {
    background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.05), transparent) !important;
}

[data-theme="light"] .timeline-content {
    border: 1px solid #000000 !important;
}

[data-theme="light"] .timeline-content:hover {
    border-color: #000000 !important;
}

[data-theme="light"] .timeline-marker {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .section-line {
    background: #000000;
}

[data-theme="light"] .footer {
    border-top: 1px solid #000000;
}

[data-theme="light"] .nav-link::after {
    background: #000000;
}

[data-theme="light"] .scroll-arrow {
    border-right: 3px solid #000000;
    border-bottom: 3px solid #000000;
}

[data-theme="light"] .skill-category:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .achievement-card:hover,
[data-theme="light"] .timeline-content:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.555);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.555);
}

[data-theme="light"] .social-link:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.555);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    transition: var(--transition);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

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



.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,107,53,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 6.5s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 5s;
    animation-duration: 7.5s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 8.5s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 7s;
    animation-duration: 6s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 8s;
    animation-duration: 7s;
}

.particle:nth-child(10) {
    left: 95%;
    animation-delay: 9s;
    animation-duration: 8s;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10px, 10px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    margin: 0;
    transition: all 0.3s ease;
}


.title-line {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.8));
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    margin-bottom: 2rem;
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

.btn-retry {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 35px;
}

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

.btn-retry:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

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

.btn-retry:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

[data-theme="light"] .btn-retry {
    background: linear-gradient(135deg, #000000, #333333);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .btn-retry:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.555);
}

[data-theme="light"] .btn-retry:active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    position: relative;
    width: 100%;
    height: 400px;
}

.floating-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 10s linear infinite;
    z-index: 10;
    cursor: grab;
    transition: all 0.3s ease;
    /* pointer-events: none;  */
}

.floating-cube:active {
    cursor: grabbing;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.floating-element:nth-child(5) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes cubeRotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 0.6;
        transform: translateY(10vh) scale(1);
    }

    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    opacity: 0.9;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.cube-face i {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}


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

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

.right {
    transform: translateX(100px) rotateY(90deg);
}

.left {
    transform: translateX(-100px) rotateY(-90deg);
}

.top {
    transform: translateY(-100px) rotateX(90deg);
}

.bottom {
    transform: translateY(100px) rotateX(-90deg);
}

.scroll-indicator {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    animation: bounce 2s infinite;
    z-index: 9999;
    pointer-events: auto;
    cursor: pointer;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

section {
    padding: 6rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.about {
    background: var(--surface-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 2.99rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateX(10px);
    background: rgba(255, 107, 53, 0.1);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.detail-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detail-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.achievement-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.achievement-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
}

.achievement-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.achievement-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.skills {
    background: var(--background-color);
}

.skills-content {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

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

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.projects {
    background: var(--surface-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#projects {
    min-height: 60vh;
}

#projects-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
}

.project-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.project-card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: var(--transition);
    transform-style: preserve-3d;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.project-card:hover {
    /* transform: translateY(-15px) rotateX(10deg) rotateY(5deg); */
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.4);
}

.project-card:hover::before {
    opacity: 8;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.project-tech span {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 1rem;
    pointer-events: auto;
    position: relative;
    z-index: 5;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.experience {
    background: var(--background-color);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b35, #764ba2);
    border-radius: 2px;
    z-index: 1;
}

[data-theme="light"] .timeline::before {
    background: linear-gradient(180deg, #000000, #333333);
}

.timeline-item {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    border: 4px solid var(--background-color);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

[data-theme="light"] .timeline-marker {
    background: linear-gradient(135deg, #000000, #333333);
    border-color: var(--background-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.2);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(255, 107, 53, 0.3);
}

[data-theme="light"] .timeline-item:hover .timeline-marker {
    box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.3);
}

.timeline-content {
    position: relative;
    width: 45%;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

[data-theme="light"] .timeline-content {
    border: 1px solid #000000;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent var(--surface-color);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent var(--surface-color) transparent transparent;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
}

[data-theme="light"] .timeline-content:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #000000;
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-header .company {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

[data-theme="light"] .timeline-header .company {
    color: #000000;
}

.timeline-header .company:hover {
    color: #ff8c5a;
}

[data-theme="light"] .timeline-header .company:hover {
    color: #333333;
}

.timeline-duration {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

[data-theme="light"] .timeline-duration  {
    background: linear-gradient(199deg, #ffffff, #a8a8a8);
    color: orange;
}

.timeline-description {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.timeline-description li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

[data-theme="light"] .timeline-description li::before {
    color: #000000;
}

.reference {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 20px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

[data-theme="light"] .reference {
    background: rgba(0, 0, 0, 0.1);
}

.reference i {
    color: #ff6b35;
}

[data-theme="light"] .reference i {
    color: #000000;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:nth-child(odd) .timeline-content.animate-in {
    animation: slideInLeft 0.6s ease-out;
}

.timeline-item:nth-child(even) .timeline-content.animate-in {
    animation: slideInRight 0.6s ease-out;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 60px;
    }
    
    .timeline-content {
        width: calc(100% - 60px) !important;
        margin: 0 !important;
    }
    
    .timeline-marker {
        left: 30px !important;
        transform: translateX(0) !important;
    }
    
    .timeline-item:hover .timeline-marker {
        transform: translateX(0) scale(1.3) !important;
    }
    
    .timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-width: 15px 15px 15px 0 !important;
        border-color: transparent var(--surface-color) transparent transparent !important;
    }
    
    .timeline-header h3 {
        font-size: 1.3rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
}
.reference {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reference i {
    color: var(--primary-color);
}

.contact {
    background: var(--surface-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(255, 107, 53, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-form {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.footer {
    background: var(--background-color);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

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

.footer p {
    color: var(--text-secondary);
}

.footer-text {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.external-link {
    position: relative;
    text-decoration: none;
}

.external-link .external-link-icon {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.35em;
    vertical-align: baseline;
    background: currentColor;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>') center / contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>') center / contain no-repeat;
    opacity: 0.85;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.external-link:hover .external-link-icon {
    transform: translate(1px, -1px);
    opacity: 1;
}

[data-theme="light"] .external-link .external-link-icon {
    background: currentColor;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) rotateY(-90deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) rotateY(90deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes rotate3D {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 800px) {
    .navbar {
        padding: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        z-index: 9999;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
        display: flex !important;
    }

    .hamburger {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.3rem;
        width: 100%;
        color: var(--text-primary);
    }

    .nav-link.active {
        color: var(--primary-color);
        background: rgba(255, 107, 53, 0.1);
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card{
        margin-right: 10%;
    }
    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        margin-left: 60px;
    }

    .timeline-content::before {
        left: -10px;
        border-right: 10px solid var(--surface-color);
        border-left: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 4rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .floating-cube {
        width: 150px;
        height: 150px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
    }

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

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

    .right {
        transform: translateX(75px) rotateY(90deg);
    }

    .left {
        transform: translateX(-75px) rotateY(-90deg);
    }

    .top {
        transform: translateY(-75px) rotateX(90deg);
    }

    .bottom {
        transform: translateY(75px) rotateX(-90deg);
    }
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-marker {
        left: 0;
        transform: none;
    }

    .timeline-content {
        margin: 0 0 0 2.5rem;
        text-align: left;
        width: calc(100% - 3rem);
    }

    .timeline-item:first-child .timeline-content {
        margin-left: 2.5rem;
        margin-right: 0;
        text-align: left;
    }

    .timeline-item:first-child .timeline-content::before {
        left: -10px;
        right: auto;
        border-left: none;
        border-right: 10px solid var(--surface-color);
    }
}

.theme-toggle {
    position: fixed;
    top: 87px;
    right: 1.5rem;
    width: 64px;
    height: 36px;
    border-radius: 999px;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

.theme-toggle .toggle-icon {
    color: var(--text-secondary);
    font-size: 16px;
}

.theme-toggle .toggle-knob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

[data-theme="light"] .theme-toggle {
    border-color: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .theme-toggle .toggle-knob {
    background: linear-gradient(135deg, #000, #333);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .theme-toggle .toggle-knob {
    left: 6px;
}

[data-theme="light"] .theme-toggle .toggle-knob {
    left: 30px;
}

@media (max-width: 800px) {
    .theme-toggle {
        right: 1rem;
        top: 64px;
    }
}

.posts-container {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
}

.posts-header {
    background: var(--surface-color);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.posts-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.posts-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.posts-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.posts-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.posts-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

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

.posts-controls {
    background: var(--background-color);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);

    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}


.search-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 280px;
    margin: 0;
}


.search-container i {
    position: absolute;
    left: 0.6rem;
    color: var(--text-secondary);
}


.search-container input {
    flex: 1;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: var(--surface-color);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
}


#search-input {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    background: var(--surface-color);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.clear-search:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.filter-container {
    display: flex;
    gap: 1rem;
}

#category-filter,
#sort-filter {
    padding: 0.5rem 1.2rem;
    background: var(--surface-color);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
}

#category-filter:focus,
#sort-filter:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.ad-section {
    background: var(--surface-color);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.ad-container {
    max-width: 728px;
    margin: 0 auto;
}

.ad-container.ad-vertical {
    max-width: 300px;
}

.ad-placeholder {
    background: rgba(255, 107, 53, 0.05);
    border: 2px dashed rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.ad-placeholder:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.ad-placeholder i {
    font-size: 2rem;
    color: var(--primary-color);
}

.ad-placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
}

.ad-placeholder small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.ad-sidebar {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: none;
}

#posts-container {
    background: var(--background-color);
    padding: 2rem;
    min-height: 60vh;
    position: relative;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: var(--transition);
    transform-style: preserve-3d;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.post-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}

.post-card:hover::before {
    opacity: 1;
}

.post-image {
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.post-card:hover .post-overlay {
    opacity: 1;
}

.post-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-date {
    color: var(--text-secondary);
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.post-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.post-read-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.custom-loader-spinner {
    display: flex;
    gap: 1.2rem;
}

.custom-loader-cube {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    animation: cube-bounce 1.2s infinite alternate;
}

.custom-loader-cube:nth-child(2) {
    animation-delay: 0.2s;
}

.custom-loader-cube:nth-child(3) {
    animation-delay: 0.4s;
}

.custom-loader-cube:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes cube-bounce {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 24px 6px rgba(255, 107, 53, 0.25);
    }

    50% {
        transform: translateY(-24px) scale(1.08);
        box-shadow: 0 0 36px 12px rgba(255, 107, 53, 0.45);
    }

    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 24px 6px rgba(255, 107, 53, 0.25);
    }
}

.custom-loader-cube {
    background: linear-gradient(135deg, #ff6b35 60%, #ffb347 100%);
    box-shadow: 0 0 24px 6px rgba(255, 107, 53, 0.25);
}

[data-theme="light"] .custom-loader-cube {
    background: linear-gradient(135deg, #000000 60%, #333333 100%);
    box-shadow: 0 0 24px 6px rgba(0, 0, 0, 0.25);
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.error-state i {
    font-size: 4rem;
    color: #ff4757;
    margin-bottom: 2rem;
}

.error-state h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    position: relative;
    min-width: 200px;
    padding: 1rem 2rem;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

[data-theme="light"] .posts-header {
    background: var(--surface-color);
}

[data-theme="light"] .posts-header::before {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
}

[data-theme="light"] .posts-title {
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .posts-controls {
    background: var(--background-color);
    border-bottom: 1px solid #000000;
}

[data-theme="light"] .ad-section {
    background: var(--surface-color);
    border-bottom: 1px solid #000000;
}

[data-theme="light"] .ad-placeholder {
    background: rgba(0, 0, 0, 0.03);
    border-color: #000000;
}

[data-theme="light"] .ad-placeholder:hover {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .ad-placeholder i {
    color: #000000;
}

[data-theme="light"] .post-card {
    border: 1px solid #000000;
}

[data-theme="light"] .post-card:hover {
    border-color: #000000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .post-card::before {
    background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

[data-theme="light"] .post-category {
    background: #000000;
    color: #ffffff;
}

[data-theme="light"] .post-tag {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}

[data-theme="light"] #search-input,
[data-theme="light"] #category-filter,
[data-theme="light"] #sort-filter {
    background: var(--surface-color);
    border: 1px solid #000000;
}

[data-theme="light"] #search-input:focus,
[data-theme="light"] #category-filter:focus,
[data-theme="light"] #sort-filter:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
    .ad-sidebar {
        display: none;
    }
}

@media (max-width: 800px) {
    .posts-title {
        font-size: 2.5rem;
    }

    .posts-stats {
        gap: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: center;
    }

    #category-filter,
    #sort-filter {
        min-width: 250px;
    }

    .posts-controls {
        padding: 1.5rem 1rem;
    }

    .ad-section {
        padding: 1.5rem 1rem;
    }

    #posts-container {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .posts-title {
        font-size: 2rem;
    }

    .posts-subtitle {
        font-size: 1.1rem;
    }

    .posts-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .search-container {
        margin-bottom: 1.5rem;
    }

    .post-content {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.1rem;
    }

    .post-excerpt {
        font-size: 0.9rem;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 9999;
    background: var(--primary-color);
    color: white;
    border: none;
    outline: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-color);
}

#posts-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 1rem;
    max-width: 100%;
    align-items: flex-start;
}

.post-article {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.804);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .post-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .post-article:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 14px rgba(255, 165, 0, 0.8);
}

.post-article .post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.post-meta span {
    font-weight: 600;
    color: #444;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.project-orders {
    background: var(--surface-color);
}

.order-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.order-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    max-height: 90%;
}

.order-info-card:hover {
    transform: translateX(10px);
    background: rgba(255, 107, 53, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.info-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-details p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.order-form-container {
    background: var(--background-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title i {
    color: var(--primary-color);
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group .required {
    color: var(--primary-color);
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: var(--transition);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23ff6b35" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 0.5rem;
}

[data-theme="dark"] .form-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="light"] .form-group select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23000000" d="M6 9L1 4h10z"/></svg>');
}

[data-theme="light"] .form-group select option {
    background: #ffffff;
    color: #000000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.radio-label:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    width: auto;
    cursor: pointer;
}

.radio-label span {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-order {
    width: 100%;
    font-size: 1.2rem;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.otp-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.otp-dialog-overlay.active {
    opacity: 1;
}

.otp-dialog-container {
    background: var(--surface-color);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.otp-dialog-overlay.active .otp-dialog-container {
    transform: scale(1) translateY(0);
}

.otp-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.otp-dialog-close:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: rotate(90deg);
}

.otp-dialog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.otp-dialog-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.otp-dialog-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.otp-dialog-message {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.otp-dialog-message strong {
    color: var(--primary-color);
}

.otp-dialog-body {
    margin: 2rem 0;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.otp-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.otp-resend-container {
    text-align: center;
    margin-top: 1.5rem;
}

.otp-resend-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.otp-resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: var(--transition);
}

.otp-resend-btn:hover {
    color: var(--accent-color);
}

.otp-resend-btn:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    text-decoration: none;
}

.otp-dialog-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.otp-dialog-actions .btn {
    flex: 1;
}

.order-success-content {
    text-align: center;
}

.order-success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.order-number {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 1rem 0;
}

[data-theme="light"] .order-form-container,
[data-theme="light"] .otp-dialog-container {
    border: 1px solid #000000;
}

[data-theme="light"] .order-info-card,
[data-theme="light"] .radio-label {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: #000000;
}

[data-theme="light"] .order-info-card:hover,
[data-theme="light"] .radio-label:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .info-icon {
    background: linear-gradient(135deg, #000000, #333333);
}

[data-theme="light"] .form-section-title i {
    color: #000000;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid #000000;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .radio-label {
    border: 1px solid #000000;
}

[data-theme="light"] .radio-label:hover {
    border-color: #000000;
}

[data-theme="light"] .radio-label input[type="radio"]:checked + span {
    color: #000000;
}

[data-theme="light"] .otp-input {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .otp-input:focus {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1000px) {
    .order-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 800px) {
    .order-content {
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .otp-input-group {
        gap: 0.5rem;
    }
    
    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .otp-dialog-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .order-form-container {
        padding: 1.5rem;
    }
    
    .form-section-title {
        font-size: 1.2rem;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

.otp-digit {
    width: 55px !important;
    height: 55px !important;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: var(--transition);
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

[data-theme="light"] .otp-digit {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .otp-digit:focus {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .otp-digit {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.5rem;
    }
    
    .otp-input-group {
        gap: 0.5rem !important;
    }
}

.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.country-code-select {
    flex: 0 0 120px;
    padding: 1rem;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    background: var(--input-bg, #f8f9fa);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-code-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    background: var(--input-bg, #f8f9fa);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.phone-input-wrapper input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.validation-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    min-height: 1.2rem;
    transition: all 0.3s ease;
}

.validation-message.error {
    color: #dc3545;
    font-weight: 500;
}

.validation-message.success {
    color: #10b981;
    font-weight: 500;
}

.form-group input.invalid,
.form-group select.invalid {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-group input.valid,
.form-group select.valid {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.05);
}

[data-theme="dark"] .country-code-select,
[data-theme="dark"] .phone-input-wrapper input[type="tel"] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .country-code-select:focus,
[data-theme="dark"] .phone-input-wrapper input[type="tel"]:focus {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.grecaptcha-badge {
    transform: scale(0.1) !important;
    transform-origin: left bottom !important;
    left: 5px !important;
    right: auto !important;
    bottom: 5px !important;
    opacity: 0.5 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
}

.grecaptcha-badge:hover {
    transform: scale(0.0) !important;
    opacity: 0.0 !important;
}

[data-theme="light"] .grecaptcha-badge {
    opacity: 0.0 !important;
}

[data-theme="light"] .grecaptcha-badge:hover {
    opacity: 0.0 !important;
}

.terms-group {
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.terms-group:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.terms-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin-top: 2px;
}

.terms-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.terms-text i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2px;
}

.terms-text .required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 0.25rem;
}

.terms-label input[type="checkbox"]:checked {
    animation: checkboxPulse 0.3s ease;
}

@keyframes checkboxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

[data-theme="dark"] .terms-group {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .terms-group:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
}

#budget-warning-message {
    transition: all 0.3s ease;
}

#budget-warning-message strong {
    font-weight: 700;
}

@keyframes warningSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="dark"] #budget-warning-message {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #fbbf24;
}

[data-theme="dark"] #budget-warning-message i {
    color: #fbbf24 !important;
}

.terms-group {
    margin: 2rem 0 1.5rem 0;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.terms-group:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.terms-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin-top: 2px;
}

.terms-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.terms-text i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2px;
}

.terms-text .required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 0.25rem;
}

.terms-label input[type="checkbox"]:checked {
    animation: checkboxPulse 0.3s ease;
}

@keyframes checkboxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

[data-theme="dark"] .terms-group {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .terms-group:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
}

@media (max-width: 768px) {
    .terms-group {
        padding: 1rem;
    }
    
    .terms-text {
        font-size: 0.9rem;
    }
    
    .terms-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
    
    #budget-warning-message {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    #budget-warning-message i {
        font-size: 1.1rem !important;
    }
}