/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ===== Variables ===== */
:root {
    --primary: #0a192f;
    --secondary: #64ffda;
    --accent: #f7567c;
    --text: #e6f1ff;
    --dark: #020c1b;
    --light: #a8b2d1;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary) var(--primary);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: var(--radius-full);
}

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

.highlight {
    color: var(--secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-underline {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto var(--spacing-sm);
    position: relative;
}

.section-underline::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--accent);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s infinite;
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--light);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: var(--text-md);
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

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

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

.secondary-btn {
    background-color: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

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

/* ===== Background Effects ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 90px 20px 0 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 50%, rgba(100, 255, 218, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(247, 86, 124, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.greeting {
    font-size: var(--text-xl);
    color: var(--secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.greeting::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background: var(--secondary);
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
}

.hero-section .name {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background-image: linear-gradient(45deg, var(--text) 60%, var(--secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
}

.typewriter {
    display: flex;
    align-items: center;
    height: 60px;
    margin-bottom: var(--spacing-md);
}

.static-text {
    font-size: var(--text-xl);
    color: var(--light);
    margin-right: 8px;
}

.dynamic-text {
    font-size: var(--text-xl);
    color: var(--accent);
    font-weight: 700;
    position: relative;
    padding-right: 10px;
}

.dynamic-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--accent);
    animation: cursor-blink 1s infinite;
}

.hero-section .description {
    color: var(--light);
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* Hero Image Styling */
.hero-image {
    position: relative;
    animation: floatAnimation 4s ease-in-out infinite;
}

.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.hexagon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon {
    position: relative;
    width: 90%;
    height: 90%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hexagon::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(0, 0, 0, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 2;
}

.profile-img {
    position: relative;
    z-index: 1;
    object-fit: cover;
    width: 80%;
    transition: transform var(--transition-normal);
}

.profile-img.x {
    width: 100%;
    transform: translateY(15%) !important;
}

/* Tech Bubbles Animation */
.tech-bubble {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-fast);
    z-index: 3;
}

.tech-bubble:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--secondary);
}

.tech-bubble.html {
    background: #E34F26;
    top: 10%;
    left: -5%;
    animation: floatBubble 5s ease-in-out infinite;
}

.tech-bubble.css {
    background: #1572B6;
    top: 20%;
    right: -5%;
    animation: floatBubble 7s ease-in-out infinite reverse;
}

.tech-bubble.js {
    background: #F7DF1E;
    bottom: 20%;
    right: 10%;
    animation: floatBubble 6s ease-in-out infinite 1s;
}

.tech-bubble.react {
    background: #61DAFB;
    bottom: 10%;
    left: 10%;
    animation: floatBubble 8s ease-in-out infinite 2s;
}

.tech-bubble.node {
    background: #339933;
    top: 50%;
    right: -10%;
    animation: floatBubble 9s ease-in-out infinite 1.5s;
}

/* Scroll Down Animation */
.scroll-down {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.scroll-down:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin: 0 auto var(--spacing-xs);
    position: relative;
}

.wheel {
    position: absolute;
    top: 10px;
    width: 4px;
    height: 8px;
    background: var(--secondary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

.arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--spacing-xs);
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    transform: rotate(45deg);
    margin: -3px;
    animation: scrollArrow 2s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

/* Social Links */
.social-links {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    z-index: 50;
}

.social-links.left {
    left: var(--spacing-xs);
}

.social-links.right {
    right: var(--spacing-sm);
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
}

.social-link.right {
    transform: rotate(180deg);
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--light);
    font-size: var(--text-lg);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    transform: translateY(100%);
    transition: var(--transition-fast);
    z-index: -1;
}

.social-link:hover {
    color: var(--primary);
}

.social-link:hover::before {
    transform: translateY(0);
}

