/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #000;
    overflow-x: hidden;
    min-height: 100%;
    color: white;
    position: relative;
}

/* Section Layout Styles */
.section-full {
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Background Effects */
.mirror-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.mirror-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    pointer-events: none;
    z-index: -1;
}

/* Navigation Styles */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.top-nav.hidden {
    transform: translateY(-100%);
}

.navbar-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #0dcaf0;
    transform: scale(1.05);
}

.nav-link {
    color: white !important;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #0dcaf0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: #0dcaf0 !important;
    transform: translateY(-2px);
}

/* Side Navigation */
.side-nav {
    position: fixed;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 0.5rem;
    border-radius: 0 20px 20px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transition: left 0.3s ease;
}

.side-nav-trigger {
    position: absolute;
    left: 100%;
    top: 0;
    width: 20px;
    height: 100%;
}

.side-nav:hover,
.side-nav.visible {
    left: 0;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-icon {
    display: block;
    color: white;
    font-size: 1.5rem;
    padding: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-icon::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #0dcaf0;
    transition: width 0.3s ease;
}

.nav-icon:hover::after,
.nav-icon.active::after {
    width: 20px;
}

.nav-icon:hover {
    color: #0dcaf0;
    transform: scale(1.2);
}

/* About Section  */
.about-content {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: white;
    letter-spacing: 0.5px;
    line-height: 1.8;
    text-align: justify;
    max-width: 90%;
}

.speech-bubble {
    fill: white;
    opacity: 0;
}

.speech-bubble.fadeInOut {
    animation: fadeInOut 2s infinite;
}

.speech-text {
    fill: black;
    font-size: 14px;
    text-anchor: middle;
    dominant-baseline: middle;
}

/* Voice Control Elements */
.mic-container {
    position: relative;
    margin-top: 2rem;
    text-align: center;
}

.voice-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.voice-button:hover {
    background-color: #217adf;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(13, 202, 240, 0.3);
    border: 2px solid #217adf;
}

.voice-button i {
    font-size: 32px;
    color: white;
}

.voice-button.listening {
    background: #dc3545;
    animation: pulse 1.5s infinite;
    border: 2px solid #dc3545;
    box-shadow: 0 5px 20px rgba(187, 38, 15, 0.726);
}

.mic-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7); /* Soft text color */
    text-align: center;
    margin-top: 8px;
    font-weight: 300;
    opacity: 0.8;
    animation: fadeInOut 3s infinite alternate;
}

/* Smooth fading effect */
@keyframes fadeInOut {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.status-text {
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-text.active {
    opacity: 1;
}

.profile-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px;
    box-shadow: 0 0 20px 5px rgba(145, 190, 191, 0.7); 
    display: flex; 
    align-items: center;
    justify-content: center;
}

.profile-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    animation: rotate 4s linear infinite;
    background: 
        linear-gradient(#000, #000) padding-box,
        linear-gradient(45deg, #1f1d1d, #1f1d1d) border-box;
    border: 3px solid transparent;
    pointer-events: none; 
    z-index: 1;
}

.profile-image {
    width: 120%;
    height: 120%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform 0.3s ease-in-out;
    z-index: 2;
}

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

/* Movable Container */
.movable-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: move;
    user-select: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.movable-container:hover {
    transform: translate(5px, -5px);
    box-shadow: 0 15px 35px rgba(13, 202, 240, 0.2);
}

/* Skills Section */
.skills-content {
    padding: 2rem 0;
}

.skills-grid {
    margin-top: 2rem;
}

.skills-category-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.skills-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(13, 202, 240, 0.2);
}

.category-title {
    color: #0dcaf0;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0dcaf0, #6610f2);
    border-radius: 3px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.skill-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13, 202, 240, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon-wrapper {
    background: rgba(13, 202, 240, 0.2);
    transform: rotate(10deg) scale(1.15);
}

.skill-icon-wrapper i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon-wrapper i {
    transform: scale(1.1);
}

.skill-name {
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.skill-card:hover .skill-name {
    color: #b8d838;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #0dcaf0, #6610f2);
    opacity: 0;
    transition: all 0.3s ease;
}

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

#skills h2:hover {
    color: #34dbd0 !important; 
    transition: color 0.3s ease-in-out;
}

#home p:hover {
    color: #c5c6bd !important; 
    transition: color 0.3s ease-in-out;
}

#home h1:hover {
    color: #34dbd0 !important; 
    transition: color 0.3s ease-in-out;
}

/* Text Effects */
.hover-effect {
    transition: all 0.3s ease;
    position: relative;
}

#projects h2:hover {
    color: #34dbd0 !important; 
    transition: color 0.3s ease-in-out;
}

#contact h2:hover {
    color: #34dbd0 !important; 
    transition: color 0.3s ease-in-out;
}

/*Button Styling */
#about .linkedin-btn, 
#about .github-btn {
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 50px; 
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.4s ease-in-out;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#about .linkedin-btn::after, 
#about .github-btn::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#about .linkedin-btn {
    color: #fff;
    background: linear-gradient(45deg, #0077b5, #004d7a);
}

#about .linkedin-btn:hover {
    background: linear-gradient(45deg, #004d7a, #0077b5);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 119, 181, 0.8);
}

#about .linkedin-btn::after {
    background: linear-gradient(45deg, #00aaff, #005582);
}

#about .github-btn {
    color: #fff;
    background: linear-gradient(45deg, #24292e, #1b1f23);
}

#about .github-btn:hover {
    background: linear-gradient(45deg, #1b1f23, #24292e);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(36, 41, 46, 0.8);
}

#about .github-btn::after {
    background: linear-gradient(45deg, #3f3f3f, #24292e);
}

