/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --primary-bg: #0a0e1a;
    --secondary-bg: #1a1f2e;
    --accent-bg: #2a3441;
    --primary-text: #ffffff;
    --secondary-text: #b8c5d6;
    --accent-color: #00d4ff;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-light: rgba(0, 212, 255, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    
    /* Light Theme Colors */
    --light-primary-bg: #ffffff;
    --light-secondary-bg: #f8fafc;
    --light-accent-bg: #e2e8f0;
    --light-primary-text: #1a202c;
    --light-secondary-text: #4a5568;
    --light-accent-color: #0066cc;
    --light-shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background: var(--primary-bg);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Light Theme */
body.light-theme {
    --primary-bg: var(--light-primary-bg);
    --secondary-bg: var(--light-secondary-bg);
    --accent-bg: var(--light-accent-bg);
    --primary-text: var(--light-primary-text);
    --secondary-text: var(--light-secondary-text);
    --accent-color: var(--light-accent-color);
    --shadow-light: var(--light-shadow);
    --shadow-dark: var(--light-shadow);
}

/* Animated Theme Switch */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switch {
    position: relative;
    width: 80px;
    height: 40px;
}

.theme-switch-checkbox {
    display: none;
}

.theme-switch-label {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.theme-switch-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    transition: all 0.6s ease;
    border-radius: 25px;
}

.theme-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.theme-switch-button {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    transition: all 0.3s ease;
}

.sun-icon {
    color: #ffa500;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg) scale(0);
}

.moon-icon {
    color: #4169e1;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Stars Animation */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 2s infinite;
}

.star:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 40%;
    right: 25%;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    bottom: 30%;
    left: 30%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    top: 60%;
    right: 40%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    bottom: 20%;
    right: 20%;
    animation-delay: 0.8s;
}

/* Clouds Animation */
.clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    opacity: 0;
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.cloud:nth-child(1) {
    width: 12px;
    height: 4px;
    top: 25%;
    left: 15%;
    animation: float-cloud 3s infinite ease-in-out;
}

.cloud:nth-child(1):before {
    width: 6px;
    height: 6px;
    top: -3px;
    left: 2px;
}

.cloud:nth-child(1):after {
    width: 8px;
    height: 8px;
    top: -4px;
    right: 2px;
}

.cloud:nth-child(2) {
    width: 10px;
    height: 3px;
    bottom: 30%;
    right: 20%;
    animation: float-cloud 4s infinite ease-in-out reverse;
}

.cloud:nth-child(2):before {
    width: 5px;
    height: 5px;
    top: -2px;
    left: 1px;
}

.cloud:nth-child(2):after {
    width: 6px;
    height: 6px;
    top: -3px;
    right: 1px;
}

/* Light Theme State */
.theme-switch-checkbox:checked + .theme-switch-label .theme-switch-bg {
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 100%);
}

.theme-switch-checkbox:checked + .theme-switch-label .theme-switch-slider {
    transform: translateX(42px);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.theme-switch-checkbox:checked + .theme-switch-label .sun-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.theme-switch-checkbox:checked + .theme-switch-label .moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg) scale(0);
    color: #f39c12;
}

.theme-switch-checkbox:checked + .theme-switch-label .stars .star {
    opacity: 0;
}

.theme-switch-checkbox:checked + .theme-switch-label .clouds {
    opacity: 1;
}

.theme-switch-checkbox:checked + .theme-switch-label .clouds .cloud {
    opacity: 1;
}

/* Hover Effects */
.theme-switch-label:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 212, 255, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.theme-switch-label:hover .theme-switch-slider {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Active State Animation */
.theme-switch-label:active {
    transform: scale(0.95);
}

.theme-switch-label:active .theme-switch-slider {
    transform: scale(0.9);
}

.theme-switch-checkbox:checked + .theme-switch-label:active .theme-switch-slider {
    transform: translateX(42px) scale(0.9);
}

/* Keyframe Animations */
@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float-cloud {
    0%, 100% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(3px);
    }
}

/* Glow Effect */
.theme-switch-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.3), 
        rgba(102, 126, 234, 0.3), 
        rgba(0, 212, 255, 0.3));
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: rotate-glow 3s linear infinite;
}

.theme-switch-wrapper:hover::before {
    opacity: 1;
}

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

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

/* Scroll to Top Button - Super Cool & Classy */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    outline: none;
    border: none;
    background: none;
}

.scroll-to-top:focus {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.5);
}

.scroll-to-top:active {
    outline: none !important;
    border: none !important;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-btn-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
    outline: none;
    border: none;
    background: none;
}

