/* Enhanced Mobile Loader Styles */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(108, 99, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(108, 99, 255, 0.8);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes flicker {
    0% {
        opacity: 0.8;
    }
    5% {
        opacity: 0.3;
    }
    10% {
        opacity: 0.8;
    }
    15% {
        opacity: 0.5;
    }
    20% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    70% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes noise {
    0%, 100% {
        background-position: 0 0;
    }
    10% {
        background-position: -5% -10%;
    }
    30% {
        background-position: 3% 15%;
    }
    50% {
        background-position: 12% 5%;
    }
    70% {
        background-position: -10% -5%;
    }
    90% {
        background-position: 15% 10%;
    }
}

@keyframes glitch-line {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

.mobile-loader-container {
    display: none; /* Hide by default on all screen sizes */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    z-index: 9999;
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.digital-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AIcAwAAfCL9TgAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAACtElEQVRo3u3aTU8TYRTG8f8zb9CotAjUqIkLRRcqJi7YuDQkbPwALo0fQONnsDBxgQs/A8YYYsKGlUujRF0pCxUBQ9AYhUIp0hbamXksKJE3tJ1pSxnivZPJ5Zw+mfOcmXunUIIkLYNlYAD4CDjATZeAx8Ax8KFQJmkDmAY8/C+9MvBQ0gLQCpwDfv4/EzJQk/QQWJI0BriSVoEO/HNxQJKUBCYlteO/r+OSfgE+0COXT9ImUJD0DbgoyZeUI2Z9VKbfLUwCr4ATktoBP3YQYEmSVJB0VdJYnIbVWq1BwJX0Sbk8PvAbMcMMbSWyeKxUGmM2rPZHl6eyzBJmxQLDPWRsEQsEgkQsEDMYaIwFonrsX4pVZPLKyMdqjRUi8weoRWsxYYTITEqaB1qAM8CMFSKTkrQCnAIuAGlL7dGCpK9AB/BTUgrwLRDrgP8WY0tyJbmW2kOSMvzt8/H9BWgA/rRG7G+N+h8E/vdG2TcjOZVkcgODpqbmRmMcJyHp9PhEqq+/q5Dd2dw89iO8vLKy/Wvv50H3rdsrZsE2kgaANeAE0JmYvzc9PWGMMav5Qm4jvTlVNSPfiqWF21NZK0QgCOmspFHXvTgw2N9/sPvj0+zc/EPPZJ92d/VaIQKD2lJ/5eXcreRw/9DOwW6YEZGpOElR2h6RGQeWgX1gC5iUVIwaIpD+FSGXC3J+AYeAAwwDW1FCBL7WEiIfJD4DyUqWDn1vH9iLAiIQQXsuVwvClrRRRFwC3kYJEYhABbFSxpUZMBKSkkCL53lF4HnUEH/tDcZx9JCNw8O6EZKccrmcDMu2oob4p7sQMgkn0dGZyGQy9UE8z6vkbWy2RoVJOIngwLZYLBKW7Vu2cQBrjIFwiKALaCgkOHRkFI1HQ1+n8Rt5eKxuHzoo1QAAAABJRU5ErkJggg==');
    opacity: 0.05;
    mix-blend-mode: overlay;
    animation: noise 0.5s steps(2) infinite;
}

.glitch-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: rgba(78, 205, 196, 0.7);
    transform: translateX(-100%);
    animation: glitch-line 3s linear infinite;
    z-index: 11;
}

.mobile-ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9;
}

.ui-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(108, 99, 255, 0.7);
    z-index: 10;
}

.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.ui-line {
    position: absolute;
    background-color: rgba(108, 99, 255, 0.3);
    z-index: 10;
}

.horizontal {
    height: 1px;
    width: calc(100% - 60px);
    left: 30px;
}

.vertical {
    width: 1px;
    height: calc(100% - 60px);
    top: 30px;
}

.top {
    top: 20px;
}

.bottom {
    bottom: 20px;
}

.left {
    left: 20px;
}

.right {
    right: 20px;
}

.ui-circle-pulse {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(108, 99, 255, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
    animation: pulse-glow 2s infinite ease-in-out;
    z-index: 10;
}

.ui-data-display {
    position: absolute;
    bottom: 40px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.4);
    border-radius: 4px;
    padding: 8px;
    font-family: monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 12;
}

.data-row {
    margin: 3px 0;
}

.data-value {
    color: #4ecdc4;
    font-weight: bold;
}

.mobile-stats-display {
    position: absolute;
    left: 20px;
    bottom: 40px;
    width: 120px;
    z-index: 12;
}

.stat-item {
    margin-bottom: 10px;
}

.stat-label {
    font-family: monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3px;
}

.stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #6c63ff, #4ecdc4);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.circular-progress {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 12;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.progress-fill {
    fill: none;
    stroke: #6c63ff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
    filter: drop-shadow(0 0 3px rgba(108, 99, 255, 0.5));
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: monospace;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

