/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    transition: all 0.5s ease;
}

/* Theme Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Light Theme */
body.light-theme {
    background: #f8fafc;
    color: #1a202c;
}

/* Dark Theme */
body.dark-theme {
    background: linear-gradient(180deg, #0a0e27 0%, #1a237e 30%, #283593 60%, #3949ab 100%);
    min-height: 100vh;
    color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    padding: 0.75rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.theme-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: none;
}

.dark-theme .dark-icon {
    display: block;
}

.light-theme .light-icon {
    display: block;
}

/* Header */
.header {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 5rem 1rem;
    color: white;
}

.header-bg {
    position: absolute;
    inset: 0;
}

.dark-theme .header-bg {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

.light-theme .header-bg {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-content {
    position: relative;
    z-index: 10;
}

.header-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: serif;
}

.header-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.header-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.profile-image {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}
#typing {
  font-size: 18px;
  font-weight: 600;
  color: #fffff; /* or any color you like */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 1px;
}
.typed-cursor {
  font-size: 18px;           /* Match your #typing size */
  color: #f39c12;            /* Same as your typing text color */
  animation: blink 0.7s infinite;
}

/* Optional: Adjust color for light and dark mode */
@media (prefers-color-scheme: dark) {
  .typed-cursor {
    color: #f1c40f;          /* Lighter yellow for dark mode */
  }
}

@media (prefers-color-scheme: light) {
  .typed-cursor {
    color: #c0392b;          /* Reddish for light mode */
  }
}

/* Optional: Custom blinking effect */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}




.header-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-theme .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.light-theme .social-link {
    background: rgba(0, 0, 0, 0.1);
    color: #1a202c;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.light-theme .social-link:hover {
    background: rgba(0, 0, 0, 0.2);
}

.social-link i,
.x-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Navigation */
.navigation {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-items {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    overflow-x: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-item i {
    width: 1rem;
    height: 1rem;
}

/* Sections */
.section {
    padding: 5rem 1rem;
    position: relative;
}

.dark-theme .section {
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.4) 0%, 
        rgba(26, 35, 126, 0.3) 25%, 
        rgba(40, 53, 147, 0.3) 50%, 
        rgba(57, 73, 171, 0.4) 100%
    );
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards */
.card {
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* About Section */
.about-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.text-link {
    color: #667eea;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .project-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-0.5rem) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.coming-soon-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: #f59e0b;
    color: white;
    border-radius: 9999px;
}

.project-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.dark-theme .project-description {
    color: #d1d5db;
}

.light-theme .project-description {
    color: #4b5563;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-radius: 9999px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

/* YouTube Section */
.youtube-section {
    padding: 5rem 1rem;
    position: relative;
}

.dark-theme .youtube-section {
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.6) 0%, 
        rgba(26, 35, 126, 0.5) 25%, 
        rgba(40, 53, 147, 0.5) 50%, 
        rgba(57, 73, 171, 0.6) 100%
    );
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light-theme .youtube-section {
    background: rgba(59, 130, 246, 0.05);
}

.video-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 48rem;
    margin: 0 auto;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* Counters Section */
.counters-section {
    position: relative;
    overflow: hidden;
}

.dark-theme .counters-section {
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.5) 0%, 
        rgba(26, 35, 126, 0.4) 25%, 
        rgba(40, 53, 147, 0.4) 50%, 
        rgba(57, 73, 171, 0.5) 100%
    );
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.counters-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.counters-bg::before {
    content: '';
    position: absolute;
    top: 5rem;
    left: 2.5rem;
    width: 18rem;
    height: 18rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 50%;
    filter: blur(3rem);
    animation: pulse 4s ease-in-out infinite;
}

.counters-bg::after {
    content: '';
    position: absolute;
    bottom: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(239, 68, 68, 0.2));
    border-radius: 50%;
    filter: blur(3rem);
    animation: pulse 4s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-particle {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.counters-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.counters-description {
    font-size: 1.25rem;
    max-width: 32rem;
    margin: 0 auto;
}

.dark-theme .counters-description {
    color: #d1d5db;
}

.light-theme .counters-description {
    color: #4b5563;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.counter-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .counter-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .counter-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.counter-card:hover {
    transform: translateY(-0.5rem) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.counter-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.5;
    transition: opacity 0.5s ease;
    border-radius: 1.5rem;
}

.counter-card:hover::before {
    opacity: 0.7;
}

.counter-card.green::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.2));
}

