:root {
    --primary-color: #4f46e5;
    --secondary-color: #818cf8;
    --background-color: #0f172a;
    --text-color: #e2e8f0;
    --card-background: #1e293b;
    --gradient-1: #4f46e5;
    --gradient-2: #0ea5e9;
    --gradient-3: #818cf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    perspective: 1px;
    position: relative;
    min-height: 100vh;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styles */
.header {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c') center/cover;
    overflow: hidden;
    transform-style: preserve-3d;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(25, 33, 82, 0.95),
        rgba(35, 39, 105, 0.9)
    );
    transform: translateZ(-1px) scale(2);
}

.profile-card {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    background: rgba(30, 41, 59, 0.8);
    padding: 4rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
    width: 90%;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: cardFloat 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateZ(0);
    transition: transform 0.1s ease;
    will-change: transform;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.47);
}

.profile-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2.5rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
    animation: imagePulse 4s ease-in-out infinite;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.1);
}

.profile-glow {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(79, 70, 229, 0.3),
        transparent 70%
    );
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 1;
}

/* Glitch Text Effect */
.glitch-text {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    white-space: nowrap;
    animation: nameGlow 4s ease-in-out infinite;
    text-align: center;
    width: 100%;
    display: block;
}

/* Typewriter Effect */
.typewriter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.typewriter h2 {
    font-size: 1.2rem;
    color: #e2e8f0;
    font-weight: 400;
    margin-bottom: 2rem;
    position: relative;
    width: fit-content;
    white-space: nowrap;
    overflow: hidden;
    border-right: none;
    animation: typing 2s steps(20, end), fadeIn 0.5s ease-out;
}

/* Cursor effect */
.typewriter h2::after {
    content: '|';
    position: absolute;
    right: -4px;
    color: var(--gradient-1);
    animation: cursor 1s infinite;
    font-weight: 100;
}

/* Typing animation */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Cursor animation */
@keyframes cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Remove old cursor styles and animations */
.typewriter h2 {
    border-right: none;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-icon {
    color: white;
    font-size: 20px;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

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

.social-icon:hover i {
    transform: scale(1.2);
}

/* Services Styles */
.services {
    padding: 80px 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--background-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
}

/* Media queries for services */
@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: minmax(250px, 1fr);
        max-width: 500px;
    }
}

.service-card {
    background: linear-gradient(
        145deg,
        rgba(15, 23, 42, 0.9),
        rgba(15, 23, 42, 0.8)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(15, 23, 42, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 25px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.2);
}

.service-card:hover i {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        padding: 0 15px;
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Skills Styles */
.skills {
    padding: 80px 0;
    background-color: var(--background-color);
}

.skills h2 {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
}

/* Media queries for skills */
@media (max-width: 1400px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: minmax(200px, 1fr);
        max-width: 500px;
    }
    
    .skill-card {
        height: 140px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: minmax(200px, 1fr);
    }
}

.skill-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    height: 160px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(99, 102, 241, 0.2),
        transparent
    );
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(99, 102, 241, 0.1),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.skill-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.2);
}

.skill-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.skill-card h3 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    z-index: 2;
}

/* Update TypeScript icon styling */
.devicon-typescript-plain {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.skill-card:hover .devicon-typescript-plain {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .skill-card {
        height: 140px;
        padding: 1.5rem;
    }
}

/* Contact Styles */
.contact {
    padding: 80px 0;
    background-color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--background-color);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--background-color);
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
}

form {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

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

input, textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    color: var(--background-color);
    background-color: white;
    transition: all 0.3s ease;
}

textarea {
    height: 200px;
    resize: vertical;
    min-height: 150px;
}

/* Hover and focus states */
input:hover, textarea:hover {
    border-color: var(--primary-color);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--gradient-2),
        var(--gradient-3),
        var(--primary-color)
    );
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
    margin: 0 auto 1rem;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

/* Animations */
@keyframes glow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .glitch-text {
        font-size: 1.8rem;
        white-space: normal;
        letter-spacing: 1px;
    }
} 

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
} 

input::placeholder, textarea::placeholder {
    color: #64748b;
} 

/* Add responsive adjustments */
@media (max-width: 768px) {
    .profile-card {
        padding: 2rem;
        width: 95%;
        max-width: 500px;
    }

    .profile-image-wrapper {
        width: 120px;
        height: 120px;
    }

    .glitch-text {
        font-size: 1.8rem;
        white-space: normal;
    }

    .profile-glow {
        width: 140px;
        height: 140px;
    }

    .container {
        padding: 0 10px;
    }
}

/* For very small screens */
@media (max-width: 380px) {
    .profile-card {
        width: 98%;
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .profile-card {
        padding: 5rem;
    }

    .profile-image-wrapper {
        width: 200px;
        height: 200px;
    }
}

/* New animations */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

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

@keyframes nameGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
        color: white;
    }
    50% { 
        text-shadow: 0 0 30px rgba(79, 70, 229, 0.5);
        color: #e2e8f0;
    }
} 

/* Responsive adjustments */
@media (max-width: 1200px) {
    form {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    form {
        max-width: 500px;
        padding: 0 15px;
    }

    input, textarea {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    form {
        padding: 0 10px;
    }

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

/* Add subtle light reflection */
.service-card::after, .skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 30%,
        transparent 100%
    );
    border-radius: inherit;
} 

html {
    scroll-behavior: smooth;
} 

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

.loading {
    position: fixed;
    inset: 0;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gradient-1);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    isolation: isolate;
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* Update Profile Card for mouse movement */
.profile-card {
    /* ... existing styles ... */
    transition: transform 0.1s ease;
    will-change: transform;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-1), var(--gradient-2));
    z-index: 1000;
    transition: width 0.1s ease;
}

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

/* Add prefers-reduced-motion media query for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
} 