:root {
    --primary-50: #ecfeff;
    --primary-100: #cffafe;
    --primary-200: #a5f3fc;
    --primary-300: #67e8f9;
    --primary-400: #22d3ee;
    --primary-500: #06b6d4;
    --primary-600: #0891b2;
    --primary-700: #0e7490;
    --primary-800: #155e75;
    --primary-900: #164e63;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    position: relative;
}

#three-canvas {
    filter: blur(3px);
    pointer-events: none;
}

.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

.dark .grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-3d-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.08;
}

.floating-cube,
.floating-sphere,
.floating-pyramid {
    position: absolute;
    opacity: 0.15;
}

.floating-cube {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border-radius: 8px;
    top: 25%;
    right: 15%;
    animation: float 8s ease-in-out infinite;
}

.floating-sphere {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #22d3ee, #0891b2);
    border-radius: 50%;
    top: 55%;
    left: 8%;
    animation: float 10s ease-in-out infinite reverse;
}

.floating-pyramid {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 45px solid rgba(6, 182, 212, 0.3);
    top: 35%;
    right: 25%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(5deg); }
}

.profile-image-container {
    position: relative;
}

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

.profile-image-container:hover .profile-image {
    transform: scale(1.03);
}

.skill-bar-container {
    height: 8px;
    border-radius: 100px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    border-radius: 100px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--primary-600), var(--primary-500), var(--primary-400));
}

.timeline-container {
    position: relative;
}

.project-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    transition: opacity 0.3s ease;
}

.project-link {
    transition: all 0.3s ease;
}

.tag {
    transition: all 0.2s ease;
}

.tag:hover {
    transform: translateY(-1px);
}

.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.dark .form-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.dark .form-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.hidden {
    display: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
}

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

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
    transition: width 0.3s ease;
}

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

.hero-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .hero-card {
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.95) 0%, rgba(10, 10, 12, 0.85) 100%);
    border: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 182, 212, 0.1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-200), var(--primary-100));
    color: var(--primary-800);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.dark .hero-badge {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.15));
    color: var(--primary-200);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500), var(--primary-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.interactive-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.interactive-btn:hover {
    transform: translateY(-2px);
}

.skills-card,
.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.75) 100%);
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .skills-card,
.dark .info-card {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.75) 0%, rgba(20, 20, 25, 0.65) 100%);
    border: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(6, 182, 212, 0.05);
}

.skills-card:hover,
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(6, 182, 212, 0.2) inset;
    border-color: rgba(6, 182, 212, 0.3);
}

.dark .skills-card:hover,
.dark .info-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
}

.skill-icon {
    transition: all 0.3s ease;
}

.tech-icon-item {
    transition: all 0.3s ease;
}

.tech-icon-item:hover {
    transform: translateY(-5px);
}

.tech-icon-item:hover i {
    transform: scale(1.1);
}

.tech-label {
    transition: opacity 0.3s ease;
}

.skill-item {
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: 8px;
}

.skill-item:hover {
    background: rgba(6, 182, 212, 0.05);
}

.skill-percentage {
    font-weight: 600;
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    transition: all 0.3s ease;
}

.timeline-content {
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(4px);
}

.ai-category {
    margin-bottom: 2rem;
}

.ai-tool-card {
    transition: all 0.3s ease;
}

.ai-tool-card:hover {
    transform: translateY(-4px);
}

.ai-icon {
    transition: all 0.3s ease;
}

.ai-tool-card:hover .ai-icon {
    transform: scale(1.05);
}

.ai-name {
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(4px);
}