.scroll-btn-wrapper:focus {
    outline: none !important;
    border: none !important;
}

.scroll-btn-wrapper:active {
    outline: none !important;
    border: none !important;
}

.scroll-btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #0099cc 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 0 0 0 rgba(0, 212, 255, 0.4);
}

.scroll-btn-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.scroll-arrow {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    animation: float-arrow 2s ease-in-out infinite;
}

.scroll-trail {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0;
    transition: all 0.3s ease;
}

.trail-dot {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: trail-fade 1.5s ease-in-out infinite;
}

.trail-dot:nth-child(1) {
    animation-delay: 0s;
}

.trail-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.trail-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.scroll-ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    opacity: 0;
    transition: all 0.6s ease;
}

/* Hover Effects */
.scroll-to-top:hover .scroll-btn-wrapper {
    transform: scale(1.1);
}

.scroll-to-top:hover .scroll-btn-bg {
    background: linear-gradient(135deg, #00ffff 0%, var(--accent-color) 100%);
    box-shadow: 
        0 12px 35px rgba(0, 212, 255, 0.4),
        0 0 0 10px rgba(0, 212, 255, 0.1);
}

.scroll-to-top:hover .scroll-arrow {
    transform: translateY(-3px);
    animation: bounce-arrow 0.6s ease infinite;
}

.scroll-to-top:hover .scroll-trail {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Active/Click Effect */
.scroll-to-top:active .scroll-btn-wrapper {
    transform: scale(0.95);
}

.scroll-to-top:active .scroll-ripple {
    transform: scale(1.5);
    opacity: 1;
}

/* Magnetic Effect */
.scroll-to-top::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.1), 
        rgba(102, 126, 234, 0.1), 
        rgba(0, 212, 255, 0.1));
    opacity: 0;
    transition: all 0.3s ease;
    animation: rotate-glow 4s linear infinite;
    z-index: -1;
}

.scroll-to-top:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

/* Pulsing Effect When Visible */
.scroll-to-top.visible .scroll-btn-bg {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Keyframe Animations */
@keyframes float-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes trail-fade {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(0, 212, 255, 0.3),
            0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 
            0 8px 25px rgba(0, 212, 255, 0.5),
            0 0 0 8px rgba(0, 212, 255, 0.2);
    }
}

@keyframes scroll-up-trail {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Scroll Animation Trail Effect */
.scroll-to-top.scrolling::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 20px;
    background: linear-gradient(to top, transparent, var(--accent-color), transparent);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    animation: scroll-up-trail 0.8s ease-out;
}

/* Responsive Design for Scroll Button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-btn-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .scroll-arrow {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-btn-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .scroll-arrow {
        font-size: 1.1rem;
    }
}

/* High Performance Mode for Mobile */
@media (max-width: 767px) {
    .scroll-to-top::before {
        display: none; /* Disable magnetic effect on mobile for performance */
    }
    
    .scroll-to-top.visible .scroll-btn-bg {
        animation: none; /* Disable pulse animation on mobile */
    }
}

/* Accessibility */
.scroll-to-top:focus {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.5) !important;
}

.scroll-to-top:focus .scroll-btn-bg {
    box-shadow: 
        0 12px 35px rgba(0, 212, 255, 0.4),
        0 0 0 3px rgba(0, 212, 255, 0.3);
}

.scroll-to-top:active {
    outline: none !important;
    border: none !important;
}

.scroll-to-top:active:focus {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.5) !important;
}

/* Dark/Light Theme Adaptations */
.light-theme .scroll-btn-bg {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    box-shadow: 
        0 8px 25px rgba(0, 102, 204, 0.3),
        0 0 0 0 rgba(0, 102, 204, 0.4);
}

.light-theme .scroll-to-top:hover .scroll-btn-bg {
    background: linear-gradient(135deg, #0080ff 0%, #0066cc 100%);
    box-shadow: 
        0 12px 35px rgba(0, 102, 204, 0.4),
        0 0 0 10px rgba(0, 102, 204, 0.1);
}

.light-theme .scroll-to-top.visible .scroll-btn-bg {
    animation: pulse-glow-light 3s ease-in-out infinite;
}

@keyframes pulse-glow-light {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(0, 102, 204, 0.3),
            0 0 0 0 rgba(0, 102, 204, 0.4);
    }
    50% {
        box-shadow: 
            0 8px 25px rgba(0, 102, 204, 0.5),
            0 0 0 8px rgba(0, 102, 204, 0.2);
    }
}