@media (max-width: 768px) {
    .editor-ui {
        background: rgba(15, 15, 18, 0.8) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .loading-bar {
        height: 6px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) !important;
    }
    
    .loading-fill {
        background: linear-gradient(90deg, #6c63ff, #4ecdc4, #ff6584, #6c63ff) !important;
        background-size: 300% 100% !important;
        animation: gradient-shift 2s linear infinite !important;
        box-shadow: 0 0 15px rgba(108, 99, 255, 0.8) !important;
    }
    
    .loading-text {
        text-shadow: 0 0 10px rgba(108, 99, 255, 0.7) !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
        font-size: 14px !important;
        text-transform: uppercase !important;
    }
    
    .frame-counter {
        color: #4ecdc4 !important;
        font-family: monospace !important;
        font-size: 13px !important;
        letter-spacing: 1px !important;
    }
    
    .preview-area {
        border: 1px solid rgba(108, 99, 255, 0.3) !important;
        box-shadow: 0 0 20px rgba(108, 99, 255, 0.2) !important;
        border-radius: 5px !important;
    }
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Poppins:wght@300;400;500;700&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    --primary: #6c63ff;
    --secondary: #ff6584;
    --dark: #2d2d2d;
    --light: #f7f7f7;
    --accent: #4ecdc4;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}
.logo {
    animation: pulse 2s infinite;
    }

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

/* START - New Loader Styles V2 */
.loader-wrapper-v2 {
    position: fixed;
    inset: 0;
    background-color: #121212;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    color: var(--light);
    overflow: hidden;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    opacity: 1;
    visibility: visible;
}

.loader-wrapper-v2.hidden-loader {
    opacity: 0;
    visibility: hidden;
}

/* Advanced Editor UI Loader */
.editor-ui {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 600px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    border: 1px solid rgba(120, 120, 120, 0.2);
    z-index: 2; /* Ensure it's above the mobile loader */
}

/* Menu Bar */
.menu-bar {
    display: flex;
    padding: 8px 16px;
    background: #252525;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item {
    padding: 4px 10px;
    margin-right: 10px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.menu-item:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.menu-item.active {
    background: rgba(108, 99, 255, 0.2);
    border-radius: 4px;
    color: var(--primary);
}

.software-logo {
    margin-left: auto;
    display: flex;
    align-items: center;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--primary);
    font-size: 1em;
}

.software-logo i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Main Editor Interface */
.editor-main {
    display: grid;
    grid-template-columns: auto 1fr;
    position: relative;
    overflow: hidden;
}

/* Tools Panel */
.tools-panel {
    width: 60px;
    background: #1e1e1e;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.tool-btn {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    background: #2a2a2a;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.tool-btn:hover {
    transform: translateY(-2px);
    color: var(--primary);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.tool-btn:after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: radial-gradient(circle at center, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-btn:hover:after {
    opacity: 0.2;
}

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

/* Preview Area */
.preview-area {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #141414;
}

.project-tabs {
    display: flex;
    overflow-x: auto;
    background: #1d1d1d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #1d1d1d;
}

.project-tabs::-webkit-scrollbar {
    height: 4px;
}

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

.project-tab {
    padding: 8px 16px;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.project-tab.active {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
    position: relative;
}

.project-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(30, 30, 30, 0.8),
        rgba(30, 30, 30, 0.8) 10px,
        rgba(25, 25, 25, 0.8) 10px,
        rgba(25, 25, 25, 0.8) 20px
    );
}

.preview-loading {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for element size */
    width: 60%;
    text-align: center;
    z-index: 2;
}

.loading-bar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
    animation: loading-progress 3s ease-in-out forwards;
}

.loading-text {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.8);
    margin-top: 10px; /* Add space above text */
}

.frame-counter {
    font-family: 'Orbitron', monospace;
    font-size: 0.8em;
    color: var(--primary);
    margin-top: 5px; /* Add space above frame counter */
}

/* Ruler Guides */
.h-ruler, .v-ruler {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.h-ruler {
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
}

.v-ruler {
    top: 0;
    left: 0;
    height: 100%;
    width: 20px;
    display: flex;
    flex-direction: column;
}

.ruler-mark {
    position: relative;
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ruler-mark:nth-child(5n) {
    border-right-color: rgba(255, 255, 255, 0.3);
}

/* Timeline */
.timeline {
    height: 150px;
    background: #1e1e1e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline-header {
    display: flex;
    background: #252525;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-header .time-controls {
    display: flex;
    align-items: center;
    font-size: 0.8em;
}

.timeline-header .time-display {
    font-family: 'Orbitron', monospace;
    margin: 0 10px;
    color: var(--accent);
}

.timeline-header .playback-speed {
    padding: 2px 8px;
    background: #333;
    border-radius: 4px;
    margin-left: 10px;
    color: var(--secondary);
}

.timeline-ruler {
    padding: 5px 0;
    height: 20px;
    display: flex;
    background: #252525;
    position: relative;
}

.timeline-ruler .ruler-segment {
    flex: 1;
    position: relative;
    min-width: 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-ruler .ruler-segment:nth-child(10n) {
    border-right-color: rgba(255, 255, 255, 0.3);
}

.timeline-ruler .ruler-segment:nth-child(10n)::after {
    content: attr(data-time);
    position: absolute;
    bottom: -15px;
    right: -12px;
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.7);
}

.timeline-playhead {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--secondary);
    z-index: 3;
    pointer-events: none;
    animation: timeline-scan 8s linear infinite;
}

.timeline-playhead::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    background-color: var(--secondary);
    border-radius: 0 0 5px 5px;
}

.timeline-tracks {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.timeline-track {
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
}

.timeline-track:nth-child(even) {
    background: #1d1d1d;
}

.timeline-clips {
    position: absolute;
    left: 100px;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
}

.timeline-clip {
    position: absolute;
    height: 25px;
    top: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 3px;
    opacity: 0.8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.timeline-clip:nth-child(2) {
    top: 33px;
    background: linear-gradient(to right, var(--secondary), #ff9d84);
}

.timeline-clip:nth-child(3) {
    top: 63px;
    background: linear-gradient(to right, var(--accent), #66ffda);
}

/* Status Bar */
.status-bar {
    display: flex;
    padding: 5px 15px;
    background: #252525;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
}

.status-item {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.status-item i {
    margin-right: 5px;
    font-size: 0.9em;
}

.status-item:last-child {
    margin-left: auto;
}

.cpu-usage {
    color: var(--accent);
    animation: pulse 2s infinite;
}

.memory-usage {
    color: var(--secondary);
}

/* Tooltips */
.tool-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.tool-tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.tool-btn:hover .tool-tooltip {
    opacity: 1;
}

/* Visual Effect Elements */
.effect-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    opacity: 0.5;
}

.color-swatch {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

.swatch {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flicker-element {
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--primary);
    opacity: 0.7;
    pointer-events: none;
}

.cursor-follower {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: pulse-scale 1.5s infinite alternate;
}

/* Notification */
.software-notification {
    position: absolute;
    top: 50px;
    right: 20px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    border-left: 3px solid var(--primary);
    color: white;
    font-size: 0.8em;
    border-radius: 0 4px 4px 0;
    animation: slide-in-right 0.5s forwards, slide-out-right 0.5s 5s forwards;
    z-index: 10;
}

.render-progress {
    position: absolute;
    bottom: 120px; /* Decreased further to 120px for more gap */
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    text-align: center;
    z-index: 5;
    display: none; /* Hide this duplicate block */
}

.render-stage {
    font-size: 0.9em;
    color: var(--accent);
    margin-bottom: 5px;
}

.render-percentage {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Error Glitches */
.glitch-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 0, 0, 0.05);
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    animation: glitch-flash 0.1s infinite alternate;
}

/* Keyframes Animations */
@keyframes loading-progress {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes timeline-scan {
    0% { left: 100px; }
    100% { left: calc(100% - 10px); }
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes pulse-scale {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes slide-in-right {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out-right {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes glitch-flash {
    0% { opacity: 0; }
    5% { opacity: 0.1; }
    10% { opacity: 0; }
    15% { opacity: 0.2; }
    20% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes jump-in {
    0% { transform: scale(0.8); opacity: 0; }
    40% { transform: scale(1.1); opacity: 1; }
    60% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .editor-ui {
        /* Adjust height and max-height for better fit */
        height: 85vh;
        max-height: 550px;
        width: 95%; /* Slightly wider */
        grid-template-rows: auto 1fr 80px; /* Adjust timeline height */
    }

    .editor-main {
        grid-template-columns: 50px 1fr;
    }

    .tools-panel {
        width: 50px;
        padding: 10px 0; /* Reduce padding */
    }

    .tool-btn {
        width: 30px;
        height: 30px;
        font-size: 1em;
        margin-bottom: 10px; /* Reduce spacing */
    }

    .timeline {
         /* Reduced height from 100px */
         height: 80px;
         /* Reduce font size in timeline header */
         font-size: 0.9em;
    }
    .timeline-header .time-display {
        font-size: 0.9em; /* Smaller time display */
    }
     .timeline-track {
         font-size: 0.75em; /* Smaller track labels */
         height: 25px; /* Reduce track height slightly */
     }
     /* Adjust clip positions based on new track height */
     .timeline-clip:nth-child(2) { top: 28px; }
     .timeline-clip:nth-child(3) { top: 53px; }

    .software-logo span {
        display: none;
    }

    .preview-loading {
        width: 90%;
    }
     /* Reduce font size in loader text */
    .loading-text {
        font-size: 0.8em;
    }
    .frame-counter {
        font-size: 0.7em;
    }

    .color-swatch {
        display: none;
    }

    /* Reduce status bar font size */
    .status-bar {
        padding: 4px 10px;
        font-size: 0.7em;
    }
     .status-item {
         margin-right: 10px;
     }
    /* Reduce menu item font size */
    .menu-item {
        font-size: 0.75em;
        padding: 3px 8px;
    }

    /* General Mobile Font Adjustments */
    .hero-content h1 {
        font-size: 2.8em; /* Slightly smaller */
    }
    .hero-content p {
        font-size: 1em; /* Slightly smaller */
    }
    .section-title {
        font-size: 1.9em; /* Slightly smaller */
    }
     .skill-name {
         font-size: 1.3em;
     }
     .contact-info h3 {
         font-size: 1.5em;
     }
     .contact-text h4 {
         font-size: 1.1em;
     }

     /* Adjust portfolio grid */
     .portfolio-container {
         grid-template-columns: repeat(2, 1fr); /* Ensure 2 columns */
         gap: 8px; /* Slightly reduce gap */
     }
     .portfolio-item.vertical-video {
         /* Adjust vertical item size for 2-column layout */
         height: 320px;
         width: 180px;
     }
     .all-view .portfolio-item.vertical-video {
         padding-bottom: 100%; /* Keep square in all view */
         height: auto;
         width: 100%;
     }

    /* Adjust navigation menu */
     .navigation {
         width: 220px; /* Slightly narrower */
     }
     .navigation li {
         margin: 15px 0; /* Reduce spacing */
     }

}

 /* END - New Loader Styles V2 */

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.5s;
}

header.sticky {
    background: rgba(45, 45, 45, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    color: var(--light);
    position: relative;
}

.logo span {
    color: var(--primary);
}

.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary);
    bottom: -5px;
    left: 0;
    transition: 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.navigation {
    display: flex;
}

.navigation li {
    list-style: none;
    margin-left: 30px;
}

.navigation li a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s ease;
    position: relative;
}

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

.navigation li a:hover::after {
    width: 100%;
}

.navigation li a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    color: var(--light);
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.menu-toggle:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(108, 99, 255, 0.1), rgba(255, 101, 132, 0.1));
    z-index: -1;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    margin-right: 15px;
    transition: 0.3s ease;
    border: 2px solid var(--primary);
}

.cta-btn:hover {
    background: transparent;
    color: var(--primary);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--light);
}

.cta-btn.secondary:hover {
    background: var(--light);
    color: var(--dark);
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    color: var(--light);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* About Section */
section {
    padding: 100px 50px;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 5px;
    background: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

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

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    margin-right: 50px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary);
    top: 20px;
    left: 20px;
    border-radius: 10px;
    z-index: -1;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-box {
    flex: 1;
    min-width: 120px;
    background: rgba(108, 99, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 10px;
    border: 1px solid var(--primary);
    transition: 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.stat-box h4 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-box p {
    margin-bottom: 0;
    font-size: 0.9em;
}

/* Skills Section */
.skills {
    background: #272727;
}

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

.skill-box {
    position: relative;
    background: #323232;
    border-radius: 15px;
    padding: 30px;
    overflow: hidden;
    transition: 0.5s ease;
}

.skill-box::before {
    content: '';
    position: absolute;
    width: 0;
    height: 5px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: 0.5s ease;
}

.skill-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
}

.skill-box:hover::before {
    width: 100%;
}

.skill-name {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--light);
    display: flex;
    align-items: center;
}

.skill-name i {
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.5em;
}

.skill-level {
    position: relative;
    height: 40px;
    background: #3a3a3a;
    border-radius: 20px;
    margin-top: 15px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 20px;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

.creative .skill-bar {
    width: 80%;
}

.premiere .skill-bar {
    width: 75%;
}

.aftereffects .skill-bar {
    width: 50%;
}

.photoshop .skill-bar {
    width: 70%;
}

.english .skill-bar {
    width: 70%;
}

.technical .skill-bar {
    width: 75%;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

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

.skill-percentage {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: var(--light);
    font-weight: 600;
    font-size: 0.9em;
}

/* Portfolio Section */
.portfolio {
    background: #2d2d2d;
    padding: 100px 0 50px;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--light);
    margin: 0 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--light);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.portfolio-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Makes it square */
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s ease;
    background: #000;
    display: none; /* Hide by default, pagination will show items */
}

.portfolio-item img,
.portfolio-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: 0.3s ease;
}

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

.portfolio-overlay h3 {
    color: var(--light);
    font-size: 1.2em;
    margin-bottom: 8px;
    transform: translateY(-10px);
    transition: 0.3s ease;
    text-align: center;
    padding: 0 10px;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay p {
    color: var(--light);
    transform: translateY(10px);
    transition: 0.3s ease;
    text-align: center;
    padding: 0 10px;
    font-size: 0.9em;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Portfolio Modal */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: auto;
    background: #323232;
    border-radius: 8px;
    padding: 30px;
    position: relative;
}

.modal-media {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.modal-media img,
.modal-media video {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
    color: var(--light);
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--primary);
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Video Controls in Modal */
.modal-media {
    position: relative;
}

.modal-content .video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10;
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-media:hover .video-controls {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.modal-content .video-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.modal-content .video-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.modal-content .video-btn:hover::before {
    transform: scale(1);
}

.modal-content .video-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.modal-content .video-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.modal-content .video-btn:active i {
    transform: scale(0.8);
}

.modal-content .volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.modal-content .volume-slider-container {
    position: relative;
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.modal-content .volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.modal-content .volume-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.2s ease;
    z-index: 1;
}

.modal-content .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-content .volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.7);
}

.modal-content .time-display {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    min-width: 80px;
    text-align: center;
}

.modal-content .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 9;
}

.modal-content .progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.1s linear;
}

/* Tooltip for controls */
.tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
}

.modal-content .video-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Fullscreen animation */
@keyframes fullscreenEnter {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-media {
    animation: fullscreenEnter 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Play/pause animation */
@keyframes playPauseWave {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(108, 99, 255, 0);
    }
}

.play-active {
    animation: playPauseWave 1s infinite;
}

@media (max-width: 992px) {
    .portfolio-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .about-image img {
        max-width: 80%;
        height: auto;
    }

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

    .stats {
        justify-content: center;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(45, 45, 45, 0.98);
        backdrop-filter: blur(10px);
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
    }

    .navigation.active {
        right: 0 !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .navigation li {
        margin: 20px 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
        font-size: 24px;
        cursor: pointer;
    }

    header {
        padding: 15px 20px;
    }

    header.sticky {
        padding: 10px 20px;
    }
}

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

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
        padding: 0 15px;
    }

    .cta-btn {
        display: block;
        width: 80%;
        margin: 10px auto;
        text-align: center;
    }

    .section-title {
        font-size: 1.8em;
    }

    .skill-box {
        min-width: 100%;
    }

    .portfolio-filter button {
        margin: 5px;
        padding: 8px 12px;
        font-size: 0.8em;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }

    .testimonial p {
        font-size: 0.9em;
    }

    .stat-box {
        padding: 15px;
        min-width: 90px;
    }

    .stat-box h4 {
        font-size: 1.5em;
    }

    .stat-box p {
        font-size: 0.8em;
    }

    .about-content h3 {
        font-size: 1.3em;
    }

    .about-content p {
        font-size: 0.9em;
    }
}

/* For very small screens */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.8em;
    }

    .portfolio-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .portfolio-filter button {
        margin: 3px;
        padding: 6px 10px;
        font-size: 0.7em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .contact-form .submit-btn {
        width: 100%;
    }

    .stats {
        flex-wrap: wrap;
    }

    .stat-box {
        margin: 5px;
        min-width: 80px;
    }
}

/* Contact Section */
.contact {
    background: #272727;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    margin-right: 50px;
}

.contact-info h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--primary);
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 1.2em;
    color: var(--light);
}

.contact-text h4 {
    font-size: 1.2em;
    color: var(--light);
    margin-bottom: 5px;
}

.contact-text p {
    color: #aaa;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #323232;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--light);
    text-decoration: none;
    transition: 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

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

.form-control {
    width: 100%;
    padding: 12px 20px;
    background: #323232;
    border: none;
    border-radius: 5px;
    color: var(--light);
    transition: 0.3s ease;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 10px var(--primary);
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.submit-btn {
    padding: 12px 30px;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s ease;
}

.submit-btn:hover {
    background: var(--accent);
}

/* Footer */
footer {
    position: relative;
    background: #1d1d1d;
    padding: 60px 50px 30px;
    text-align: center;
    margin-top: 50px;
}

.footer-waves {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.footer-waves .shape-fill {
    fill: #1d1d1d;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 20px;
    color: #f5f7fa;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #323232;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Remove the old footer styles */
.footer {
    display: none;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
    font-size: 1.2em;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 991px) {
    header {
        padding: 20px 30px;
    }

    header.sticky {
        padding: 15px 30px;
    }

    section {
        padding: 80px 30px;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .about-image {
        margin-right: 0;
        margin-bottom: 50px;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-info {
        margin-right: 0;
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    /* Commenting out the rule that hides the navigation */
    /* .navigation {
        display: none;
    } */

    .portfolio-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 15px;
    }

    header.sticky {
        padding: 15px 15px;
    }

    section {
        padding: 60px 15px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .about-image::before {
        display: none;
    }

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

    .modal-content {
    width: 90%;
        padding: 20px;
    }
}

/* Footer Bubble Animation */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 10s infinite ease-in;
}

.bubble:nth-child(2n) {
    width: 20px;
    height: 20px;
    animation-duration: 12s;
    animation-delay: 1s;
}

.bubble:nth-child(3n) {
    width: 30px;
    height: 30px;
    animation-duration: 15s;
    animation-delay: 2s;
    background: rgba(255, 101, 132, 0.1);
}

.bubble:nth-child(4n) {
    width: 50px;
    height: 50px;
    animation-duration: 18s;
    animation-delay: 3s;
    background: rgba(78, 205, 196, 0.1);
}

.bubble:nth-child(5n) {
    width: 35px;
    height: 35px;
    animation-duration: 20s;
    animation-delay: 4s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(100px);
        opacity: 0.8;
    }
    100% {
        bottom: 100%;
        transform: translateX(-100px);
        opacity: 0;
    }
}

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    position: relative;
    color: var(--light);
    font-size: 4rem;
    letter-spacing: 3px;
    animation: shift 4s ease-in-out infinite alternate;
    z-index: 1;
}

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

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

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

@keyframes glitch-effect {
    0% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }
    5% {
        clip-path: inset(33% 0 66% 0);
    }
    10% {
        clip-path: inset(50% 0 50% 0);
    }
    15% {
        clip-path: inset(25% 0 75% 0);
    }
    20% {
        clip-path: inset(80% 0 20% 0);
        transform: translate(-3px, 0);
    }
    25% {
        clip-path: inset(0 0 0 0);
        transform: translate(3px, 0);
    }
    30% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes shift {
    0%, 40%, 44%, 58%, 61%, 65%, 69%, 73%, 100% {
        transform: skewX(0deg);
    }
    41% {
        transform: skewX(10deg);
    }
    42% {
        transform: skewX(-10deg);
    }
    59% {
        transform: skewX(40deg) skewY(10deg);
    }
    60% {
        transform: skewX(-40deg) skewY(-10deg);
    }
    63% {
        transform: skewX(10deg) skewY(-5deg);
    }
    70% {
        transform: skewX(-50deg) skewY(-20deg);
    }
    71% {
        transform: skewX(10deg) skewY(-10deg);
    }
}

.hero-content .glitch span {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--primary), 0 0 20px var(--primary);
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--primary), 0 0 40px var(--primary);
    }
}

/* Intense glitch effect for random moments */
.intense-glitch::before {
    animation: glitch-effect 0.2s infinite;
    transform: translate(10px, 0);
}

.intense-glitch::after {
    animation: glitch-effect 0.3s infinite reverse;
    transform: translate(-10px, 0);
}

/* New Skills Title Animation */
.skills-title-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
}

.skills-title {
    font-size: 2.5em;
    position: relative;
    display: inline-block;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 10px;
}

.skills-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform-origin: right;
    transform: scaleX(0);
    z-index: -1;
    animation: revealBg 1.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.skills-title .text-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 0 5px;
}

