/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

.heading-font {
    font-family: 'Space Grotesk', sans-serif;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(90deg, #6366F1, #EC4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
}

/* Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 9999px;
    border-width: 1.5px;
}

.border-gradient {
    position: relative;
    z-index: 1;
    border-radius: 9999px;
}

.border-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 9999px;
    background: linear-gradient(145deg, black, white);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.text-gradient {
    background: linear-gradient(270deg, #000, #666, #fff, #666, #000);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-transform: uppercase;
    animation: gradientMove 4s ease-in-out infinite;
}

.nav-link {
    position: relative;
    color: #111;
    padding: 4px 6px;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1e88e5;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: linear-gradient(90deg, #000, #fff);
    transition: width 0.3s ease-in-out;
}

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

.mobile-menu-icon {
    color: #222;
    transition: transform 0.2s ease;
}

.mobile-menu-button:hover .mobile-menu-icon {
    color: #1e88e5;
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 5rem;
    background-color: white;
}

.blob-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blob-float 25s ease-in-out infinite;
}

.blob-1 {
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, #1e88e5, #64b5f6);
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 280px;
    height: 280px;
    background: linear-gradient(45deg, #42a5f5, #90caf9);
    top: 50%;
    right: 10%;
    animation-delay: 8s;
}

.blob-3 {
    width: 320px;
    height: 320px;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    bottom: 20%;
    left: 15%;
    animation-delay: 16s;
}

.blob-4 {
    width: 240px;
    height: 240px;
    background: linear-gradient(45deg, #90caf9, #1e88e5);
    top: 25%;
    right: 25%;
    animation-delay: 24s;
}

.grid-pattern {
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    width: 100%;
    height: 100%;
}

.typing-text {
    min-width: 200px;
    display: inline-block;
}

.stat-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.cta-primary {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.3);
    border: none;
    cursor: pointer;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(30, 136, 229, 0.4);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1e88e5;
    border: 2px solid #1e88e5;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-secondary:hover {
    background: #1e88e5;
    color: white;
    transform: translateY(-2px);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e88e5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: #1e88e5;
    color: white;
    transform: translateY(-2px);
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.profile-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-info {
    text-align: center;
}

.online-status {
    width: 20px;
    height: 20px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.profile-btn-primary {
    background: #1e88e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.profile-btn-primary:hover {
    background: #1976d2;
}

.profile-btn-secondary {
    background: rgba(30, 136, 229, 0.1);
    color: #1e88e5;
    border: 1px solid rgba(30, 136, 229, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn-secondary:hover {
    background: rgba(30, 136, 229, 0.2);
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.element-1 { top: 10%; left: -30px; animation: float-x 6s ease-in-out infinite; }
.element-2 { top: 40%; right: -30px; animation: float-y 8s ease-in-out infinite; }
.element-3 { bottom: 20%; left: -20px; animation: bob 5s ease-in-out infinite; }

/* Stats Section */
.stats-section {
    background-color: #fff;
}

.stats-watermark-text {
    font-size: 3rem;
    font-weight: 300;
    color: transparent;
    background: linear-gradient(270deg, #000000, #4b5563, #d1d5db, #000000);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px transparent;
    animation: gradient-rotate 8s linear infinite;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

.stats-tagline {
    font-size: 0.875rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.stats-card {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    animation: stats-fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

.stats-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

.stats-number {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.stats-counter {
    background: linear-gradient(to bottom, #000, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stats-suffix {
    color: #9ca3af;
    font-weight: 500;
}

.stats-label {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-label {
    color: #374151;
    transform: scale(1.05);
    -webkit-line-clamp: unset;
}

/* About Section */
.about-watermark-text {
    font-size: 3rem;
    font-weight: 300;
    color: transparent;
    background: linear-gradient(270deg, #000000, #4b5563, #d1d5db, #000000);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px transparent;
    animation: gradient-rotate 8s linear infinite;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

.about-tagline {
    font-size: 0.875rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.about-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.accent-circle {
    pointer-events: none;
}

.about-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
    letter-spacing: 0.02em;
}

.education-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.about-text {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1rem;
}

.education-detail {
    color: #6b7280;
}

.education-meta {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.highlight {
    background: linear-gradient(to right, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Experience Section */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.timeline-marker {
    position: absolute;
    top: 1.75rem;
    left: -1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #6366f1;
    border: 4px solid white;
    border-radius: 9999px;
    z-index: 10;
    animation: pulse 2s infinite;
}

.timeline-marker.bg-pink-500 {
    background: #ec4899;
}

.badge {
    color: #6366f1;
    background: #eef2ff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
}

.company {
    color: #6b7280;
    font-weight: 500;
}

.role-list {
    color: #4b5563;
    list-style-type: disc;
    padding-left: 1.25rem;
    line-height: 1.8;
}

/* Skills Section */
.skill-pill {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

/* Projects Section */
.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact-section form input,
.contact-section form textarea {
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
}

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

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(30px, -30px) scale(1.1) rotate(90deg); }
    50% { transform: translate(-30px, 30px) scale(0.9) rotate(180deg); }
    75% { transform: translate(30px, 30px) scale(1.05) rotate(270deg); }
}

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

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

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

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

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

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes stats-fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-fade-in { animation: fade-in 0.8s ease-out; }
.animate-slide-up { animation: slide-up 0.8s ease-out; animation-fill-mode: both; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-800 { animation-delay: 0.8s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-card { padding: 20px; }
    .profile-image { width: 140px; height: 140px; }
    .floating-element { width: 40px; height: 40px; font-size: 16px; }
    .element-1, .element-2, .element-3 { display: none; }
    .stat-card { padding: 12px 16px; }
    .stats-watermark-text { font-size: 3rem; }
    .about-watermark-text { font-size: 3rem; }
    .experience-card { width: 100%; padding-left: 2rem; padding-right: 0; }
    .timeline-marker { left: 0.75rem; }
}

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stats-watermark-text { font-size: 2rem; }
    .about-watermark-text { font-size: 2rem; }
}

.rounded-bl-full {
    border-bottom-left-radius: 20px;
}