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

:root {
    --primary: #6366F1;          
    --primary-light: #818CF8;    
    --primary-dark: #4F46E5;     
    --secondary: #22C55E;       
    --accent: #22C55E;          
    
    --bg-primary: #0F0F0F;       
    --bg-secondary: #1C1C1C;    
    --bg-tertiary: #2A2A2A;      
    
    --text-primary: #F3F4F6;     
    --text-secondary: #9CA3AF;   
    --text-muted: #6B7280;       
    
    --success: #22C55E;          
    --warning: #F59E0B;          
    --error: #EF4444;            
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
    --gradient-dark: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    --gradient-name: linear-gradient(135deg, #6366F1, #22C55E);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-primary: 0 0 20px rgba(99, 102, 241, 0.2);
    --shadow-accent: 0 0 20px rgba(34, 197, 94, 0.2);
    
    --border-light: #2A2A2A;     
    --border-primary: var(--primary);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

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

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 15, 0.95);
    padding: 20px 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

nav h1 {
    color: var(--primary);
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 10% 80px;
    background: var(--gradient-dark);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.hero-text {
    max-width: 600px;
    opacity: 1;
    transform: translateX(0);
}

.animated-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.greeting {
    font-size: 1.8rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    font-weight: 500;
    letter-spacing: 1px;
}

.name {
    font-size: 4rem;
    margin: 0;
    display: inline-block;
    background: var(--gradient-name);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    letter-spacing: -1px;
    font-weight: 700;
    position: relative;
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid var(--primary);
    animation: typing 2s steps(14, end) 0.8s forwards,
               blink-caret 0.75s step-end infinite;
    padding-right: 5px;
}

.name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-name);
    opacity: 0.1;
    filter: blur(20px);
    transform: scale(0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-name);
    border-radius: 3px;
    opacity: 0.5;
    transform: scaleX(0);
    transform-origin: left;
    animation: lineReveal 0.8s ease forwards 2.8s;
}

.titles-container {
    position: relative;
    height: 2em;
    margin: 25px 0;
    overflow: hidden;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: titleFade 8s infinite;
}

.subtitle:nth-child(1) {
    animation-delay: 1.5s;
}

.subtitle:nth-child(2) {
    animation-delay: 4s;
}

.subtitle:nth-child(3) {
    animation-delay: 6.5s;
}

@keyframes titleFade {
    0%, 15% {
        opacity: 0;
        transform: translateY(20px);
    }
    20%, 40% {
        opacity: 1;
        transform: translateY(0);
    }
    45%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    margin-left: 0;
}

