/* Professional Internship-Ready Theme */
:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --primary: #38bdf8;
    --secondary: #94a3b8;
    --text-white: #f1f5f9;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    animation: fadeIn 1s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes profileGlow {
    0% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
    }

    100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 5rem 0;
    /* Balanced baseline spacing for a clean, consistent look */
}

.container h2 {
    font-size: 2.6rem;
    margin-bottom: 3.5rem;
    display: inline-block;
    position: relative;
    font-weight: 700;
}

.container h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Reduced spacing for header specifically */
.navbar .container {
    padding: 1.2rem 0;
}

/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.highlight {
    color: var(--primary);
}

.role {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 0.5rem 0 1.5rem;
}

.summary {
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Profile Image */
.profile-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: profileGlow 4s infinite ease-in-out;
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(56, 189, 248, 0.3);
}

/* Buttons */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btns i {
    margin-right: 0.5rem;
}

.btn-secondary {
    color: var(--text-white);
    border: 1.5px solid #334155;
}

.btn-secondary:hover {
    background: #334155;
    transform: translateY(-3px);
}

.btn-hero-social {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    background: rgba(30, 41, 59, 0.5);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-hero-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-social.linkedin:hover,
.btn-hero-social.resume-link:hover {
    border-color: #00b4d8;
    color: #00b4d8;
    background: rgba(0, 180, 216, 0.1);
}

.btn-hero-social.github:hover {
    border-color: #a855f7;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

/* Grid Layouts */
.skills-grid,
.projects-grid,
.education-grid {
    display: grid;
    gap: 3rem;
}

.skills-grid,
.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.education-grid {
    grid-template-columns: 1fr;
}

/* Cards & Hover Effects */
.project-card,
.education-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-card-modern {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.project-card:hover,
.skill-card-modern:hover,
.education-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

/* About Text Styling */
#about p {
    font-size: 1.15rem;
    max-width: 900px;
    line-height: 1.8;
    color: var(--text-white);
    opacity: 0.9;
}

/* Sub-headings and Text Refinements */
.project-card h3,
.education-card h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.skill-card-modern h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.education-card p {
    margin-bottom: 0.5rem;
}

.uni-name {
    font-weight: 600;
    color: var(--secondary);
}

.skill-card-modern p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skills Detailed View Card */
.skills-detail-view {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    padding: 0 2.5rem;
}

.skills-detail-view.active {
    max-height: 300px;
    opacity: 1;
    margin-top: 3rem;
    padding: 2.5rem;
}

.skills-detail-view h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.card-arrow {
    margin-left: 0.5rem;
    font-size: 0.85em;
    color: var(--secondary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card-modern:hover .card-arrow {
    color: var(--primary);
}

.skill-card-modern.active .card-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.skill-card-modern.active {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.15);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.skill-tags li {
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Icons for Modern Skill Cards */
.icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.3s ease;
}

.skill-card-modern:hover .icon-circle {
    background: #f97316;
    color: #ffffff;
    transform: scale(1.1);
}

/* Certifications Horizontal Scroll */
.certifications-wrapper {
    position: relative;
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

/* Fading Edges */
.certifications-wrapper::before,
.certifications-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 2rem; /* Matches padding-bottom of .certifications-scroll */
    width: 80px;
    z-index: 2;
    pointer-events: none;
    transition: var(--transition);
}

.certifications-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.certifications-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.certifications-scroll {
    display: flex;
    overflow-x: auto;
    gap: 2.5rem;
    padding-bottom: 2rem;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}

.certifications-scroll::-webkit-scrollbar {
    display: none;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.scroll-btn.left {
    left: -20px;
}

.scroll-btn.right {
    right: -20px;
}

.scroll-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary);
}

.scroll-btn i {
    font-size: 1.1rem;
    margin: 0; /* Override generic .btn i if any */
}

@media (max-width: 1200px) {
    .scroll-btn.left { left: 5px; }
    .scroll-btn.right { right: 5px; }
}

@media (max-width: 768px) {
    .scroll-btn {
        width: 38px;
        height: 38px;
        background: rgba(30, 41, 59, 0.85); /* Slightly less transparent on mobile for better visibility */
    }
    .scroll-btn.left { left: 2px; }
    .scroll-btn.right { right: 2px; }
    .scroll-btn i { font-size: 0.9rem; }
    
    .certifications-wrapper::before,
    .certifications-wrapper::after {
        width: 40px;
    }
}

.cert-link {
    text-decoration: none;
    display: flex;
    flex: 0 0 320px;
    color: inherit;
    transition: var(--transition);
}

.cert-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
    cursor: pointer;
}

.cert-link:hover .cert-card {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.25);
}

.cert-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-info {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}

.cert-info h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.cert-info p {
    color: var(--secondary);
    font-size: 0.95rem;
    margin: 0;
}

.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.tools span {
    font-size: 0.8rem;
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    background: rgba(56, 189, 248, 0.05);
    transition: var(--transition);
}

.tools span:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

/* Forms */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: #111827;
    /* Darker background for the form container */
    border-radius: 12px;
    border: 1px solid #1f2937;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: #0d1117;
    /* Even darker background for inputs */
    border: 1px solid #30363d;
    color: white;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #484f58;
}

.contact-form textarea {
    resize: none;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: linear-gradient(90deg, #ec4899 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        padding-top: 8rem;
    }

    .nav-links {
        display: none;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Contact Wrapper & Social Links */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.social-box i {
    font-size: 1.2rem;
}

.linkedin {
    border-color: #00b4d8;
    color: #00b4d8;
}

.linkedin:hover {
    background: rgba(0, 180, 216, 0.1);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.2);
    transform: translateY(-3px);
}

.github {
    border-color: #a855f7;
    color: #a855f7;
}

.github:hover {
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
    transform: translateY(-3px);
}

.instagram {
    border-color: #ec4899;
    color: #ec4899;
}

.instagram:hover {
    background: rgba(236, 72, 153, 0.1);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
    transform: translateY(-3px);
}

.btn i {
    margin-right: 0.8rem;
}

/* Footer Styling */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0b1121;
}

.footer-content {
    padding: 2.5rem 0 !important;
    text-align: center;
}

.footer-content p {
    color: var(--secondary);
    font-size: 0.95rem;
}

.footer-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-content a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 850px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        align-items: center;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}