.vertical-line {
    width: 1px;
    height: 100px;
    background: var(--light);
    margin-top: var(--spacing-xs);
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    transition: var(--transition-normal);
    background: rgba(2, 12, 27, 0.8);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: var(--spacing-xs) 5%;
    background: rgba(2, 12, 27, 0.95);
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-icon {
    width: 60px;
    height: 60px;
    transform: scale(1.2);
    transition: var(--transition-fast);
    object-fit: contain;
    filter: invert(80%) sepia(18%) saturate(1025%) hue-rotate(155deg) brightness(91%) contrast(101%);
}

.nav-logo:hover .logo-icon {
    transform: rotate(360deg);
    filter: invert(69%) sepia(51%) saturate(540%) hue-rotate(135deg) brightness(95%) contrast(101%);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-item {
    position: relative;
    color: var(--light);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 5px 0;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--secondary);
}

.nav-item:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition-fast);
    background-color: var(--text);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(5px, -5px);
    }

    50% {
        transform: translate(0, -10px);
    }

    75% {
        transform: translate(-5px, -5px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: var(--spacing-lg);
    }

    .greeting::after {
        display: none;
    }

    .hero-section .description {
        margin: 0 auto var(--spacing-md);
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: var(--spacing-md) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--secondary);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--secondary);
    }

    .hero-section .name {
        font-size: var(--text-4xl);
    }

    .typewriter {
        height: 40px;
        justify-content: center;
    }

    .static-text,
    .dynamic-text {
        font-size: var(--text-lg);
    }

    .tech-bubble {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-section .name {
        font-size: var(--text-3xl);
    }

    .greeting {
        font-size: var(--text-lg);
    }

    .hero-section .description {
        font-size: var(--text-md);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .image-container {
        width: 80%;
        margin: 0 auto;
    }
}

/* Additional Body Styles */
body {
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

/* Glowing text effect for highlights */
.highlight {
    position: relative;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

/* Futuristic button animations */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: var(--text-sm);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(100, 255, 218, 0.3), transparent 30%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-normal);
}

.btn:hover::after {
    opacity: 1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

/* Custom selection color */
::selection {
    background: var(--secondary);
    color: var(--primary);
}

/* Focus styles */
*:focus {
    outline: 2px dashed var(--secondary);
    outline-offset: 3px;
}

/* Futuristic section transitions */
section {
    position: relative;
    transition: background-color var(--transition-slow);
}

/* Additional animations for skill items */
.skill-item i {
    transition: transform var(--transition-fast);
}

.skill-item:hover i {
    transform: translateY(-5px);
    color: var(--secondary);
}

/* Progress bar animation */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Futuristic scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    border-radius: var(--radius-full);
}

/* Responsive design refinements */
@media screen and (max-width: 480px) {
    .hexagon-wrapper {
        margin-bottom: 0;
    }

    .hexagon {
        min-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .section-desc {
        font-size: var(--text-md);
    }

    .vertical-line {
        height: 50px;
    }
}

/* Enhanced Responsive Styles for Hexagon */
@media screen and (max-width: 1024px) {
    .hero-image {
        order: 1;
        margin-bottom: var(--spacing-lg);
        transform: scale(1.1);
    }
    
    .image-container {
        padding-bottom: 90%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .hexagon-wrapper {
        transform: scale(1.05);
    }
}

@media screen and (max-width: 768px) {
    .hero-image {
        transform: scale(1.05);
    }
    
    .image-container {
        padding-bottom: 85%;
        max-width: 400px;
    }
    
    .hexagon {
        width: 95%;
        height: 95%;
    }
    
    .profile-img {
        width: 85%;
    }
}

@media screen and (max-width: 480px) {
    .hero-image {
        transform: none;
        margin-bottom: var(--spacing-md);
    }
    
    .image-container {
        padding-bottom: 100%;
        width: 90%;
        max-width: 350px;
    }
    
    .hexagon-wrapper {
        transform: scale(1.1);
    }
    
    .hexagon {
        width: 100%;
        height: 100%;
    }
    
    .profile-img {
        width: 90%;
    }
    
    /* Adjust tech bubbles position for better visibility */
    .tech-bubble.html {
        top: 8%;
        left: 0%;
    }
    
    .tech-bubble.css {
        top: 15%;
        right: 0%;
    }
    
    .tech-bubble.js {
        bottom: 15%;
        right: 5%;
    }
    
    .tech-bubble.react {
        bottom: 8%;
        left: 5%;
    }
    
    .tech-bubble.node {
        top: 50%;
        right: -5%;
    }
}

@media screen and (max-width: 380px) {
    .image-container {
        padding-bottom: 105%;
        width: 95%;
    }
    
    .hexagon-wrapper {
        transform: scale(1.15);
    }
}
/* About Section Styles */
.about-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(2, 12, 27, 0.98) 100%);
    padding-top: calc(var(--spacing-xl) + 2rem);
    padding-bottom: calc(var(--spacing-xl) + 2rem);
}

.about-section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.15) 0%, rgba(10, 25, 47, 0) 70%);
    z-index: 0;
    animation: pulseGlow 8s infinite alternate;
}