/* Responsive Design for Theme Switch */
@media (max-width: 768px) {
    .theme-switch-wrapper {
        top: 15px;
        right: 15px;
    }
    
    .theme-switch {
        width: 70px;
        height: 35px;
    }
    
    .theme-switch-slider {
        width: 31px;
        height: 31px;
    }
    
    .theme-switch-checkbox:checked + .theme-switch-label .theme-switch-slider {
        transform: translateX(37px);
    }
    
    .theme-icon {
        font-size: 14px;
    }
}

/* Hero Section - Mobile First */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--primary-bg);
    padding: 2rem 0;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 2rem;
}

.hero-logo i {
    color: var(--accent-color);
    font-size: 2rem;
}

.hero-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    z-index: 2;
    text-align: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    width: 100%;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 100%;
    max-width: 280px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn i {
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%);
}

.btn-primary:hover i {
    transform: translateX(3px) scale(1.1);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover i {
    transform: translateY(-2px) scale(1.1);
}

.btn-secondary:active {
    transform: translateY(-1px);
    background: var(--accent-color);
    color: white;
}

/* Simple ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Focus states */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3), 0 0 0 3px rgba(0, 212, 255, 0.3);
}

.btn-secondary:focus {
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1), 0 0 0 3px rgba(0, 212, 255, 0.3);
}

/* Hero Visual - Mobile First */
.hero-visual {
    position: relative;
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

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

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
}

.floating-icon:nth-child(4) {
    top: 10%;
    right: 10%;
    animation-delay: 1s;
}

.hero-graphic {
    z-index: 2;
}

.server-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: pulse 2s ease-in-out infinite;
    transform: scale(0.7);
}

.server-unit {
    width: 150px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.server-unit::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: blink 2s ease-in-out infinite;
}

