/* -------------------- Global Styles -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    color: #ffffff;
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Enhanced animated background with floating orbs */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 150, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(0, 150, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* -------------------- Floating Particles -------------------- */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00ffff, transparent);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    opacity: 0.7;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: -2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: -4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: -6s; animation-duration: 16s; }
.particle:nth-child(5) { left: 60%; animation-delay: -8s; animation-duration: 19s; }
.particle:nth-child(6) { left: 70%; animation-delay: -10s; animation-duration: 21s; }
.particle:nth-child(7) { left: 80%; animation-delay: -12s; animation-duration: 17s; }
.particle:nth-child(8) { left: 90%; animation-delay: -14s; animation-duration: 23s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
        opacity: 1;
    }
}

/* -------------------- Dock Navigation -------------------- */
.dock-navbar {
    position: fixed;
    left: 50vw;                 /* use viewport width instead of parent */
    bottom: env(safe-area-inset-bottom, 20px); /* safe for notches */
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 95%;             /* responsive */
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.dock-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.dock-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.dock-item:hover .dock-icon::before {
    left: 100%;
}

.dock-icon i {
    color: #000;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    font-weight: 900;
    z-index: 1;
}

.dock-item span {
    position: absolute;
    bottom: 70px;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-item:hover .dock-icon {
    transform: scale(1.4) translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
}

.dock-item:hover .dock-icon i {
    color: #ffffff;
}

.dock-item:hover span {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dock-item.active .dock-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* -------------------- Sticky Header -------------------- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-header.show {
    opacity: 1;
    transform: translateY(0);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-name {
    color: #00ffff;
    font-weight: 600;
    font-size: 1.5rem;
}

.header-social {
    display: flex;
    gap: 15px;
}

.header-social a {
    color: #00ffff;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    width:50px;
    height:50px;
}

.header-social a:hover {
    color: #ffffff;
}

/* -------------------- Sections -------------------- */
section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    scroll-margin-top: 70px;
}

/* -------------------- Hero Section -------------------- */
#hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    width: 100%;
    z-index: 10;
    position: relative;
    text-align: center;
}

.hero-main {
    flex: 1;
    max-width: 700px;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.title-name {
    display: block;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00ffff 0%, #ffffff 50%, #ff6b6b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.title-subtitle {
    display: block;
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.5s forwards;
    justify-content: center;
}

.cta-primary,
.cta-secondary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%);
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.cta-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.5);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* Social Links in Hero */
.social-links {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 3s forwards;
    justify-content: center;
}

.social-link {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-tooltip {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.social-link:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: #00ffff;
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #00ffff;
    animation: typing 3s steps(14, end) 1s forwards, blink 0.75s step-end infinite 1s;
    width: 0;
}

@keyframes typing {
    from { width: 0; }
    to { width: 14ch; }
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #00ffff; }
}

/* -------------------- About Section -------------------- */
#about {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.profile-image {
    width: 350px;
    height: 350px;
    position: relative;
    cursor: pointer;
    transition: all 0.6s ease;
}

.profile-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #00ffff, #0099cc, #533483) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotate 10s linear infinite;
}

.profile-pic {
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}

.profile-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

.profile-image:hover .profile-glow {
    opacity: 1;
}

.profile-image:hover .profile-ring {
    animation-duration: 2s;
}

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

.about-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
    min-width: 300px;
}

.about-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #00ffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #00ffff, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text .subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-text .description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* -------------------- Section Headings -------------------- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00ffff, #ffffff, #533483);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 300;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    border-radius: 2px;
}

/* -------------------- Grid Layouts -------------------- */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.card:hover .card-glow {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.timeline-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.1));
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.timeline-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffff;
    margin: 0;
}

.card-content .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.card-content .card-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 0.5rem;
}

.card-content .card-year {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-content .card-description {
    font-size: 1rem;
    color: #00ffff;
    font-style: italic;
}

/* -------------------- Coverflow Skills Carousel -------------------- */
.coverflow-container {
    position: relative;
    max-width: 1200px;
    margin: -18px 284px;
    perspective: 1000px;
    overflow: visible;
    padding: 2rem 0;
}

.coverflow-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-card {
    position: absolute;
    width: 280px;
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform-origin: center center;
}

.skill-card.active {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.3);
    z-index: 10;
}