.about-section::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 86, 124, 0.15) 0%, rgba(10, 25, 47, 0) 70%);
    z-index: 0;
    animation: pulseGlow 8s infinite alternate-reverse;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.hexagon-wrapperx {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hexagonx {
    position: relative;
    width: 100%;
    padding-top: 115%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: var(--secondary);
    overflow: hidden;
    transition: transform 0.5s var(--transition-normal);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

.hexagonx:before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: rgba(0, 0, 0, 0.1);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    z-index: 2;
}

.hexagonx .profile-img.y {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(20%);
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s var(--transition-normal);
}

.hexagonx:hover {
    transform: scale(1.05);
}

.hexagonx:hover .profile-img.y {
    transform: scale(1.1) rotate(5deg);
}

.about-text {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 2;
}

.about-subtitle {
    color: var(--secondary);
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.about-text:hover .about-subtitle:after {
    width: 100%;
}

.about-text p {
    color: var(--light);
    margin-bottom: var(--spacing-md);
    font-size: var(--text-md);
    line-height: 1.8;
    position: relative;
    padding-left: var(--spacing-sm);
    border-left: 2px solid rgba(100, 255, 218, 0.3);
}

.about-text p:last-of-type {
    margin-bottom: var(--spacing-lg);
}

.skills-container {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background: rgba(2, 12, 27, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 255, 218, 0.2);
    position: relative;
    overflow: hidden;
}

.skills-container:before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg,
            rgba(100, 255, 218, 0) 0%,
            rgba(100, 255, 218, 0.1) 50%,
            rgba(100, 255, 218, 0) 100%);
    animation: shimmer 4s linear infinite;
    z-index: 1;
}

.skills-container h3 {
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-lg);
    position: relative;
    z-index: 2;
}

.tech-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(10, 25, 47, 0.8);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 178, 209, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), rgba(247, 86, 124, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

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

.skill-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-xs);
    transition: all 0.3s ease;
}

.skill-item:hover i {
    color: var(--text);
    transform: scale(1.2);
}

.skill-item span {
    font-size: var(--text-sm);
    color: var(--light);
    transition: all 0.3s ease;
}

.skill-item:hover span {
    color: var(--secondary);
}

.about-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* Animations */
@keyframes pulseGlow {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.5);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        width: 100%;
    }

    .hexagon-wrapper {
        max-width: 350px;
        margin-bottom: var(--spacing-md);
    }

    .tech-skills {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .about-section {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }

    .about-subtitle {
        font-size: var(--text-lg);
    }

    .about-text p {
        font-size: var(--text-sm);
    }

    .skill-item {
        width: 80px;
        height: 80px;
    }

    .skill-item i {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .about-buttons {
        flex-direction: column;
        width: 100%;
    }

    .about-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .tech-skills {
        gap: var(--spacing-xs);
    }

    .skill-item {
        width: 70px;
        height: 70px;
    }
}

/* ===== Skills Section Styles ===== */
.skills-section {
    padding: var(--spacing-xl) max(5%, var(--spacing-md));
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(2, 12, 27, 0.9) 100%);
    z-index: -1;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    width: 100%;
}

.skill-category {
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    width: 100%;
    box-sizing: border-box;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
    border-color: rgba(100, 255, 218, 0.3);
}

