/* Reset and Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.logo a::before {
    content: '';
    position: absolute;
    inset: -8px -12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo a:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.logo a:hover::before {
    opacity: 1;
    transform: scale(1);
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.3),
            0 0 20px rgba(255, 255, 255, 0.2),
            0 0 30px rgba(255, 255, 255, 0.1);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 40px rgba(255, 255, 255, 0.3),
            0 0 60px rgba(255, 255, 255, 0.2);
    }
}

.logo a {
    animation: logoGlow 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-toggle.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Main Content */
main {
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

/* Main Header Styles */
.main-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    animation: headerGlow 8s infinite alternate;
}

.company-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: titleFloat 5s ease-in-out infinite;
}

.company-subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    position: relative;
    margin-top: 1rem;
}

.company-subtitle::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes headerGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

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

/* Section Background Animations */
@keyframes gradientBG1 {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientBG2 {
    0% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 100% 0%;
    }
}

@keyframes gradientBG3 {
    0% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 50% 0%;
    }
}

/* Services Section */
.services {
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG1 15s ease infinite;
}

/* Expertise Section */
.expertise {
    position: relative;
    padding: 5rem 2rem;
    overflow: hidden;
    background: linear-gradient(-45deg, #4158D0, #C850C0, #FFCC70);
    background-size: 400% 400%;
    animation: gradientBG2 15s ease infinite;
}

/* Portfolio Section */
.portfolio {
    position: relative;
    padding: 5rem 2rem;
    overflow: hidden;
    background: linear-gradient(-45deg, #0093E9, #80D0C7, #48BB78);
    background-size: 400% 400%;
    animation: gradientBG3 15s ease infinite;
}

/* Common Section Styles */
.services::before,
.expertise::before,
.portfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(80px) saturate(150%);
    -webkit-backdrop-filter: blur(80px) saturate(150%);
    z-index: 0;
}

/* Update section titles for better visibility */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Update expertise section styles for better contrast */
.expertise-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.skill-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.skill-category h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tech-stack li {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tech-stack li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Update portfolio section styles */
.portfolio-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.portfolio-item h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-info p {
    color: rgba(255, 255, 255, 0.9);
}

.visit-site {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.visit-site:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Remove contact section styles */
.contact {
    display: none;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 60%
    );
    opacity: 0.5;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.service-card i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.service-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.service-list li:hover {
    transform: translateX(5px);
    color: #ffffff;
}

.service-list li:hover::before {
    transform: translateX(3px);
    color: #ffffff;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

@keyframes gradientMove {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

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

/* Add mouse move effect */
.services-grid {
    perspective: 1000px;
}

/* Expertise Section */
.expertise-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.expertise-content {
    text-align: center;
    margin-bottom: 4rem;
}

.expertise-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.skill-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 60%
    );
    opacity: 0.5;
}

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    filter: blur(1px);
}

.tech-stack {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.tech-stack li {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-stack li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tech-stack li:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.tech-stack li:hover::before {
    transform: translateX(100%);
}

/* Add animation for skill categories */
@keyframes skillCategoryFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.skill-category {
    animation: skillCategoryFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--animation-order) * 0.2s);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-category {
        padding: 2rem;
    }

    .skill-category h3 {
        font-size: 1.5rem;
    }

    .tech-stack li {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
}

/* Portfolio Section */
.portfolio-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
    padding: 0 2rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        1000px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 60%
    );
    opacity: 0.5;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.1);
}

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

.portfolio-item h3 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.portfolio-item h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    filter: blur(1px);
}

.device-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr 0.5fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

/* Device Frames */
.device-frame {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.device-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.desktop-view .device-frame {
    aspect-ratio: 16/9;
}

.tablet-view .device-frame {
    aspect-ratio: 4/3;
}

.mobile-view .device-frame {
    aspect-ratio: 9/16;
}

.device-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.device-frame iframe.loaded {
    opacity: 1;
}

/* Device Frame Decorations */
.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-view .device-frame::before {
    width: 30px;
}

/* Project Info */
.project-info {
    text-align: center;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.project-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.visit-site {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.visit-site:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.visit-site i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.visit-site:hover i {
    transform: translateX(3px);
}

/* Device Frame Loading State */
.device-frame {
    position: relative;
    overflow: hidden;
}

.device-frame.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.device-frame.loading::before {
    content: 'Loading Preview...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.device-frame.error::before {
    content: 'Preview Unavailable';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.device-frame.error::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2;
}

/* Add loading animation */
@keyframes loadingPulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.device-frame.loading::before {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .device-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .tablet-view, .mobile-view {
        max-width: 400px;
        margin: 0 auto;
    }

    .portfolio-item {
        padding: 2rem;
    }

    .portfolio-item h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        gap: 3rem;
    }

    .visit-site {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes shapeAnimation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ScrollReveal Animations */
.reveal-text, .reveal-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Ensure sections are visible */
section {
    opacity: 1;
    visibility: visible;
    margin-bottom: 2rem;
}

/* Update ScrollReveal Animations to show content by default */
.reveal-text, .reveal-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Ensure content is visible */
main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

section {
    position: relative;
    z-index: 1;
}

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ffffff;
    color: var(--primary-color);
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

/* High Contrast Mode Support */
@media (forced-colors: active) {
    .service-card,
    .skill-category,
    .portfolio-item {
        border: 2px solid currentColor;
    }
}

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

/* Enhanced Mobile Navigation */
.nav-toggle {
    background: transparent;
    border: none;
    padding: 10px;
    margin: -10px;
    cursor: pointer;
}

.nav-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

/* Improved Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

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

    .device-showcase {
        grid-template-columns: 1.5fr 1fr 0.5fr;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .company-title {
        font-size: 3.5rem;
    }

    .company-subtitle {
        font-size: 1.6rem;
    }

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

    .portfolio-item h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        background: rgba(0, 0, 0, 0.95);
        padding: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }

    .company-title {
        font-size: 3rem;
    }

    .company-subtitle {
        font-size: 1.4rem;
        letter-spacing: 4px;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card h3 {
        font-size: 1.6rem;
    }

    .portfolio-item {
        padding: 1.5rem;
    }

    .device-showcase {
        grid-template-columns: 1fr;
    }

    .tablet-view, .mobile-view {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .logo a {
        font-size: 1.5rem;
    }

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

    .company-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .portfolio-item h3 {
        font-size: 1.6rem;
    }

    .visit-site {
        width: 100%;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }

    .nav-toggle,
    .nav-links {
        display: none;
    }

    .service-card,
    .skill-category,
    .portfolio-item {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #000;
    }

    .device-showcase {
        display: none;
    }

    .project-info {
        page-break-inside: avoid;
    }

    .visit-site {
        display: none;
    }

    body::before {
        display: none;
    }

    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
}

/* Loading States */
.portfolio-item iframe {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item iframe.loaded {
    opacity: 1;
}

/* Better Touch Targets */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .visit-site,
    .service-card,
    .skill-category {
        padding: 1rem 1.5rem;
        min-height: 44px;
    }

    .tech-stack li {
        padding: 12px 20px;
    }
}

/* Keyboard Navigation */
:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Content Loading States */
.loading-placeholder {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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