.server-unit::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Hero Responsive Breakpoints */
@media (min-width: 480px) {
    .hero-container {
        padding: 0 1.5rem;
    }
    
    .hero-logo {
        font-size: 1.75rem;
        margin-bottom: 2.25rem;
    }
    
    .hero-logo i {
        font-size: 2.25rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-tagline {
        font-size: 1.15rem;
        margin-bottom: 0.85rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
        min-width: 180px;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .server-stack {
        transform: scale(0.8);
    }
    
    .floating-icon {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .hero-container {
        padding: 0 2rem;
        max-width: 750px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
    }
    
    .hero-logo {
        justify-content: flex-start;
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-logo i {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .server-stack {
        transform: scale(0.9);
        gap: 1rem;
    }
    
    .server-unit {
        width: 180px;
        height: 55px;
    }
    
    .floating-icon {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .hero-container {
        max-width: 970px;
        gap: 4rem;
    }
    
    .hero-logo {
        font-size: 2.25rem;
        margin-bottom: 3rem;
    }
    
    .hero-logo i {
        font-size: 2.75rem;
    }
    
    .hero-title {
        font-size: 3.25rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 450px;
    }
    
    .server-stack {
        transform: scale(1);
    }
    
    .server-unit {
        width: 200px;
        height: 60px;
    }
}

@media (min-width: 1200px) {
    .hero-container {
        max-width: 1170px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1400px) {
    .hero-container {
        max-width: 1320px;
    }
    
    .hero-visual {
        height: 500px;
    }
}

/* Background Animation */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite;
}

/* Container - Mobile First */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Container responsive breakpoints */
@media (min-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
        max-width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Section Styles - Mobile First */
section {
    padding: 3rem 0;
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--secondary-text);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Responsive Breakpoints */
@media (min-width: 480px) {
    section {
        padding: 3.5rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        max-width: 90%;
    }
}

@media (min-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
    }
}

@media (min-width: 992px) {
    section {
        padding: 5rem 0;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Services Section - Mobile First */
.services {
    background: var(--secondary-bg);
}

/* Service Tabs */
.service-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent-bg);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.tab-button i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--gradient-primary);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.tab-button.active i {
    transform: scale(1.1);
}

/* Tab Content */
.tab-content-wrapper {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

/* Future Scope Section */
.future-scope {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
}

.future-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    text-align: center;
}

.future-subtitle {
    font-size: 0.95rem;
    color: var(--secondary-text);
    max-width: 100%;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-align: center;
}

.future-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.future-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px dashed rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.future-card::before {
    content: 'ROADMAP';
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #0099cc 100%);
    color: white;
    padding: 4px 35px;
    font-size: 0.65rem;
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 1.5px;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.future-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: transparent;
    pointer-events: none;
}

.future-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
}

.future-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.future-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.future-card p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.future-features {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

.future-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: var(--secondary-text);
    font-size: 0.85rem;
}

.future-features i {
    color: var(--accent-color);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.service-card {
    background: var(--accent-bg);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-dark);
    border-color: var(--accent-color);
}

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

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.service-card p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-features {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: var(--secondary-text);
    font-size: 0.85rem;
}

.service-features i {
    color: var(--accent-color);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Services Responsive Breakpoints */
@media (min-width: 480px) {
    .service-tabs {
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .tab-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .tab-button i {
        font-size: 1.1rem;
    }
    
    .services-grid {
        gap: 1.75rem;
    }
    
    .service-card {
        padding: 1.75rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .service-card h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Future Scope Responsive */
    .future-title {
        font-size: 1.75rem;
    }
    
    .future-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .future-grid {
        gap: 1.75rem;
    }
    
    .future-card {
        padding: 1.75rem;
    }
    
    .future-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .future-card h4 {
        font-size: 1.3rem;
    }
    
    .future-card p {
        font-size: 0.95rem;
    }
    
    .future-features li {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .service-tabs {
        gap: 1.25rem;
    }
    
    .tab-button {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }
    
    .tab-button i {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        width: 75px;
        height: 75px;
        font-size: 1.85rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
    
    .service-card p {
        font-size: 1rem;
    }
    
    .service-features li {
        font-size: 0.95rem;
    }
    
    /* Future Scope Responsive */
    .future-title {
        font-size: 2rem;
    }
    
    .future-subtitle {
        font-size: 1.1rem;
        max-width: 600px;
    }
    
    .future-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .future-card {
        padding: 2rem;
    }
    
    .future-icon {
        width: 75px;
        height: 75px;
        font-size: 1.85rem;
    }
    
    .future-card h4 {
        font-size: 1.4rem;
    }
    
    .future-card p {
        font-size: 1rem;
    }
    
    .future-features li {
        font-size: 0.95rem;
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px var(--shadow-dark);
    }
    
    /* Future Scope Responsive */
    .future-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .future-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    }
}

@media (min-width: 1200px) {
    .services-grid {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .service-card {
        padding: 2.5rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .service-features li {
        font-size: 1rem;
    }
}
/* About Section - Mobile First */
.about {
    background: var(--primary-bg);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.about-text {
    width: 100%;
}

.about-description {
    font-size: 1rem;
    color: var(--secondary-text);
    margin-bottom: 0;
    line-height: 1.7;
}

.about-visual {
    width: 100%;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem;
    background: var(--accent-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.tech-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px var(--shadow-dark);
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.tech-item span {
    font-weight: 600;
    color: var(--primary-text);
    font-size: 0.85rem;
}

/* About Responsive Breakpoints */
@media (min-width: 480px) {
    .about-content {
        gap: 3.5rem;
    }
    
    .about-description {
        font-size: 1.05rem;
    }
    
    .tech-stack {
        gap: 1.25rem;
    }
    
    .tech-item {
        padding: 1.25rem;
        gap: 0.5rem;
    }
    
    .tech-item i {
        font-size: 1.75rem;
    }
    
    .tech-item span {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }
    
    .about-description {
        font-size: 1.1rem;
    }
    
    .tech-stack {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .tech-item {
        padding: 1.5rem;
    }
    
    .tech-item i {
        font-size: 2rem;
    }
    
    .tech-item span {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .about-content {
        gap: 5rem;
    }
    
    .tech-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px var(--shadow-dark);
    }
}

/* Contact Section - Mobile First */
.contact {
    background: var(--secondary-bg);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-info {
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

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

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary-text);
}

.contact-details p {
    color: var(--secondary-text);
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.phone-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.phone-link:hover {
    color: var(--primary-text);
    transform: translateX(3px);
}

.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    width: 100%;
    position: relative;
}

.contact-graphic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-expand 3s ease-out infinite;
}

.pulse-circle.delay-1 {
    animation-delay: 1s;
}

.pulse-circle.delay-2 {
    animation-delay: 2s;
}

.contact-graphic i {
    font-size: 2.5rem;
    color: var(--accent-color);
    z-index: 2;
}

/* Contact Responsive Breakpoints */
@media (min-width: 480px) {
    .contact-item {
        gap: 1.25rem;
        margin-bottom: 1.75rem;
    }
    
    .contact-icon {
        width: 55px;
        height: 55px;
        font-size: 1.35rem;
    }
    
    .contact-details h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
    
    .contact-visual {
        height: 250px;
    }
    
    .pulse-circle {
        width: 140px;
        height: 140px;
    }
    
    .contact-graphic i {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .contact-item {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .contact-details h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-details p {
        font-size: 1rem;
    }
    
    .contact-visual {
        height: 350px;
    }
    
    .pulse-circle {
        width: 160px;
        height: 160px;
    }
    
    .contact-graphic i {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .contact-content {
        gap: 4rem;
    }
    
    .contact-visual {
        height: 400px;
    }
    
    .pulse-circle {
        width: 200px;
        height: 200px;
    }
    
    .contact-graphic i {
        font-size: 4rem;
    }
}

/* Footer - Mobile First */
.footer {
    background: var(--primary-bg);
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.footer-logo i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.footer-text {
    color: var(--secondary-text);
    max-width: 100%;
    margin: 0 auto 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--accent-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--secondary-text);
    font-size: 0.85rem;
}

/* Footer Responsive Breakpoints */
@media (min-width: 480px) {
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        margin-bottom: 2rem;
    }
    
    .footer-logo {
        font-size: 1.4rem;
    }
    
    .footer-logo i {
        font-size: 1.75rem;
    }
    
    .footer-text {
        font-size: 0.95rem;
        max-width: 90%;
    }
    
    .footer-social {
        gap: 1rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .footer-bottom {
        padding-top: 2rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-logo i {
        font-size: 2rem;
    }
    
    .footer-text {
        font-size: 1rem;
        max-width: 500px;
    }
    
    .social-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px var(--shadow-light);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(5px) translateY(-5px);
    }
    50% {
        transform: translateX(-5px) translateY(5px);
    }
    75% {
        transform: translateX(5px) translateY(5px);
    }
}

@keyframes pulse-expand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Additional Mobile-First Responsive Utilities */

/* Typography Scaling */
@media (min-width: 320px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 480px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Spacing Utilities */
.spacing-xs { padding: 0.5rem; }
.spacing-sm { padding: 1rem; }
.spacing-md { padding: 1.5rem; }
.spacing-lg { padding: 2rem; }
.spacing-xl { padding: 3rem; }

@media (min-width: 768px) {
    .spacing-xs { padding: 0.75rem; }
    .spacing-sm { padding: 1.5rem; }
    .spacing-md { padding: 2rem; }
    .spacing-lg { padding: 3rem; }
    .spacing-xl { padding: 4rem; }
}

/* Visibility Utilities */
.mobile-only { display: block; }
.tablet-up { display: none; }
.desktop-up { display: none; }

@media (min-width: 768px) {
    .mobile-only { display: none; }
    .tablet-up { display: block; }
}

@media (min-width: 992px) {
    .desktop-up { display: block; }
}

/* Grid Utilities */
.grid-1 { display: grid; grid-template-columns: 1fr; }
.grid-2 { display: grid; grid-template-columns: 1fr; }
.grid-3 { display: grid; grid-template-columns: 1fr; }

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

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

/* Text Alignment */
.text-center-mobile { text-align: center; }

@media (min-width: 768px) {
    .text-left-tablet { text-align: left; }
    .text-center-mobile { text-align: left; }
}

/* Flex Utilities */
.flex-column-mobile {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .flex-row-tablet {
        flex-direction: row;
    }
}

/* Background Animation Responsive */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite;
}

@media (min-width: 768px) {
    .hero-bg-animation {
        background: 
            radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 767px) {
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .floating-icon {
        animation-duration: 8s; /* Slower animations on mobile */
    }
    
    .server-stack {
        animation-duration: 3s;
    }
}

/* Touch-friendly Interactive Elements */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .tech-item:hover,
    .social-link:hover {
        transform: none;
    }
    
    .service-card:active,
    .tech-item:active,
    .social-link:active {
        transform: scale(0.98);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .contact-icon,
    .tech-item i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 2rem;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .server-stack {
        transform: scale(0.6);
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Ultra-wide Screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    
    .hero-container {
        max-width: 1500px;
    }
    
    .nav-container {
        max-width: 1500px;
    }
}

/* Print Styles */
@media print {
    .theme-switch-wrapper,
    .hamburger,
    .floating-elements,
    .hero-bg-animation {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        page-break-after: always;
    }
    
    .service-card,
    .tech-item {
        break-inside: avoid;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* AOS Animation Overrides */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Focus States for Accessibility */
.btn:focus,
.theme-switch-checkbox:focus + .theme-switch-label,
.social-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --accent-color: #00ffff;
        --primary-text: #ffffff;
        --secondary-text: #cccccc;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}