.skill-category:hover::before {
    transform: translateX(0);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    flex-wrap: wrap;
}

.category-header i {
    font-size: var(--text-2xl);
    color: var(--secondary);
    margin-right: var(--spacing-sm);
    background: rgba(100, 255, 218, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.skill-category:hover .category-header i {
    transform: rotate(360deg);
    background: var(--secondary);
    color: var(--primary);
}

.category-header h3 {
    font-size: var(--text-xl);
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.2;
    flex: 1;
}

.category-skills {
    margin-top: var(--spacing-sm);
    width: 100%;
}

.skill-progress {
    margin-bottom: var(--spacing-sm);
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: var(--text-sm);
    color: var(--light);
}

.progress {
    height: 8px;
    background: rgba(168, 178, 209, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    position: relative;
    width: 0;
    transition: width 1.5s ease-out;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px 5px rgba(100, 255, 218, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-progress:hover .progress-bar::after {
    opacity: 1;
}

/* Responsive Design for Skills Section */
@media screen and (max-width: 1400px) {
    .skills-categories {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media screen and (max-width: 1200px) {
    .skills-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .skills-section {
        padding: var(--spacing-lg) max(4%, var(--spacing-md));
    }
}

@media screen and (max-width: 992px) {
    .skills-categories {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .category-header i {
        width: 40px;
        height: 40px;
        font-size: var(--text-xl);
    }
    
    .category-header h3 {
        font-size: var(--text-lg);
    }
}

@media screen and (max-width: 768px) {
    .skills-categories {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .skills-section {
        padding: var(--spacing-md) max(3%, var(--spacing-sm));
    }

    .category-header i {
        width: 35px;
        height: 35px;
        font-size: var(--text-lg);
    }

    .category-header h3 {
        font-size: var(--text-md);
    }
    
    .skill-category {
        padding: var(--spacing-sm);
    }
}

@media screen and (max-width: 576px) {
    .skills-categories {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .skill-category {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .skills-section {
        padding: var(--spacing-md) max(15px, 3%);
    }
    
    .skill-info {
        font-size: calc(var(--text-sm) - 1px);
    }
    
    .progress {
        height: 6px;
    }
}

@media screen and (max-width: 400px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-header i {
        margin-bottom: var(--spacing-xs);
    }
    
    .category-header h3 {
        width: 100%;
        margin-top: var(--spacing-xs);
    }
}

/* Animation for skill categories when they come into view */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-category[data-aos="fade-up"].aos-animate {
    animation: fadeInUp 0.8s forwards;
}

.skill-category[data-aos="fade-up"][data-aos-delay="100"].aos-animate {
    animation-delay: 0.1s;
}

.skill-category[data-aos="fade-up"][data-aos-delay="200"].aos-animate {
    animation-delay: 0.2s;
}

.skill-category[data-aos="fade-up"][data-aos-delay="300"].aos-animate {
    animation-delay: 0.3s;
}

.skill-category[data-aos="fade-up"][data-aos-delay="400"].aos-animate {
    animation-delay: 0.4s;
}

.skill-category[data-aos="fade-up"][data-aos-delay="500"].aos-animate {
    animation-delay: 0.5s;
}

/* ===== Projects Section ===== */
.projects-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 5vw; /* Responsive padding that scales with viewport */
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(100, 255, 218, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(247, 86, 124, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Responsive font size */
    margin-bottom: 1rem;
}

.section-underline {
    height: 4px;
    width: 70px;
    background: var(--secondary);
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-full);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(0.9rem, 2vw, 1.1rem); /* Responsive font size */
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: rgba(10, 25, 47, 0.8);
    color: var(--light);
    border: 1px solid var(--secondary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: clamp(0.85rem, 1.5vw, 1rem); /* Responsive font size */
}

.filter-btn::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: var(--transition-normal);
    z-index: -1;
}

.filter-btn:hover::before {
    left: 100%;
    animation: shine 1.5s infinite;
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.filter-btn.active {
    background: var(--secondary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); /* Responsive columns */
    gap: clamp(1.5rem, 3vw, 2.5rem); /* Responsive gap */
    perspective: 1000px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: rgba(2, 12, 27, 0.7);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid transparent;
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    padding: 2px;
    background: linear-gradient(to right bottom, transparent, var(--secondary), transparent, var(--accent), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

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

.project-img {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 60%; /* Maintain aspect ratio */
}

.project-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: transform 0.8s ease;
}

.project-card:hover .project-img img {
    transform: scale(1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.2), rgba(10, 25, 47, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.project-links {
    display: flex;
    gap: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card:hover .project-links {
    transform: translateY(0);
    opacity: 1;
}

.project-link {
    background: var(--dark);
    color: var(--secondary);
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--secondary);
    transition: all var(--transition-fast);
    font-size: clamp(0.8rem, 1.5vw, 0.95rem); /* Responsive font size */
}

.project-link:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.project-info {
    padding: clamp(1rem, 3vw, 1.5rem); /* Responsive padding */
    position: relative;
    flex: 1; /* Allow this to grow to fill space in flex container */
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); /* Responsive font size */
    margin-bottom: 0.75rem;
    color: var(--text);
}

.project-info p {
    color: var(--light);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem); /* Responsive font size */
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1; /* Let this grow to push tech tags to bottom */
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto; /* Push to bottom of flex container */
}

.project-tech span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: clamp(0.7rem, 1.2vw, 0.8rem); /* Responsive font size */
    font-weight: 500;
    transition: var(--transition-fast);
}

.project-tech span:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Animation for filter button shine effect */
@keyframes shine {
    0% {
        left: -100%;
        opacity: 0.6;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Special hover effects for project cards */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, transparent 40%, rgba(100, 255, 218, 0.1) 70%, transparent 90%);
    transition: var(--transition-slow);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
    animation: lightPass 1.5s ease-in-out;
}

@keyframes lightPass {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Services Section - Keeping this for consistency */
.services-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 5vw;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: rgba(2, 12, 27, 0.7);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
    border: 1px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--text);
}

.service-card p {
    color: var(--light);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-top: auto;
}

.service-features li {
    margin-bottom: 0.5rem;
    color: var(--light);
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

/* Media Queries - For extreme edge cases */
@media (max-width: 380px) {
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .project-link {
        padding: 0.5rem 1rem;
    }
    
    .project-links {
        gap: 0.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* For very large screens - prevent excessive stretching */
@media (min-width: 1800px) {
    .projects-grid, 
    .services-grid {
        max-width: 1600px;
    }
}

/* For tablets - optimize layout */
@media (min-width: 768px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For phones - single column layout */
@media (max-width: 767px) {
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card,
    .service-card {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* ===== Services Section ===== */
.services-section {
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: rgba(10, 25, 47, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.1);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
    border-radius: 50%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.15);
    border-color: var(--secondary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 0.05;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, rgba(247, 86, 124, 0.1) 100%);
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
    position: relative;
    transition: all var(--transition-normal);
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all var(--transition-normal);
}

.service-icon i {
    font-size: var(--text-3xl);
    color: var(--secondary);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card:hover .service-icon i {
    transform: rotateY(180deg);
    color: var(--accent);
}

.service-card h3 {
    color: var(--text);
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-xs);
    position: relative;
    display: inline-block;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition-normal);
}

.service-card p {
    color: var(--light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.service-features {
    margin-top: auto;
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xs);
    color: var(--light);
    transition: transform var(--transition-fast);
}

.service-features li:hover {
    transform: translateX(5px);
    color: var(--text);
}

.service-features li i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.service-features li:hover i {
    color: var(--accent);
    transform: scale(1.2);
}

/* Responsive styles for service section */
@media screen and (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        max-width: 100%;
    }
}

/* Animation keyframes for service cards */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

/* Experience Section Styles */
.experience-section {
    position: relative;
    overflow: hidden;
    padding: 1.5rem var(--spacing-md);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--secondary);
    opacity: 0.7;
    z-index: 1;
}

.timeline-item {
    padding: var(--spacing-xs) 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 4px solid var(--primary);
    box-shadow: 0 0 15px var(--accent);
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 25px var(--accent);
}

.timeline-date {
    position: absolute;
    width: 150px;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--dark);
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 600;
    top: 35px;
    left: 54%;
    transform: translateX(-230px);
    border: 2px solid var(--secondary);
    transition: var(--transition-normal);
    z-index: 3;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.timeline-item:hover .timeline-date {
    box-shadow: 0 5px 25px rgba(100, 255, 218, 0.4);
    transform: translateX(-230px) translateY(-5px);
}

.timeline-content {
    width: 40%;
    padding: var(--spacing-md);
    background: rgba(10, 25, 47, 0.8);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.2);
    box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 40px;
    width: 20px;
    height: 20px;
    background: rgba(10, 25, 47, 0.8);
    transform: rotate(45deg);
    border: 1px solid rgba(100, 255, 218, 0.2);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 30%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-content {
    right: 30%;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-date {
    transform: translateX(80px);
    left: 50%;
}

.timeline-item:hover:nth-child(even) .timeline-date {
    transform: translateX(80px) translateY(-5px);
}

.timeline-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-xs);
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.timeline-content h4 {
    font-size: var(--text-md);
    color: var(--light);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.timeline-content p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-md);
    line-height: 1.6;
}

.experience-highlights {
    margin: var(--spacing-sm) 0;
}

.experience-highlights li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: 25px;
    font-size: var(--text-sm);
}

.experience-highlights li::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    left: 0;
    top: 8px;
    box-shadow: 0 0 8px var(--accent);
}

.skills-used {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.skills-used span {
    padding: 4px 12px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.skills-used span:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(100, 255, 218, 0.2);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(2, 12, 27, 0.7);
    border-color: rgba(100, 255, 218, 0.4);
}

/* Glowing effect */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(100, 255, 218, 0.8), 0 0 30px rgba(100, 255, 218, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
    }
}

/* Responsive Breakpoints - Enhanced */
@media screen and (max-width: 1200px) {
    .timeline-content {
        width: 45%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        left: 25%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        right: 25%;
    }
    
    .timeline-date {
        transform: translateX(-200px);
    }
    
    .timeline-item:hover .timeline-date {
        transform: translateX(-200px) translateY(-5px);
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        transform: translateX(50px);
    }
    
    .timeline-item:hover:nth-child(even) .timeline-date {
        transform: translateX(50px) translateY(-5px);
    }
}

@media screen and (max-width: 992px) {
    .experience-section {
        padding: 1.5rem var(--spacing-sm);
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: var(--spacing-md);
    }
    
    .timeline-dot {
        left: 40px;
        top: 35px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-item:hover .timeline-dot {
        transform: scale(1.3);
    }
    
    .timeline-date {
        position: relative;
        width: auto;
        min-width: 160px;
        transform: none !important;
        left: 70px !important;
        top: 0;
        margin-bottom: var(--spacing-xs);
    }
    
    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 90px;
        left: 0 !important;
        right: auto !important;
    }
    
    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        top: 25px;
    }
    
    .timeline-item:hover .timeline-date {
        transform: translateY(-5px) !important;
    }
}

@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
        width: 16px;
        height: 16px;
        top: 30px;
        border-width: 3px;
    }
    
    .timeline-date {
        left: 60px !important;
        font-size: var(--text-sm);
        padding: 4px 10px;
        min-width: 140px;
    }
    
    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px;
        padding: var(--spacing-sm);
    }
    
    .timeline-content h3 {
        font-size: var(--text-lg);
    }
    
    .timeline-content h4 {
        font-size: var(--text-md);
    }
    
    .timeline-content p {
        font-size: var(--text-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .experience-highlights {
        margin: var(--spacing-xs) 0;
    }
    
    .experience-highlights li {
        font-size: var(--text-xs);
        padding-left: 20px;
        margin-bottom: 5px;
    }
    
    .experience-highlights li::before {
        width: 6px;
        height: 6px;
        top: 7px;
    }
}

@media screen and (max-width: 576px) {
    .experience-section {
        padding: 1rem var(--spacing-xs);
    }
    
    .timeline {
        padding: 0;
    }
    
    .timeline::before {
        left: 20px;
        width: 3px;
    }
    
    .timeline-dot {
        left: 20px;
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
    
    .timeline-date {
        left: 45px !important;
        min-width: 120px;
        font-size: var(--text-xs);
        padding: 3px 8px;
        border-width: 1px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
        padding: var(--spacing-xs);
    }
    
    .timeline-content::before {
        width: 15px;
        height: 15px;
        top: 20px;
    }
    
    .timeline-content h3 {
        font-size: var(--text-md);
    }
    
    .timeline-content h4 {
        font-size: var(--text-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .skills-used {
        gap: 5px;
        margin-top: var(--spacing-xs);
    }
    
    .skills-used span {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media screen and (max-width: 375px) {
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 15px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-date {
        left: 40px !important;
        min-width: 100px;
    }
    
    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px;
    }
    
    .experience-highlights li {
        padding-left: 15px;
    }
    
    .experience-highlights li::before {
        width: 5px;
        height: 5px;
        top: 7px;
    }
    
    .skills-used span {
        padding: 2px 5px;
        font-size: 9px;
    }
}

/* ===== Certificates Section ===== */
.certificates-section {
    position: relative;
    overflow: hidden;
    padding: 1.5rem var(--spacing-xl);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.certificate-card {
    background: rgba(10, 30, 60, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.15);
    border-color: var(--secondary);
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: var(--transition-slow);
}

.certificate-card:hover::before {
    top: 100%;
    left: 100%;
}

.certificate-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
    display: block;
}

.certificate-card:hover .certificate-img img {
    transform: scale(1.05);
}

.certificate-info {
    padding: var(--spacing-md);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certificate-info h3 {
    font-size: var(--text-xl);
    color: var(--secondary);
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.certificate-info p {
    color: var(--light);
    margin-bottom: var(--spacing-sm);
    font-size: var(--text-md);
    flex: 1;
}

.certificate-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: var(--text-sm);
    color: var(--light);
    margin-top: auto;
}

.certificate-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.certificate-meta i {
    color: var(--secondary);
}

/* Responsive styles for Certificates Section */
@media screen and (max-width: 1200px) {
    .certificates-section {
        padding: 1.5rem var(--spacing-lg);
    }
    
    .certificates-grid {
        gap: var(--spacing-md);
    }
}

@media screen and (max-width: 992px) {
    .certificates-section {
        padding: 1.5rem var(--spacing-md);
    }
    
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .certificate-info h3 {
        font-size: var(--text-lg);
    }
}

@media screen and (max-width: 768px) {
    .certificates-section {
        padding: 1.5rem var(--spacing-sm);
    }
    
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
    
    .certificate-img {
        height: 180px;
    }
    
    .certificate-info {
        padding: var(--spacing-sm);
    }
    
    .certificate-info p {
        font-size: var(--text-sm);
        margin-bottom: var(--spacing-xs);
    }
    
    .certificate-meta {
        gap: var(--spacing-xs);
        font-size: var(--text-xs);
    }
}

@media screen and (max-width: 576px) {
    .certificates-section {
        padding: 1rem var(--spacing-xs);
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .certificate-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .certificate-card:hover {
        transform: translateY(-5px);
    }
    
    .certificate-img {
        height: 160px;
    }
}

@media screen and (max-width: 375px) {
    .certificate-info h3 {
        font-size: var(--text-md);
    }
    
    .certificate-img {
        height: 140px;
    }
    
    .certificate-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== Contact Section ===== */
.contact-section {
    position: relative;
    overflow: hidden;
    padding: 1.5rem var(--spacing-md);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(10, 30, 60, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition-normal);
    transform: translateX(0);
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px; /* Prevent icon from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    color: var(--secondary);
    transition: var(--transition-normal);
}

.contact-item:hover .contact-icon {
    background: var(--secondary);
    color: var(--primary);
    transform: rotate(360deg);
}

.contact-text h3 {
    font-size: var(--text-md);
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

.contact-text p {
    color: var(--light);
    font-size: var(--text-sm);
    word-break: break-word;
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 30, 60, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: var(--radius-full);
    color: var(--secondary);
    font-size: var(--text-lg);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.social-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.8), transparent);
    transform: scale(0);
    transition: var(--transition-normal);
}

.social-btn:hover::before {
    transform: scale(2);
    opacity: 0;
}

.contact-form {
    background: rgba(10, 30, 60, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    border: 1px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
    background-size: 200% 100%;
    animation: gradientBorder 3s infinite linear;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition-fast);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.form-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition-normal);
}

.form-group input:focus~.focus-border,
.form-group textarea:focus~.focus-border {
    width: 100%;
}

.contact-form .btn {
    margin-top: var(--spacing-sm);
    width: 100%;
    max-width: 200px;
}

/* ===== Footer Section ===== */
.footer {
    background: var(--dark);
    position: relative;
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md) var(--spacing-md);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

/* Style for logo image instead of SVG */
.footer-logo img {
    width: 60px;
    height: 60px;
    transform: scale(1.5);
    margin-bottom: var(--spacing-sm);
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 2px solid var(--secondary);
    padding: 5px;
    background-color: rgba(10, 30, 60, 0.5);
    transition: var(--transition-normal);
}

.footer-logo img:hover {
    transform: rotate(10deg);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

.footer-logo h2 {
    font-size: var(--text-xl);
    color: var(--text);
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.footer-link-group h3 {
    font-size: var(--text-md);
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-link-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-link-group ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-group a {
    color: var(--light);
    transition: var(--transition-fast);
    position: relative;
    padding-left: 15px;
    font-size: var(--text-sm);
    display: inline-block;
    word-break: break-word;
}

.footer-link-group a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--secondary);
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition-fast);
}

.footer-link-group a:hover {
    color: var(--secondary);
    transform: translateX(5px);
    padding-left: 20px;
}

.footer-link-group a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    text-align: center;
}

.footer-bottom p {
    color: var(--light);
    font-size: var(--text-sm);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

.footer-social .social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 30, 60, 0.5);
    border-radius: var(--radius-full);
    color: var(--light);
    font-size: var(--text-md);
    transition: var(--transition-fast);
}

.footer-social .social-icon:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px) rotate(360deg);
}

/* Back to Top Button - Fixed visibility issue */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    opacity: 1; /* Changed from 0 to make it visible by default */
    visibility: visible; /* Changed from hidden to visible */
    transform: translateY(0); /* Removed initial transform */
    transition: var(--transition-fast);
    z-index: 99;
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* If you still want to show/hide it based on scroll, keep this class for JavaScript functionality */
.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* ===== Media Queries ===== */
/* Small devices (landscape phones, 576px and up) */
@media screen and (min-width: 576px) {
    .contact-section {
        padding: 1.5rem var(--spacing-lg);
    }
    
    .contact-form .btn {
        width: auto;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Medium devices (tablets, 768px and up) */
@media screen and (min-width: 768px) {
    .contact-section {
        padding: 1.5rem var(--spacing-lg);
    }
    
    .footer-top {
        grid-template-columns: 1fr 2fr;
        padding: 0 var(--spacing-lg) var(--spacing-lg);
    }
    
    .footer-logo {
        align-items: flex-start;
    }
    
    .footer-logo h2 {
        text-align: left;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

/* Large devices (desktops, 992px and up) */
@media screen and (min-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--spacing-lg);
    }
    
    .contact-section {
        padding: 1.5rem var(--spacing-xl);
    }
    
    .contact-item {
        padding: var(--spacing-md);
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: var(--text-xl);
    }
    
    .contact-text h3 {
        font-size: var(--text-lg);
    }
    
    .contact-text p {
        font-size: var(--text-md);
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .footer-top {
        padding: 0 var(--spacing-xl) var(--spacing-lg);
    }
    
    .footer-bottom {
        padding: var(--spacing-md) var(--spacing-xl);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media screen and (min-width: 1200px) {
    .contact-container {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-top, 
    .footer-bottom {
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
    }
}