/* Header Specifics */
.main-header {
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(26, 26, 46, 0.95); /* Slightly translucent */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px); /* Glassmorphism effect */
}

.main-header .navbar-brand .logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.main-header .navbar-brand .logo-text {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 224, 255, 0.5);
}

.main-header .nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

.main-header .nav-link:hover::after,
.main-header .nav-link.active::after {
    width: 100%;
}

.main-header .navbar-toggler {
    border-color: var(--border-color);
}

.main-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 224, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top left, var(--background-dark) 0%, var(--background-dark) 50%, #0d0d1a 100%);
}

.hero-background-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-background-effect::before,
.hero-background-effect::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(80px);
    animation: glow-animation 20s infinite alternate ease-in-out;
}

.hero-background-effect::before {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    top: 10%;
    left: 15%;
}

.hero-background-effect::after {
    width: 400px;
    height: 400px;
    background-color: var(--secondary-color);
    bottom: 15%;
    right: 20%;
    animation-delay: 5s;
}

@keyframes glow-animation {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(20px, 30px) scale(1.1); opacity: 0.3; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
}


/* About Section */
.about-section {
    background-color: var(--background-dark);
}

.profile-img {
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
    transition: all 0.3s ease;
    max-width: 350px;
    margin: 0 auto;
    display: block; /* Center image */
}

.profile-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 224, 255, 0.5);
}

/* Expertise (Skills) Section */
.expertise-section {
    background-color: var(--background-light-card);
    position: relative;
    overflow: hidden;
}

.skill-card {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px); /* Glassmorphism on cards */
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 224, 255, 0.3);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
}

.skill-title {
    color: var(--text-light);
    font-weight: 600;
}

.skill-experience {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Custom Cloud Solutions Section */
.cloud-solution-section {
    background: radial-gradient(circle at center, rgba(0, 224, 255, 0.1) 0%, transparent 70%),
                radial-gradient(circle at bottom right, rgba(240, 98, 146, 0.1) 0%, transparent 70%),
                var(--background-dark);
    position: relative;
    overflow: hidden;
}

.cloud-solution-background-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 50%);
    opacity: 0.1;
    filter: blur(100px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulse-glow 15s infinite alternate ease-in-out;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.15; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.1; }
}


.service-card {
    background-color: var(--background-light-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    min-height: 220px; /* Ensure consistent height */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 224, 255, 0.3);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(240, 98, 146, 0.5);
}

.service-card h3 {
    color: var(--text-light);
}

/* Projects Section */
.projects-section {
    background-color: var(--background-dark);
}

.project-card {
    background-color: var(--background-light-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 224, 255, 0.3);
    border-color: var(--primary-color);
}

.project-img {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 220px; /* Fixed height for project images */
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

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

.project-info {
    border-top: 1px solid var(--border-color);
}

.project-title {
    color: var(--text-light);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    background-color: var(--background-light-card);
}

.contact-grid {
    gap: 30px; /* More space between contact items */
}

.contact-item {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    color: var(--text-light); /* Base text color for item */
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 224, 255, 0.3);
    border-color: var(--primary-color);
    color: var(--primary-color); /* Change text color on hover */
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 224, 255, 0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: var(--secondary-color); /* Change icon color on hover */
    text-shadow: 0 0 8px rgba(240, 98, 146, 0.5);
}

.contact-title {
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-title {
    color: var(--primary-color);
}

.contact-detail {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Footer */
.main-footer {
    background-color: #0f0f1a;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-social-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

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

.copyright-text {
    font-size: 0.9rem;
}