.skills-title .letter {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: revealLetter 0.5s forwards;
    animation-delay: calc(0.05s * var(--i) + 1s);
}

.skills-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    animation: revealLine 1.5s ease forwards 2s;
}

.color-shift {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: difference;
    background: rgba(255, 255, 255, 0.1);
    animation: colorShift 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes revealBg {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes revealLetter {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes revealLine {
    0% {
        transform: translateX(-50%) scaleX(0);
    }
    100% {
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes colorShift {
    0%, 100% {
        opacity: 0;
        transform: translateX(-5px);
    }
    25% {
        opacity: 0.5;
        transform: translateX(5px);
    }
    50% {
        opacity: 0.2;
        transform: translateX(0);
    }
    75% {
        opacity: 0.3;
        transform: translateX(-3px);
    }
}

/* Remove old animations */
.skills-title::before {
    animation: revealBg 1.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
    background: var(--primary);
    z-index: -1;
}

.skills-title.glitching {
    animation: none;
}

.skills-title::after {
    animation: revealLine 1.5s ease forwards 2s;
}

/* Optional film frame effect */
@keyframes filmFlicker {
    0%, 100% {
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.3;
    }
}

.portfolio-video {
    cursor: pointer;
}

/* Add these styles to properly display Instagram Reels videos */
.portfolio-item.vertical-video {
    position: relative;
    height: 400px;
    width: 225px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #000; /* Visible background while video loads */
}

.portfolio-item.vertical-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Ensures no extra space below */
}

/* Add loading indicator */
/* Removed loading indicator styles */
/* .portfolio-item.vertical-video::before { ... } */
/* @keyframes spin { ... } */
/* .portfolio-item.vertical-video.loaded::before { ... } */

/* Update swiper slide styles for vertical videos */
.swiper-container .swiper-slide {
    display: flex;
    justify-content: center;
}

/* Updated Video Controls */
.video-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 15px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 20px;
}

.portfolio-item:hover .video-controls {
    opacity: 1;
}

.video-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.video-btn:hover {
    background: rgba(108, 99, 255, 0.8);
}

.video-btn i {
    font-size: 16px;
}

/* Volume Control Styles */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 0;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.volume-control:hover .volume-slider {
    width: 60px;
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

/* Hide default video controls */
.portfolio-video::-webkit-media-controls {
    display: none !important;
}

.portfolio-video::-webkit-media-controls-panel {
    display: none !important;
}

.portfolio-video::-webkit-media-controls-play-button {
    display: none !important;
}

.portfolio-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

/* Horizontal Video Style (16:9 ratio) */
.portfolio-item.horizontal-video {
    position: relative;
    height: 225px;
    width: 400px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #000; /* Visible background while video loads */
}

.portfolio-item.horizontal-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Ensures no extra space below */
}

/* Loading indicator applies to both vertical and horizontal videos */
/* Removed loading indicator styles */
/* .portfolio-item.horizontal-video::before { ... } */

/* Hide loading indicator when video is loaded */
/* Removed loading indicator styles */
/* .portfolio-item.horizontal-video.loaded::before { ... } */

/* Square image style (1:1 ratio) */
.portfolio-item.square-image {
    position: relative;
    height: 300px;
    width: 300px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #000;
}

.portfolio-item.square-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
}

.portfolio-item.square-image:hover img {
    transform: scale(1.1);
}

/* Vertical image style (9:16 ratio) */
.portfolio-item.vertical-image {
    position: relative;
    height: 400px;
    width: 225px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #000;
}

.portfolio-item.vertical-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.5s ease;
}

.portfolio-item.vertical-image:hover img {
    transform: scale(1.1);
}

/* Fullscreen video styles */
.fullscreen-controls {
    position: fixed !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Hide fullscreen controls after inactivity */
.inactive-fullscreen-controls {
    opacity: 0 !important;
}

/* Progress bar in fullscreen */
video::-webkit-media-controls {
    display: none !important;
}

video:fullscreen {
    background: black;
    object-fit: contain !important;
}

/* Custom fullscreen progress bar */
.fullscreen-progress {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 8px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    z-index: 9998 !important;
}

.fullscreen-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
    width: 0 !important;
    transition: width 0.1s linear !important;
}

/* Style fixes for fullscreen tooltips */
.fullscreen-controls .tooltip {
    top: -40px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
}

/* Make video fill fullscreen space properly */
:fullscreen {
    background-color: #000;
    width: 100vw !important;
    height: 100vh !important;
}

:fullscreen video {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
    background: black !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    max-height: none !important;
}

:fullscreen .modal-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    background: black !important;
}