.skill-icon {
    font-size: 4rem;
    color: #00ffff;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card.active .skill-icon {
    color: #ffffff;
    transform: scale(1.2);
}

.skill-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skill-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

/* Navigation buttons */
.coverflow-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;

}


.nav-btn {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.nav-btn:hover {
    background: rgba(0, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Indicators */
.coverflow-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #00ffff;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.indicator:hover {
    background: rgba(0, 255, 255, 0.7);
    transform: scale(1.1);
}

/* Project cards */
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 150, 255, 0.1));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 4rem;
    color: #00ffff;
    opacity: 0.7;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ffff, #0099cc);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.5);
}

.project-content {
    flex: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

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

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 0.8rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 1.1rem;
    z-index: 1;
}

.input-wrapper textarea + i {
    top: 1rem;
    transform: none;
}

.form-control {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00ffff 0%, #0099cc 100%);
    border: none;
    padding: 1.3rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

/* -------------------- Animations & Helpers -------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }

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

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

@keyframes ripple {
    to { transform: scale(2); opacity: 0; }
}

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

/* -------------------- Scroll Progress Bar -------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #0099cc);
    z-index: 10000;
    transition: width 0.3s ease;
}

/* -------------------- Preloader -------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: white;
}

.preloader-logo {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
}

.preloader-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    animation: preloaderSpin 1s linear infinite;
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: #00ffff;
    z-index: 1;
}

.preloader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #0099cc);
    width: 0%;
    animation: progressLoad 2s ease-in-out forwards;
}

.preloader-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes progressLoad { 0% { width: 0%; } 100% { width: 100%; } }
@keyframes textPulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

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

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffff, #0099cc);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0099cc, #00ffff);
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.5rem;
        gap: 2rem;
    }

    .title-name {
        font-size: 3rem; /* smoother transition */
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .profile-image {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3.5rem 1rem;
    }

    .title-name {
        font-size: 2.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-primary, .cta-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .about-text h1 {
        font-size: 2.4rem;
    }

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

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

    .dock-navbar {
        padding: 0.6rem 1rem;
        gap: 0.8rem;
    }

    .dock-icon {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2.5rem 1rem;
    }

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

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .about-text h1,
    .section-title {
        font-size: 2rem;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }

    .dock-navbar {
        padding: 0.5rem 0.8rem;
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .dock-icon {
        width: 38px;
        height: 38px;
    }

    .dock-icon i {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .title-name,
    .about-text h1,
    .section-title {
        font-size: 1.8rem;
    }

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

    .skill-card {
        width: 160px;
        height: 220px;
    }
}
/* -------------------- Floating Dock Responsive -------------------- */
@media (max-width: 768px) {
    .dock-navbar {
        bottom: env(safe-area-inset-bottom, 10px); /* safe for iPhone notch */
        max-width: 95%;
        flex-wrap: wrap;
    }

    .dock-item span {
        bottom: 55px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dock-navbar {
        bottom: env(safe-area-inset-bottom, 8px);
        max-width: 95%;
        padding: 0.5rem 0.8rem;
        gap: 0.6rem;
        justify-content: center;
    }

    .dock-icon {
        width: 38px;
        height: 38px;
    }

    .dock-icon i {
        font-size: 1.1rem;
    }

    .dock-item span {
        bottom: 50px;
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .dock-navbar {
        gap: 0.4rem;
        padding: 0.4rem 0.6rem;
    }

    .dock-icon {
        width: 34px;
        height: 34px;
    }

    .dock-icon i {
        font-size: 1rem;
    }

    .dock-item span {
        bottom: 45px;
        font-size: 0.7rem;
    }
}


/* -------------------- Accessibility -------------------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    z-index: 10001;
    transition: top 0.25s;
    text-decoration: none;
}

.skip-link:focus {
    top: 6px;
}

.dock-item:focus-visible,
.cta-primary:focus-visible,
.cta-secondary:focus-visible,
.form-control:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .dock-item:hover .dock-icon {
        transform: none;
    }
    
    .dock-item:active .dock-icon {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .card:hover,
    .profile-image:hover {
        transform: none;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
    
    .card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .social-link:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}