.contact-icon {
    transition: all 0.3s ease;
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.contact-form {
    transition: all 0.3s ease;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
}

.form-error {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

footer {
    position: relative;
}

.gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    transform: scale(1.1);
    color: #ccc;
}

.wiki-card {
    transition: all 0.3s ease;
}

.wiki-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark .wiki-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE STYLES - ALL DEVICES
   ========================================== */

/* Extra Large Screens (1536px and up) */
@media (min-width: 1536px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Large Screens (1280px - 1535px) */
@media (min-width: 1280px) and (max-width: 1535px) {
    html {
        font-size: 17px;
    }
}

/* Medium-Large Screens (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    html {
        font-size: 16px;
    }
    
    .floating-cube {
        width: 40px;
        height: 40px;
    }
    
    .floating-sphere {
        width: 55px;
        height: 55px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 15px;
    }
    
    #three-canvas {
        opacity: 0.15 !important;
    }
    
    .floating-3d-elements {
        opacity: 0.06;
    }
    
    .floating-cube,
    .floating-sphere,
    .floating-pyramid {
        transform: scale(0.7);
    }
    
    .grid-pattern {
        background-size: 50px 50px;
    }
    
    .hero-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .skills-card,
    .info-card {
        padding: 1.25rem;
    }
    
    .gallery-item:hover {
        transform: scale(1.01);
    }
}

/* Tablet Portrait (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    #three-canvas {
        opacity: 0.1 !important;
    }
    
    .floating-3d-elements {
        opacity: 0.04;
    }
    
    .floating-cube,
    .floating-sphere,
    .floating-pyramid {
        transform: scale(0.5);
        animation: none !important;
    }
    
    .grid-pattern {
        background-size: 40px 40px;
        opacity: 0.5;
    }
    
    .hero-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .skills-card,
    .info-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .skill-bar-container {
        height: 6px;
    }
    
    .lightbox-content {
        max-width: 95%;
        padding: 1rem;
    }
    
    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 1.75rem;
    }
}

/* Large Mobile (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
    html {
        font-size: 14px;
    }
    
    #three-canvas {
        display: none !important;
    }
    
    .floating-3d-elements {
        display: none !important;
    }
    
    .floating-particles {
        display: none !important;
    }
    
    .floating-cube,
    .floating-sphere,
    .floating-pyramid {
        display: none !important;
    }
    
    .grid-pattern {
        background-size: 35px 35px;
        opacity: 0.4;
    }
    
    .hero-card {
        padding: 1rem;
        border-radius: 14px;
        backdrop-filter: blur(10px);
    }
    
    .skills-card,
    .info-card {
        padding: 0.875rem;
        border-radius: 12px;
        backdrop-filter: blur(8px);
    }
    
    .skill-bar-container {
        height: 5px;
    }
    
    .tech-icon-item {
        padding: 0.75rem;
    }
    
    .tech-icon-item i {
        font-size: 1.5rem;
    }
    
    .lightbox-content {
        max-width: 98%;
        padding: 0.5rem;
    }
    
    .lightbox-content img {
        border-radius: 8px;
        max-height: 80vh;
    }
    
    .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
    
    .interactive-btn:hover,
    .skills-card:hover,
    .info-card:hover,
    .ai-tool-card:hover {
        transform: translateY(-2px);
    }
}

/* Standard Mobile (375px - 479px) */
@media (min-width: 375px) and (max-width: 479px) {
    html {
        font-size: 14px;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
    }
    
    #three-canvas {
        display: none !important;
    }
    
    .floating-3d-elements {
        display: none !important;
    }
    
    .floating-particles {
        display: none !important;
    }
    
    .grid-pattern {
        background-size: 30px 30px;
        opacity: 0.3;
    }
    
    .hero-card {
        padding: 0.875rem;
        border-radius: 12px;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    .dark .hero-card {
        background: rgba(20, 20, 22, 0.95) !important;
    }
    
    .skills-card,
    .info-card {
        padding: 0.75rem;
        border-radius: 10px;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    .dark .skills-card,
    .dark .info-card {
        background: rgba(30, 30, 35, 0.95) !important;
    }
    
    .skill-bar-container {
        height: 4px;
    }
    
    .tech-icon-item {
        padding: 0.625rem;
    }
    
    .tech-icon-item i {
        font-size: 1.25rem;
    }
    
    .tech-icon-item span {
        font-size: 0.625rem;
    }
    
    .lightbox-content {
        max-width: 100%;
        padding: 0.25rem;
    }
    
    .lightbox-content img {
        border-radius: 6px;
        max-height: 75vh;
    }
    
    .close-lightbox {
        top: 8px;
        right: 12px;
        font-size: 1.25rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
    
    .interactive-btn:hover,
    .skills-card:hover,
    .info-card:hover,
    .ai-tool-card:hover,
    .tech-icon-item:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .interactive-btn:active,
    .skills-card:active,
    .info-card:active,
    .ai-tool-card:active,
    .tech-icon-item:active {
        transform: scale(0.98);
    }
    
    .form-input {
        font-size: 16px !important;
        padding: 14px 16px;
    }
    
    .submit-btn {
        padding: 16px;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .form-message {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Small Mobile (320px - 374px) */
@media (max-width: 374px) {
    html {
        font-size: 13px;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
    }
    
    #three-canvas {
        display: none !important;
    }
    
    .floating-3d-elements {
        display: none !important;
    }
    
    .floating-particles {
        display: none !important;
    }
    
    .grid-pattern {
        background-size: 25px 25px;
        opacity: 0.25;
    }
    
    .hero-card {
        padding: 0.75rem;
        border-radius: 10px;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    .dark .hero-card {
        background: rgba(20, 20, 22, 0.98) !important;
    }
    
    .skills-card,
    .info-card {
        padding: 0.625rem;
        border-radius: 8px;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    .dark .skills-card,
    .dark .info-card {
        background: rgba(30, 30, 35, 0.98) !important;
    }
    
    .skill-bar-container {
        height: 3px;
    }
    
    .tech-icon-item {
        padding: 0.5rem;
    }
    
    .tech-icon-item i {
        font-size: 1.125rem;
    }
    
    .tech-icon-item span {
        font-size: 0.5rem;
    }
    
    .lightbox {
        background-color: rgba(0, 0, 0, 0.98);
    }
    
    .lightbox-content {
        max-width: 100%;
        padding: 0;
    }
    
    .lightbox-content img {
        border-radius: 0;
        max-height: 70vh;
    }
    
    .close-lightbox {
        top: 5px;
        right: 8px;
        font-size: 1.125rem;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
    }
    
    .interactive-btn:hover,
    .skills-card:hover,
    .info-card:hover,
    .ai-tool-card:hover,
    .tech-icon-item:hover,
    .gallery-item:hover,
    .wiki-card:hover,
    .contact-info-card:hover,
    .social-icon:hover {
        transform: none;
    }
    
    .interactive-btn:active,
    .skills-card:active,
    .info-card:active,
    .ai-tool-card:active,
    .tech-icon-item:active {
        transform: scale(0.97);
    }
    
    .form-input {
        font-size: 16px !important;
        padding: 12px 14px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 0.9375rem;
        min-height: 48px;
    }
    
    .form-message {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .interactive-btn:hover,
    .skills-card:hover,
    .info-card:hover,
    .ai-tool-card:hover,
    .tech-icon-item:hover,
    .gallery-item:hover,
    .wiki-card:hover,
    .contact-info-card:hover,
    .social-icon:hover,
    .timeline-item:hover .timeline-content,
    .nav-link:hover::after {
        transform: none;
        width: auto;
    }
    
    .interactive-btn:active,
    .skills-card:active,
    .info-card:active,
    .ai-tool-card:active,
    .tech-icon-item:active,
    .gallery-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 8px;
    }
    
    .form-input {
        font-size: 16px !important;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    #three-canvas {
        display: none !important;
    }
    
    .floating-3d-elements {
        display: none !important;
    }
    
    .floating-particles {
        display: none !important;
    }
    
    .lightbox-content img {
        max-height: 80vh;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image {
        image-rendering: -webkit-optimize-contrast;
    }
    
    .skill-bar-container {
        border: 0.5px solid rgba(0, 0, 0, 0.05);
    }
}

/* Safe Area Insets for Notched Devices */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .fixed.bottom-6 {
        bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
    
    .fixed.top-0 {
        padding-top: env(safe-area-inset-top);
    }
}

/* Print Styles */
@media print {
    #three-canvas,
    .floating-3d-elements,
    .floating-particles,
    .grid-pattern,
    #theme-toggle,
    .lightbox {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-card,
    .skills-card,
    .info-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