:fullscreen .modal-content {
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    max-height: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: black !important;
}

/* Improve control visibility in fullscreen */
.fullscreen-controls .video-btn {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.fullscreen-controls .video-btn i {
    font-size: 1.4rem !important;
}

.fullscreen-controls .time-display {
    font-size: 16px !important;
    min-width: 100px !important;
}

.fullscreen-controls .volume-slider-container {
    width: 120px !important;
    height: 8px !important;
}

/* Hide original controls in fullscreen mode */
:fullscreen .video-controls:not(.fullscreen-controls) {
    display: none !important;
}

:fullscreen .progress-bar {
    display: none !important;
}

/* Make sure controls are correctly positioned in fullscreen */
.fullscreen-controls {
    position: fixed !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px;
}

.pagination-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-button:hover {
    background: var(--primary);
    color: var(--dark);
}

.pagination-button.active {
    background: var(--primary);
    color: var(--dark);
}

/* Hide items beyond page 1 initially */
.portfolio-item {
    display: none;
}

.portfolio-item.active-page {
    display: block; /* Show only when active page */
}

/* Add CSS to make items display as squares in "All" category */
.portfolio-item.vertical-video {
    /* Default styles for vertical videos when in specific category views */
    position: relative;
    height: 400px;
    width: 225px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #000;
    padding-bottom: 0; /* Override the square aspect ratio */
}

/* When in "All" view, force square aspect ratio */
.all-view .portfolio-item.vertical-video {
    width: 100%;
    height: auto;
    padding-bottom: 100%; /* Makes it square */
    margin: 0;
}

.all-view .portfolio-item.vertical-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Portfolio Item Reveal Animation */
.portfolio-item {
    /* Base transition for reveal */
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    will-change: opacity, transform; /* Optimize animation */
}

.portfolio-item.active-page.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Blog Section */
.blog {
    background: #1e1e1e;
    padding: 100px 0 50px;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-carousel {
    position: relative;
    margin-top: 50px;
}

.blog-item {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--light);
}

.blog-content p {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 0.9em;
    flex-grow: 1;
}

.blog-read-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--light);
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: 0.3s ease;
    text-align: center;
    border: 2px solid var(--primary);
}