#about .linkedin-btn::before,
#about .github-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.5s ease-in-out;
    transform: translate(-50%, -50%) rotate(45deg);
}

#about .linkedin-btn:hover::before,
#about .github-btn:hover::before {
    width: 0;
    height: 0;
    opacity: 0;
}

#about p:hover {
    color: #c5c6bd !important; 
    transition: color 0.3s ease-in-out;
}

#about h2:hover {
    color: #3498db !important; 
    transition: color 0.3s ease-in-out;
}

#home p:hover {
    color: #c5c6bd !important;
    transition: color 0.3s ease-in-out;
}

#home h2:hover {
    color: #3498db !important; 
    transition: color 0.3s ease-in-out;
}

.about-hover-text span {
    display: inline-block;
    cursor: pointer;
}

.about-hover-text span:hover {
    color: #28ebaa;
}

/* Home Section Improvements */
.hover-text span {
    display: inline-block;
    transition: color 0.3s ease-in-out;
    cursor: pointer;
}

.hover-text span:hover {
    color: #c823cb; 
}

.animate-title {
    animation: fadeInUp 1s both;
    animation-delay: calc(var(--animation-order, 0) * 0.2s);
}

#home h1 {
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: -1px;
}

#home .lead {
    font-size: 1.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 700px; 
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 0 12px rgba(13, 202, 240, 0.4);
    outline: none;
    border-color: rgba(13, 202, 240, 0.5);
}

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

.btn-gradient {
    background: linear-gradient(45deg, #0dcaf0, #6610f2);
    color: rgb(255, 255, 255);
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(78, 218, 245, 0.4);
}

.btn-gradient:active {
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(78, 218, 245, 0.3);
}

.btn-success {
    background: #25D366;
    border: none;
    font-weight: bold;
    padding: 1rem;
    border-radius: 12px;
}

.btn-success:hover {
    background: #1ebc57;
    transform: scale(1.05);
}

/* Project Carousel */
.project-card-container {
    padding: 2rem;
}

.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 400px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    transition: background-color 0.5s ease-in-out;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.flip-card-back {
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: rotateY(180deg);
}

.carousel-item:nth-child(1) .flip-card-back {
    background-color: #ff6b6b;
    color: #000;
}

.carousel-item:nth-child(2) .flip-card-back {
    background-color: #6bcbff;
    color: #121010;
}

.carousel-item:nth-child(3) .flip-card-back {
    background-color: #ffd56b;
    color: #222;
}

.carousel-item:nth-child(4) .flip-card-back {
    background-color: #a56bff;
    color: #fff;
}

.carousel-item:nth-child(5) .flip-card-back {
    background-color: #6bff96;
    color: #000;
}

.flip-card-back h3 {
    color: inherit;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.flip-card-back p {
    color: inherit;
    font-size: 1.1rem;
    line-height: 1.5;
}

.flip-card-back .btn {
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 50px;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
}

/* Button Hover Animation */
.flip-card-back .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease-in-out;
}

.flip-card-back .btn:hover::before {
    left: 100%;
}

.flip-card-back .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.carousel-item:nth-child(1) .flip-card-back .btn {
    color: #fff;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
}

.carousel-item:nth-child(1) .flip-card-back .btn:hover {
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
}

.carousel-item:nth-child(2) .flip-card-back .btn {
    color: #060505;
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
}

.carousel-item:nth-child(2) .flip-card-back .btn:hover {
    background: linear-gradient(45deg, #6dd5ed, #2193b0);
}

.carousel-item:nth-child(3) .flip-card-back .btn {
    color: #000;
    background: linear-gradient(45deg, #ffb347, #ffcc33);
}

.carousel-item:nth-child(3) .flip-card-back .btn:hover {
    background: linear-gradient(45deg, #ffcc33, #ffb347);
}

.carousel-item:nth-child(4) .flip-card-back .btn {
    color: #fff;
    background: linear-gradient(45deg, #8e2de2, #4a00e0);
}

.carousel-item:nth-child(4) .flip-card-back .btn:hover {
    background: linear-gradient(45deg, #4a00e0, #8e2de2);
}

.carousel-item:nth-child(5) .flip-card-back .btn {
    color: #fff;
    background: linear-gradient(45deg, #11998e, #38ef7d);
}

.carousel-item:nth-child(5) .flip-card-back .btn:hover {
    background: linear-gradient(45deg, #38ef7d, #11998e);
}

.project-description {
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    color: #f8f9fa;
    padding: 0 15px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-circle {
        width: 150px;
        height: 150px;
    }

    .side-nav {
        display: none;
    }

    .section-full {
        padding: 60px 0;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .profile-circle {
        width: 120px;
        height: 120px;
    }

    .side-nav {
        display: none;
    }

    .section-full {
        padding: 40px 0;
    }

    .contact-form {
        padding: 1rem;
    }

    .voice-button {
        width: 60px;
        height: 60px;
    }

    .voice-button i {
        font-size: 24px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .about-content {
        font-size: 16px;
    }

    .skills-category-card {
        padding: 1rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .flip-card {
        height: 300px;
    }

    .flip-card-back h3 {
        font-size: 1.5rem;
    }

    .flip-card-back p {
        font-size: 1rem;
    }

    .project-description {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .voice-button {
        width: 50px;
        height: 50px;
    }

    .voice-button i {
        font-size: 20px;
    }

    .about-content {
        font-size: 14px;
    }

    .skills-category-card {
        padding: 0.8rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }

    .flip-card {
        height: 250px;
    }

    .flip-card-back h3 {
        font-size: 1.2rem;
    }

    .flip-card-back p {
        font-size: 0.9rem;
    }

    .project-description {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    .mirror-bg::before {
        display: none;
    }

    .side-nav,
    .top-nav {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}