.social-icon {
    color: var(--text-primary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

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

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

.hero-photo {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transform: translateX(0);
    animation: float 6s ease-in-out infinite;
    display: block;
    max-width: 100%;
}

.hero-photo:hover {
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

section {
    padding: 80px 10%;
    background: var(--bg-primary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Skills Section */
.section-title {
    color: var(--primary);
    font-size: 2rem;
    text-align: center;
    margin: 40px 0 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.skills-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px auto;
    flex-wrap: wrap;
    max-width: 1200px;
}

.skill-item {
    background: var(--bg-secondary);
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    min-width: 200px;
    box-shadow: var(--shadow-sm);
}

.skill-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-5px);
}

.skill-item span {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 180px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.project-tech span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Project Links */
.project-links {
    display: flex;
    gap: 10px;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

.btn, .download-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    animation: pulse 2s ease-in-out infinite;
}

.btn:hover, .download-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes glow {
    from {
        transform: scale(0.8);
        opacity: 0.1;
    }
    to {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

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

@keyframes lineReveal {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 0.5;
    }
}

@keyframes typing {
    from { 
        width: 0;
    }
    to { 
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to { 
        border-color: transparent;
    }
    50% { 
        border-color: var(--primary);
    }
}
.hero-photo {
    animation: float 6s ease-in-out infinite;
}



@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-photo {
        width: 250px;
        height: 250px;
        margin-top: 30px;
    }

    section {
        padding: 60px 20px;
    }

    h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        min-height: auto;
    }

    .project-image {
        height: 160px;
    }

    .project-content {
        padding: 18px;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    .project-tech span {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .btn-primary, .btn-secondary {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .skills-list {
        gap: 15px;
    }
    
    .skill-item {
        padding: 15px 30px;
        min-width: 150px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    .greeting {
        font-size: 1.5rem;
    }
    
    .name {
        font-size: 3rem;
        animation: typing 1.8s steps(14, end) 0.8s forwards,
                   blink-caret 0.75s step-end infinite;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }

    .project-card {
        min-height: auto;
    }

    .project-image {
        height: 140px;
    }

    .project-content {
        padding: 15px;
    }

    .project-content h3 {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.8rem;
    }

    .project-tech span {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .btn-primary, .btn-secondary {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .project-placeholder i {
        font-size: 2.5rem;
    }

    .project-placeholder h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .hero-photo {
        width: 200px;
        height: 200px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .project-card {
        padding: 20px;
    }

    .greeting {
        font-size: 1.3rem;
    }
    
    .name {
        font-size: 2.5rem;
        animation: typing 1.5s steps(14, end) 0.8s forwards,
                   blink-caret 0.75s step-end infinite;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    nav h1 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-photo {
        width: 180px;
        height: 180px;
    }

    .greeting {
        font-size: 1.1rem;
    }
    
    .name {
        font-size: 2.5rem;
        animation: typing 1.5s steps(14, end) 0.8s forwards,
                   blink-caret 0.75s step-end infinite;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg);
    background-color: var(--primary);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    background-color: var(--primary);
}

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

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--text-primary);
}

/* Focus Outline */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Placeholder */
::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Links */
a {
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Mobile Menu */
.menu-toggle span {
    background-color: var(--text-primary);
}

.menu-toggle.active span {
    background-color: var(--primary);
}

/* Section Backgrounds */
section {
    background: var(--bg-primary);
}

/* Card Hover Effects */
.skill-item:hover,
.project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* Status Indicators */
.status-success {
    color: var(--success);
}

.status-warning {
    color: var(--warning);
}

.status-error {
    color: var(--error);
}

/* Contact Section */
.contact-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1), transparent 70%);
    pointer-events: none;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-heading {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    background: var(--gradient-name);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.contact-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.contact-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;
}

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

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.social-connect {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-light);
}

.social-connect h3 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.social-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-card i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-card span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.social-card:hover i {
    transform: scale(1.1);
    color: var(--primary-light);
}

.leetcode-icon {
  color: #fff;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  transition: color 0.2s;
}
.social-icon:hover .leetcode-icon,
.social-icon:focus .leetcode-icon {
  color: #FFA116;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.skills-section {
  padding: 60px 0;
  text-align: center;
  background: #111 url('https://raw.githubusercontent.com/divyanshkathuria/divyanshkathuria/main/src/assets/stars.svg') repeat top center;
  background-size: cover;
}
.skills-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  letter-spacing: 1px;
  color: #fff;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.skill-item {
  background: rgba(20, 20, 20, 0.95);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.4);
  padding: 32px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  min-height: 140px;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
  cursor: pointer;
}
.skill-item i {
  font-size: 4.2rem;
  margin-bottom: 16px;
  color: inherit;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), filter 0.3s;
  will-change: transform;
  filter: drop-shadow(0 2px 8px #0008);
}
.skill-item span {
  font-size: 1.15rem;
  margin-top: 2px;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.skill-item:hover,
.skill-item:focus,
.skill-item.active {
  box-shadow: 0 8px 32px 0 #00ffd5a0, 0 4px 24px 0 rgba(0,0,0,0.4);
}
.skill-item:hover i,
.skill-item:focus i,
.skill-item.active i {
  transform: rotateY(360deg) scale(1.18);
  filter: drop-shadow(0 0 16px #00ffd5cc);
}
.linux-emoji {
  font-size: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px #0008);
}
.spacy-badge {
  display: inline-block;
  background: #09A3D5;
  color: #fff;
  font-weight: bold;
  font-size: 2.2rem;
  padding: 12px 24px 10px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #0008;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), filter 0.3s;
  will-change: transform;
}
.skill-item:hover .spacy-badge,
.skill-item:focus .spacy-badge,
.skill-item.active .spacy-badge {
  transform: rotateY(360deg) scale(1.18);
  filter: drop-shadow(0 0 16px #00ffd5cc);
}
.skill-item .devicon-linux-plain {
  font-size: 4.6rem;
  background: radial-gradient(circle, #f7e38a 70%, #f7d038 100%);
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 0 10px 2px #f7d03844;
  color: #111;
  margin-bottom: 16px;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), filter 0.3s;
  will-change: transform;
}
.skill-item:hover .devicon-linux-plain,
.skill-item:focus .devicon-linux-plain,
.skill-item.active .devicon-linux-plain {
  filter: drop-shadow(0 0 8px #f7d03888);
  transform: rotateY(360deg) scale(1.18);
}
.skill-item .devicon-github-original {
  font-size: 4.6rem;
  background: radial-gradient(circle, #eaeaea 70%, #bdbdbd 100%);
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 0 10px 2px #bdbdbd44;
  color: #111;
  margin-bottom: 16px;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), filter 0.3s;
  will-change: transform;
}
.skill-item:hover .devicon-github-original,
.skill-item:focus .devicon-github-original,
.skill-item.active .devicon-github-original {
  filter: drop-shadow(0 0 8px #bdbdbd88);
  transform: rotateY(360deg) scale(1.18);
}
@media (max-width: 900px) {
  .skills-grid {
    gap: 24px 16px;
  }
  .skill-item {
    min-width: 90px;
    padding: 20px 10px 10px 10px;
  }
  .skill-item i {
    font-size: 2.5rem;
  }
}