.blog-read-more:hover {
    background: transparent;
    color: var(--primary);
}

/* Swiper customization */
.blog-swiper {
    padding: 30px 10px;
}

.swiper-container {
    overflow: hidden;
}

.swiper-slide {
    height: auto;
}

.blog-button-next,
.blog-button-prev {
    color: var(--primary) !important;
    background-color: rgba(42, 42, 42, 0.7);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-size: 0; /* Hide any text */
    text-indent: -9999px; /* Further hide text */
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: scale(1);
}

.blog-button-next:hover,
.blog-button-prev:hover {
    background-color: var(--primary);
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.blog-button-next i,
.blog-button-prev i {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    width: 100%;
    height: 100%;
    text-indent: 0;
    color: white;
    transition: all 0.3s ease;
}

.blog-button-next:hover i,
.blog-button-prev:hover i {
    transform: scale(1.1);
}

/* Remove default swiper button arrows */
.blog-button-next:after,
.blog-button-prev:after {
    display: none !important;
}

.blog-pagination {
    position: relative;
    margin-top: 30px;
}

.swiper-pagination-bullet {
    background: #666;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* Make blog section responsive */
@media (max-width: 991px) {
    .blog-swiper {
        padding: 20px 5px;
    }

    .blog-container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .swiper-container {
        width: 100%;
    }

    .blog-item {
        max-width: 450px;
        margin: 0 auto;
    }

    .blog-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .blog-container {
        padding: 0 10px;
    }

    .blog-item {
        margin: 0 auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .blog-content {
        padding: 15px;
    }

    .blog-content h3 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }

    .blog-content p {
        font-size: 0.9em;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .blog-read-more {
        width: 100%;
        padding: 10px;
        text-align: center;
        font-weight: 500;
    }

    .blog-pagination {
        margin-top: 20px;
    }

    .blog-button-next,
    .blog-button-prev {
        width: 36px !important;
        height: 36px !important;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 6px;
    }
}

/* Mobile-specific styles for blog */
.blog.mobile-view .blog-carousel {
    margin-top: 30px;
}

.blog.mobile-view .blog-swiper {
    padding: 10px 5px 40px;
}

.blog-item.mobile-item {
    background: linear-gradient(145deg, #252525, #2d2d2d);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-item.mobile-item:hover {
    transform: translateY(-5px) scale(1.02);
}

.blog-item.mobile-item .blog-image {
    height: 160px;
}

.blog-item.mobile-item .blog-content {
    padding: 18px 15px;
}

.blog-item.mobile-item .blog-content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

.blog-item.mobile-item .blog-content p {
    color: #bbb;
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-item.mobile-item .blog-read-more {
    background: var(--primary);
    color: white;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-item.mobile-item .blog-read-more:hover {
    background: #5a52ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.blog.mobile-view .blog-pagination {
    bottom: 0;
    position: absolute;
    width: 100%;
    text-align: center;
}

.blog.mobile-view .blog-button-next,
.blog.mobile-view .blog-button-prev {
    top: 50%;
    width: 36px !important;
    height: 36px !important;
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
}

.blog.mobile-view .blog-button-next {
    right: 5px;
}

.blog.mobile-view .blog-button-prev {
    left: 5px;
}

.blog.mobile-view .blog-button-next:hover,
.blog.mobile-view .blog-button-prev:hover {
    background-color: var(--primary);
}

.blog.mobile-view .blog-button-next i,
.blog.mobile-view .blog-button-prev i {
    font-size: 16px;
}

/* Responsive adjustments for the loader UI */
@media (max-width: 768px) {
    /* Show the mobile loader container on mobile */
    .mobile-loader-container {
        display: block;
    }
    
    /* Make the editor UI more mobile-friendly */
    .loader-wrapper-v2 .editor-ui {
        /* Allow UI to take full width/height, remove fixed max sizes */
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        border: none;
        /* Change to flex layout for simpler centering */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center the content vertically */
        align-items: center; /* Center the content horizontally */
        padding: 20px; /* Add some padding */
        background-color: rgba(26, 26, 26, 0.7); /* Semi-transparent background */
    }

    /* Hide non-essential editor elements */
    .loader-wrapper-v2 .menu-bar,
    .loader-wrapper-v2 .tools-panel,
    .loader-wrapper-v2 .editor-main > .preview-area > .project-tabs, /* Hide tabs within preview */
    .loader-wrapper-v2 .timeline,
    .loader-wrapper-v2 .status-bar,
    .loader-wrapper-v2 .h-ruler,
    .loader-wrapper-v2 .v-ruler,
    .loader-wrapper-v2 .color-swatch,
    .loader-wrapper-v2 .flicker-element,
    .loader-wrapper-v2 .cursor-follower,
    .loader-wrapper-v2 .effect-grid,
    .loader-wrapper-v2 .software-notification,
    .loader-wrapper-v2 .render-progress,
    .loader-wrapper-v2 .glitch-overlay {
        display: none;
    }
    
    /* Adjust the main editor area and preview container */
    .loader-wrapper-v2 .editor-main {
        /* Remove grid layout */
        display: block;
        position: relative;
        z-index: 3; /* Above the mobile loader container */
        width: 85%;
        max-width: 300px;
    }
    
    .loader-wrapper-v2 .preview-area {
        /* Ensure preview area takes space if needed */
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        padding: 0;
        width: 100%;
    }
    
    .loader-wrapper-v2 .preview-container {
        /* Make container transparent to see the 3D loader */
        margin: 0;
        border: none;
        background: transparent;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0 30px rgba(108, 99, 255, 0.3); /* Glow effect */
        animation: pulse-glow 3s infinite;
    }
    
    /* Style the loading indicator for better visibility */
    .loader-wrapper-v2 .preview-loading {
        position: static;
        transform: none;
        width: 90%;
        max-width: 300px;
        padding: 20px;
        background-color: rgba(26, 26, 26, 0.8);
        border-radius: 10px;
        border: 1px solid rgba(108, 99, 255, 0.3);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .loader-wrapper-v2 .loading-text {
        font-size: 0.9em;
        margin-top: 10px;
        text-shadow: 0 0 10px rgba(108, 99, 255, 0.7);
        font-weight: 500;
        animation: pulse-glow 2s infinite;
    }
    
    .loader-wrapper-v2 .frame-counter {
        font-size: 0.8em;
        margin-top: 5px;
        color: var(--accent);
    }
    
    .loader-wrapper-v2 .loading-bar {
        height: 5px;
        margin-bottom: 15px;
        background-color: rgba(255, 255, 255, 0.1);
        overflow: hidden;
        position: relative;
        border-radius: 3px;
    }
    
    .loader-wrapper-v2 .loading-fill {
        background: linear-gradient(90deg, 
            var(--primary), 
            var(--accent), 
            var(--primary)
        );
        background-size: 200% 100%;
        animation: shimmer 2s infinite linear;
        box-shadow: 0 0 10px var(--primary);
    }
    
    /* Hide the placeholder background on mobile */
    .loader-wrapper-v2 .preview-placeholder {
        display: none;
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .loader-wrapper-v2 .preview-loading {
        width: 90%; /* Even wider */
    }

    .loader-wrapper-v2 .loading-text {
        font-size: 0.8em;
    }

    .loader-wrapper-v2 .frame-counter {
        font-size: 0.7em;
    }
}

/* Rulers */
.h-ruler, .v-ruler {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.h-ruler {
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
}

.v-ruler {
    top: 0;
    left: 0;
    height: 100%;
    width: 20px;
    display: flex;
    flex-direction: column;
}

.ruler-mark {
    position: relative;
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ruler-mark:nth-child(5n) {
    border-right-color: rgba(255, 255, 255, 0.3);
}

/* Keyframe animations for mobile loader */
@keyframes pulse-glow {
    0% { 
        text-shadow: 0 0 5px rgba(108, 99, 255, 0.5);
        box-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
    }
    50% { 
        text-shadow: 0 0 20px rgba(108, 99, 255, 0.8);
        box-shadow: 0 0 15px rgba(108, 99, 255, 0.5);
    }
    100% { 
        text-shadow: 0 0 5px rgba(108, 99, 255, 0.5);
        box-shadow: 0 0 5px rgba(108, 99, 255, 0.3);
    }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* Update mobile styles to use the animations */
@media (max-width: 768px) {
    /* Show the mobile loader container on mobile */
    .mobile-loader-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: linear-gradient(90deg, #121212, #1e1e1e, #121212);
        background-size: 200% 100%;
        animation: background-pan 15s linear infinite;
    }

    /* Hide the editor UI on mobile and show our custom loader instead */
    .loader-wrapper-v2 .editor-ui {
        display: none;
    }

    /* Add a funny video editor joke to the mobile loader */
    .mobile-loader-container::before {
        content: "Loading creative powers...";
        display: block;
        font-size: 1.2rem;
        font-weight: bold;
        color: #fff;
        margin-bottom: 30px;
        text-shadow: 0 0 10px rgba(108, 99, 255, 0.8);
        animation: text-glitch 5s linear infinite;
    }

    /* Create a funny loading bar that resembles a video timeline */
    .mobile-loader-container::after {
        content: "";
        position: relative;
        display: block;
        width: 85%;
        height: 8px;
        background-color: #333;
        border-radius: 4px;
        margin: 20px auto;
    }

    /* Style for mobile loader content */
    .mobile-loader-container {
        background: linear-gradient(90deg, #121212, #1e1e1e, #121212);
        background-size: 200% 100%;
        animation: background-pan 15s linear infinite;
    }

    /* Add editing icons floating in the background */
    .mobile-loader-container .editing-icon {
        position: absolute;
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.1);
        animation: float-icon 5s ease-in-out infinite;
    }

    /* Add a loading progress bar that mimics video rendering */
    .mobile-loader-progress {
        position: relative;
        width: 85%;
        height: 8px;
        background-color: #333;
        border-radius: 4px;
        overflow: hidden;
        margin: 20px auto;
    }

    .mobile-loader-progress::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #6c63ff, #9f9aff, #6c63ff);
        background-size: 200% 100%;
        animation: video-loading-bar 8s ease-in-out forwards, shimmer 2s linear infinite;
        border-radius: 4px;
    }

    /* Add humorous status messages */
    .mobile-loader-message {
        font-size: 0.9rem;
        color: #bbb;
        height: 1.5em;
        margin-top: 20px;
    }

    /* Create a fake rendering percentage counter */
    .mobile-rendering-percent {
        font-size: 1.8rem;
        font-weight: bold;
        color: #fff;
        margin: 15px 0;
    }

    /* Add a funny spinning icon */
    .mobile-spinner {
        display: inline-block;
        width: 80px;
        height: 80px;
        position: relative;
        margin: 20px 0;
    }

    .spinner-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        animation: logo-spin 3s infinite alternate-reverse;
    }

    @keyframes logo-spin {
        0% {
            transform: rotate(-15deg) scale(0.9);
            filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.3)) brightness(0.8);
        }
        25% {
            transform: rotate(5deg) scale(1.05);
            filter: drop-shadow(0 0 12px rgba(108, 99, 255, 0.6)) brightness(1.1);
        }
        50% {
            transform: rotate(15deg) scale(1.1);
            filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.8)) brightness(1.2);
        }
        75% {
            transform: rotate(5deg) scale(1.05);
            filter: drop-shadow(0 0 12px rgba(108, 99, 255, 0.6)) brightness(1.1);
        }
        100% {
            transform: rotate(-15deg) scale(0.9);
            filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.3)) brightness(0.8);
        }
    }

    /* Make the logo pulse with a 3D effect */
    .spinner-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        animation: logo-spin 5s infinite ease-in-out;
        transform-style: preserve-3d;
        perspective: 1000px;
        filter: drop-shadow(0 0 15px rgba(108, 99, 255, 0.7));
        transition: all 0.3s ease;
    }

    /* Add a cool hue-rotate animation to cycle colors slightly */
    @keyframes color-shift {
        0% { filter: drop-shadow(0 0 15px rgba(108, 99, 255, 0.7)) hue-rotate(0deg); }
        50% { filter: drop-shadow(0 0 20px rgba(155, 99, 255, 0.8)) hue-rotate(30deg); }
        100% { filter: drop-shadow(0 0 15px rgba(108, 99, 255, 0.7)) hue-rotate(0deg); }
    }

    /* Apply the color-shift animation */
    .spinner-logo {
        animation: logo-spin 5s infinite ease-in-out, color-shift 8s infinite alternate;
    }

    /* Remove the old spinner pseudo-element */
    .mobile-spinner::before {
        display: none;
    }

    /* Ensure we don't have duplicate loader bars */
    .mobile-loader-container::after {
        display: none;
    }

    .mobile-tech-message {
        font-size: 0.75rem;
        color: #888;
        font-family: "Courier New", monospace;
        text-align: left;
        width: 85%;
        margin: 10px auto;
        padding: 5px 10px;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
        height: 5em;
        overflow: hidden;
        white-space: nowrap;
    }

    .mobile-tech-line {
        display: block;
        animation: typewriter 3s steps(40, end) infinite;
        overflow: hidden;
    }

    /* Add fun editing facts */
    .mobile-editing-fact {
        position: relative;
        width: 85%;
        margin: 20px auto;
        padding: 15px;
        background-color: rgba(108, 99, 255, 0.1);
        border-radius: 8px;
        border-left: 3px solid #6c63ff;
        font-size: 0.85rem;
        color: #ddd;
        text-align: left;
    }

    /* Removing the ::before pseudo-element since we're adding the title in JavaScript */
}

/* Add new animations for mobile loading screen */
@keyframes video-loading-bar {
    0% { width: 0%; }
    20% { width: 15%; }
    40% { width: 25%; }
    50% { width: 30%; }
    65% { width: 58%; }
    75% { width: 63%; }
    85% { width: 69%; }
    95% { width: 85%; }
    100% { width: 100%; }
}

@keyframes text-glitch {
    0% { transform: translate(0); filter: blur(0); }
    2% { transform: translate(-3px, 1px); filter: blur(0.5px); }
    4% { transform: translate(1px, -1px); filter: blur(0); }
    6% { transform: translate(0); filter: blur(0); }
    8% { transform: translate(2px, 2px); filter: blur(1px); }
    10% { transform: translate(0); filter: blur(0); }
    90% { transform: translate(0); filter: blur(0); }
    92% { transform: translate(-2px, 1px); filter: blur(0.5px); }
    94% { transform: translate(1px, -2px); filter: blur(0); }
    96% { transform: translate(0); filter: blur(1px); }
    98% { transform: translate(2px, 1px); filter: blur(0.5px); }
    100% { transform: translate(0); filter: blur(0); }
}

@keyframes float-icon {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

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