.counter-card.yellow::before {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.2));
}

.counter-card.blue::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.2));
}

.counter-card.purple::before {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(147, 51, 234, 0.2));
}

.counter-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
}

.counter-card:hover .counter-icon {
    transform: scale(3.1);
}

.counter-icon i {
    width: 12rem;
    height: 12rem;
}

.counter-card.green .counter-icon {
    color: #22c55e;
}

.counter-card.yellow .counter-icon {
    color: #fbbf24;
}

.counter-card.blue .counter-icon {
    color: #3b82f6;
}

.counter-card.purple .counter-icon {
    color: #9333ea;
}

.counter-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.counter-suffix {
    font-size: 1.5rem;
}

.counter-card.green .counter-suffix {
    color: #22c55e;
}

.counter-card.yellow .counter-suffix {
    color: #fbbf24;
}

.counter-card.blue .counter-suffix {
    color: #3b82f6;
}

.counter-card.purple .counter-suffix {
    color: #9333ea;
}

.counter-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.dark-theme .counter-title {
    color: #d1d5db;
}

.light-theme .counter-title {
    color: #4b5563;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-theme .skill-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .skill-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-card:hover {
    transform: translateY(-0.5rem) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.dark-theme .skill-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.light-theme .skill-card:hover {
    background: rgba(255, 255, 255, 0.9);
}

.skill-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.skill-name {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.dark-theme .testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-left-color: #667eea;
}

.light-theme .testimonial-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-left-color: #667eea;
}

.testimonial-card:hover {
    transform: translateY(-0.5rem) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: auto;
    margin-right: 1rem;
}

.testimonial-name {
    font-weight: bold;
    color: #667eea;
}

.testimonial-role {
    font-size: 0.875rem;
}

.dark-theme .testimonial-role {
    color: #d1d5db;
}

.light-theme .testimonial-role {
    color: #4b5563;
}

.testimonial-quote {
    font-style: italic;
    line-height: 1.6;
}

.dark-theme .testimonial-quote {
    color: #d1d5db;
}

.light-theme .testimonial-quote {
    color: #4b5563;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .blog-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.light-theme .blog-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-card:hover {
    transform: translateY(-0.5rem) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.blog-description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.dark-theme .blog-description {
    color: #d1d5db;
}

.light-theme .blog-description {
    color: #4b5563;
}

/* Contact Form */
.contact-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.dark-theme .form-input {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.dark-theme .form-input::placeholder {
    color: #9ca3af;
}

.dark-theme .form-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.light-theme .form-input {
    background: white;
    border-color: #d1d5db;
    color: #1f2937;
}

.light-theme .form-input::placeholder {
    color: #6b7280;
}

.light-theme .form-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-textarea {
    resize: vertical;
    margin-bottom: 1.5rem;
}

.form-submit {
    display: flex;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn i {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
}

.btn-outline {
    border: 2px solid #764ba2;
    color: #764ba2;
    background: transparent;
}

.btn-outline:hover {
    background: #764ba2;
    color: white;
}

/* Footer */
.footer {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 3rem 1rem;
    color: white;
}

.footer-bg {
    position: absolute;
    inset: 0;
}

.dark-theme .footer-bg {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

.light-theme .footer-bg {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

/* Sections Background Enhancement for Dark Mode */
.dark-theme .section {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.footer-text {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .header-buttons {
        flex-direction: row;
    }
    
    .header-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    .profile-image {
        width: 12rem;
        height: 12rem;
    }
    
    .header-subtitle {
        font-size: 2rem;
    }
    
    .header-description {
        font-size: 1.5rem;
    }
    
    .counters-description {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-items {
        gap: 1rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}