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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #ffffff;
    --text-color: #2d2d2d;
    --main-color: #DC6464;     /* Soft coral - warm but not aggressive */
    --secondary-color: #A8D5BA; /* Soft sage green - muted and professional */
    --accent-color: #7DB8C4;    /* Soft dusty blue - calm and trusted */
    --white-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(220, 100, 100, 0.15); /* Soft coral tint */
    /* Skill card palette */
    --skill-card-bg: #ffffff;   /* Clean white */
    --skill-card-border: rgba(220, 100, 100, 0.2); /* Subtle coral accent */
    --skill-icon-color: #DC6464; /* Soft coral */
    --skill-text-color: #333333; /* Dark neutral */
    --skill-shadow: rgba(0, 0, 0, 0.06);
    --skill-back-bg-start: #FBF6F1; /* Warm off-white */
    --skill-back-bg-end: #F5EFEB;   /* Soft taupe */
    /* General card palette - used across all sections */
    --card-bg: #ffffff;         /* Clean white cards */
    --card-border: rgba(220, 100, 100, 0.15); /* Subtle coral accent */
    --card-shadow: rgba(0, 0, 0, 0.06);       /* Soft shadow */
}

/* Skills Section */
.skills-section {
    min-height: auto;
    padding: 8rem 7% 10rem;
    background: linear-gradient(
        135deg,
        var(--bg-color),
        rgba(255, 255, 255, 0.95)
    );
}

.dark-mode .skills-section {
    background: linear-gradient(
        135deg,
        var(--bg-color) 0%,
        rgba(15, 25, 40, 0.98) 100%
    );
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Flip Card Container */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 420px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    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: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    border: 2px solid var(--skill-card-border);
    box-shadow: 0 4px 12px var(--skill-shadow);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.flip-card-front {
    background: linear-gradient(135deg, var(--skill-card-bg), rgba(var(--skill-icon-color), 0.05));
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--skill-back-bg-start), var(--skill-back-bg-end));
    border: 2px solid var(--skill-card-border);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flip-card:hover .flip-card-front {
    box-shadow: 0 12px 32px rgba(255, 128, 128, 0.25);
    background: linear-gradient(135deg, var(--skill-card-bg), rgba(var(--skill-icon-color), 0.12));
}

.flip-card:hover .flip-card-back {
    box-shadow: 0 12px 32px rgba(255, 128, 128, 0.25);
    background: linear-gradient(135deg, rgba(var(--skill-icon-color), 0.05), var(--skill-back-bg-end));
}

.flip-card-front h3 {
    font-size: 2.4rem;
    color: var(--skill-text-color);
    margin: 0;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.flip-card-back h3 {
    display: none;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
}

.skills-list li {
    color: var(--skill-text-color);
    font-size: 1.9rem;
    position: relative;
    padding-left: 2.5rem;
    text-align: left;
    width: 100%;
    transition: transform 0.3s ease, color 0.3s ease;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skills-list li:hover {
    transform: translateX(5px);
    color: var(--skill-icon-color);
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--skill-icon-color);
    font-size: 2.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skills-list li:hover::before {
    transform: scale(1.2);
    color: var(--skill-icon-color);
}


/* Dark Mode Adjustments - All using CSS variables for consistency */
.dark-mode .card-front {
    background: var(--skill-card-bg);
    border: 2px solid var(--skill-card-border);
}

.dark-mode .skill-card h3,
.dark-mode .skill-list li {
    color: var(--skill-text-color);
}

.dark-mode .skill-card::before {
    background: linear-gradient(135deg, var(--skill-icon-color), var(--accent-color));
    opacity: 0.2;
}

.dark-mode .card-back {
    background: linear-gradient(135deg, var(--skill-back-bg-start), var(--skill-back-bg-end));
    border: 2px solid var(--skill-card-border);
}

.dark-mode .skill-list li::before {
    color: var(--skill-icon-color);
}

/* Light Mode Adjustments - Explicit for clarity */
.card-front {
    background: var(--skill-card-bg);
}

.card-back {
    background: linear-gradient(135deg, var(--skill-back-bg-start), var(--skill-back-bg-end));
}

/* Responsive Design */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .flip-card {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .flip-card {
        height: 380px;
    }
    
    .flip-card-front h3 {
        font-size: 2rem;
    }
    
    .skills-list li {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .flip-card {
        height: 340px;
    }
    
    .flip-card-front h3 {
        font-size: 1.8rem;
    }
    
    .skills-list li {
        font-size: 1.4rem;
    }
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

.dark-mode {
    --bg-color: #0d1520;
    --text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 153, 153, 0.2);
    /* Dark mode skill card palette - improved colors */
    --skill-card-bg: linear-gradient(135deg, rgba(30, 45, 70, 0.98), rgba(20, 35, 60, 0.98));
    --skill-card-border: rgba(255, 153, 153, 0.4);
    --skill-icon-color: #FF8080;     /* Vibrant coral - more visible */
    --skill-text-color: #ffffff;     /* Pure white for sharp contrast */
    --skill-shadow: rgba(0, 0, 0, 0.5);
    --skill-back-bg-start: #1a2e4a;  /* Richer navy gradient start */
    --skill-back-bg-end: #0f1f35;    /* Deep navy gradient end */
    /* General card palette for dark mode */
    --card-bg: rgba(30, 45, 70, 0.98);      /* Richer dark navy */
    --card-border: rgba(255, 153, 153, 0.4); /* Brighter coral accent */
    --card-shadow: rgba(0, 0, 0, 0.5);       /* Deeper shadow */
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.8)
    );
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 
        0 4px 6px -1px var(--shadow-color),
        inset 0 1px rgba(255, 255, 255, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            135deg,
            rgba(255, 107, 107, 0.05),
            rgba(78, 205, 196, 0.05)
        ),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FF6B6B' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.header.sticky {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.9)
    );
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 6px -1px var(--shadow-color),
        inset 0 1px rgba(255, 255, 255, 0.5);
}

.dark-mode .header {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9),
        rgba(15, 23, 42, 0.8)
    );
}

.dark-mode .header.sticky {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95),
        rgba(15, 23, 42, 0.9)
    );
}

.dark-mode .header::before {
    background: 
        linear-gradient(
            135deg,
            rgba(255, 107, 107, 0.05),
            rgba(78, 205, 196, 0.05)
        ),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FF6B6B' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.logo {
    font-size: 3rem;
    color: var(--main-color);
    font-weight: 600;
    margin-right: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.navbar {
    position: relative;
    background: linear-gradient(
        90deg,
        rgba(255, 107, 107, 0.1),
        rgba(78, 205, 196, 0.1)
    );
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    backdrop-filter: blur(5px);
}

.navbar a {
    position: relative;
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 500;
    margin-right: 3.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.navbar a:hover {
    color: var(--main-color);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.navbar a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: .2rem;
    background: linear-gradient(
        90deg,
        var(--main-color),
        var(--secondary-color)
    );
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1rem;
}

.navbar a:hover::before {
    transform: scaleX(1);
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

.navbar a.active::before {
    transform: scaleX(1);
    background: linear-gradient(
        90deg,
        var(--main-color),
        var(--secondary-color)
    );
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.2);
}

#darkMode-icon {
    font-size: 2.4rem;
    color: var(--white-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

#darkMode-icon:hover {
    transform: rotate(360deg);
    color: var(--main-color);
}

.header.sticky #darkMode-icon:hover {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

.home {
    display: flex;
    align-items: center;
}

.home .home-content {
    max-width: 44rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: .3;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: .3rem;
}

.home-content p {
    font-size: 1.6rem;
}

.home-content .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.home-content .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--shadow-color);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

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

.home .profession-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

.home .profession-container .profession-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 768px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: professionRotate 6s linear infinite;
}

@keyframes professionRotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-90deg);
    }
    50% {
        transform: rotate(-180deg);
    }
    75% {
        transform: rotate(-270deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.home .profession-box .profession {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--main-color);
    transform: rotate(calc(360deg / 4 * var(--i)));
    transform-origin: 384px;
    background: var(--bg-color);
    padding: 13px 0;
}

.home .profession-box .profession:nth-child(1) i {
    margin-right: 15px;
}

.home .profession-box .profession:nth-child(2),
.home .profession-box .profession:nth-child(4) {
    padding-bottom: 20px;
}

.home .profession i {
    font-size: 3.8rem;
}

.home .profession h3 {
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 600;
}

.home .profession-box .circle {
    width: 560px;
    height: 560px;
    border: 3px solid var(--main-color);
    border-radius: 50%;
    z-index: -1;
}

.home .profession-container .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 50vh solid var(--main-color);
    border-right: 384px solid var(--main-color);
    border-bottom: 50vh solid var(--main-color);
    border-left: 384px solid transparent;
}

.home-img {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: -50px;
    z-index: 1;
}

.home-img img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease;
}

.home-img img:hover {
    transform: translateY(-10px);
}

span {
    color: var(--main-color);
}

/* About Section Styles */
.about {
    min-height: auto;
    padding: 8rem 7% 10rem;
    background: linear-gradient(
        to bottom,
        var(--bg-color) 0%,
        rgba(var(--bg-color-rgb), 0.95) 100%
    );
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text h3 {
    font-size: clamp(2rem, 2.5vw, 2.8rem);
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid var(--main-color);
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-details p {
    font-size: clamp(1.4rem, 1.6vw, 1.6rem);
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--card-border);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.stat-info h4 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-info p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8),
        transparent
    );
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-container:hover .image-overlay {
    transform: translateY(0);
}

.image-container:hover img {
    transform: scale(1.1);
}

.overlay-content {
    color: white;
    text-align: center;
}

.overlay-content h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Dark Mode Adjustments */
.dark-mode .stat-item {
    background: rgba(15, 23, 42, 0.5);
}

.dark-mode .about-text h3 {
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-grid {
        gap: 3rem;
    }
}

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

    .about-image {
        order: -1;
    }

    .image-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1.2rem;
    }

    .image-container {
        max-width: 100%;
    }
}

.services {
    min-height: auto;
    padding-bottom: 10rem;
}

.services h2 {
    margin-bottom: 5rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-container .services-box {
    flex: 1 1 30rem;
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px var(--card-shadow);
    text-align: center;
    border: 2px solid var(--card-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.services-container .services-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--main-color);
}

.services-box i {
    font-size: clamp(4rem, 5vw, 7rem);
    color: var(--main-color);
    margin-bottom: 2rem;
}

.services-box h3 {
    font-size: clamp(2rem, 2.5vw, 2.6rem);
    margin-bottom: 1.5rem;
    transition: .5s ease;
}

.services-box:hover h3 {
    color: var(--main-color);
}

.services-box p {
    font-size: clamp(1.4rem, 1.6vw, 1.6rem);
    margin: 1rem 0 3rem;
    line-height: 1.6;
}

.portfolio {
    min-height: auto;
    padding: 8rem 7% 10rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        var(--bg-color) 0%,
        rgba(var(--bg-color-rgb), 0.95) 100%
    );
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(var(--bg-color-rgb), 0.95),
        rgba(var(--bg-color-rgb), 0.85)
    );
    z-index: 1;
}

.portfolio video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
    opacity: 0.15;
    clip-path: inset(0 0 0 0);
}

/* Hide potential watermark by cropping bottom right */
.portfolio video::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 50px;
    background: var(--bg-color);
    z-index: 2;
}

.portfolio h2,
.portfolio-container {
    position: relative;
    z-index: 2;
}

.portfolio h2 {
    margin-bottom: 6rem;
    position: relative;
    padding: 2rem 0;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Projects Section Styles */
.projects-section {
    margin-bottom: 6rem;
    animation: fadeInUp 0.6s ease-out;
}

.projects-subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    border-bottom: 3px solid var(--main-color);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.projects-section:nth-child(3) .projects-subsection-title {
    border-bottom: 3px solid var(--main-color);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.portfolio-box {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border: 2px solid var(--card-border);
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: all 0.3s ease;
    height: 400px;
}

.portfolio-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--main-color);
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.8)
    );
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
}

.portfolio-layer h4 {
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    color: var(--white-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-layer p {
    font-size: clamp(1.2rem, 1.4vw, 1.4rem);
    color: var(--white-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    padding: 0 1rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: var(--white-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: var(--main-color);
    transform: translateY(-5px);
}

.project-links a i {
    font-size: 2rem;
    color: var(--text-color);
}

.project-links a:hover i {
    color: var(--white-color);
}

/* Empty Section Placeholder */
.portfolio-container.empty-section {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projects-placeholder {
    text-align: center;
    padding: 3rem;
    border-radius: 15px;
    background: linear-gradient(
        135deg,
        rgba(var(--main-color-rgb), 0.05),
        rgba(var(--main-color-rgb), 0.1)
    );
    border: 2px dashed var(--main-color);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-width: 400px;
}

.projects-placeholder:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--main-color);
}

.projects-placeholder i {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.8;
}

.projects-placeholder p {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 500;
    opacity: 0.8;
}

/* Animation for Projects Section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Adjustments */
.dark-mode .portfolio-box {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
}

.dark-mode .portfolio-box:hover {
    border-color: var(--main-color);
}

.dark-mode .projects-placeholder {
    background: linear-gradient(
        135deg,
        rgba(var(--main-color-rgb), 0.08),
        rgba(var(--main-color-rgb), 0.12)
    );
    border-color: var(--main-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-box {
        height: 350px;
    }
    
    .portfolio-layer p {
        max-height: 150px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .portfolio-box {
        height: 300px;
    }
    
    .portfolio-layer {
        padding: 1.5rem;
    }
    
    .portfolio-layer h4 {
        font-size: 1.6rem;
    }
    
    .portfolio-layer p {
        max-height: 120px;
        font-size: 1.1rem;
    }
    
    .project-links a {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .project-links a i {
        font-size: 1.8rem;
    }
}

.testimonial-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 5rem 1rem;
}

.testimonial-container .testimonial-wrapper {
    position: relative;
    max-width: 90rem;
    width: 100%;
    padding: 5rem;
}

.testimonial-wrapper .testimonial-box {
    padding: 1rem;
    border-radius: 2rem;
    overflow: hidden;
}

.testimonial-content .testimonial-slide {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    padding: 3rem 5rem;
    border-top: .8rem solid var(--main-color);
    border-bottom: .8rem solid var(--main-color);
    transition: all 0.3s ease;
}

.testimonial-slide img {
    width: 14rem;
    height: 14rem;
    object-fit: cover;
    border-radius: 50%;
    border: .5rem solid var(--bg-color);
    outline: .5rem solid var(--main-color);
}

.testimonial-slide h3 {
    font-size: 2.5rem;
    margin: 2rem 0;
}

.testimonial-slide p {
    font-size: 1.4rem;
    text-align: center;
}

.testimonial-box .swiper-button-next,
.testimonial-box .swiper-button-prev {
    color: var(--main-color);
}

.testimonial-box .swiper-button-next {
    right: 0;
}

.testimonial-box .swiper-button-prev {
    left: 0;
}

.testimonial-box .swiper-pagination-bullet {
    background: rgba(0, 0, 0, .8);
}

.testimonial-box .swiper-pagination-bullet-active {
    background: var(--main-color);
}

/* Contact Section Styles */
.contact {
    background: var(--bg-color);
    backdrop-filter: blur(0px);
    padding: 8rem 7% 2rem;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    padding: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px var(--card-shadow);
    border: 2px solid var(--card-border);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    background: var(--primary-color);
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

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

.contact-details {
    flex: 1;
}

.contact-details h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.5rem;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-link:hover {
    background: var(--hover-color);
    transform: translateX(5px);
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px var(--card-shadow);
    border: 2px solid var(--card-border);
}

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

.form-header h3 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.form-header p {
    font-size: 1.4rem;
    color: #666;
}

.input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-box {
    position: relative;
    margin-bottom: 2rem;
}

.input-box input,
.input-box textarea {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.6rem;
    color: var(--text-color);
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background: transparent;
    transition: all 0.3s ease;
}

.input-box label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1.6rem;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label,
.input-box textarea:focus ~ label,
.input-box textarea:valid ~ label {
    top: -1.5rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.message-box {
    margin-bottom: 3rem;
}

.message-box textarea {
    min-height: 15rem;
    resize: vertical;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.submit-btn i {
    font-size: 2rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Dark Mode Styles */
.dark-mode .contact {
    background: var(--bg-color);
}

.dark-mode .contact-card {
    background: var(--card-bg);
    box-shadow: 0 4px 12px var(--card-shadow);
}

.dark-mode .contact-details h3 {
    color: var(--bg-color);
}

.dark-mode .contact-details p {
    color: #aaa;
}

.dark-mode .input-box input,
.dark-mode .input-box textarea {
    color: var(--bg-color);
    border-bottom-color: #444;
}

.dark-mode .input-box label {
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-container {
        gap: 3rem;
    }
}

@media (max-width: 991px) {
    .contact {
        padding: 8rem 5% 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .contact-card {
        min-width: 100%;
    }
    
    .input-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact {
        padding: 8rem 3% 2rem;
    }
    
    .contact-container {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-header h3 {
        font-size: 2rem;
    }
    
    .form-header p {
        font-size: 1.2rem;
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background: var(--main-color);
}

.footer-text p {
    font-size: 1.6rem;
    color: var(--white-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    outline-color: var(--white-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #333;
}

/* Responsive container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhanced Media Queries */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .container {
        max-width: 960px;
    }

    .home .profession-container .profession-box {
        right: -20%;
    }

    .home .profession-container .overlay {
        right: -6%;
    }

    .home-img {
        max-width: 350px;
        margin-right: -30px;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 50%;
    }

    .container {
        max-width: 720px;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid var(--glass-border);
        box-shadow: 0 .5rem 1rem var(--shadow-color);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 1.7rem;
        margin: 3rem 0;
    }

    #menu-icon {
        display: block;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-content {
        max-width: 100%;
    }

    .home .profession-container {
        left: 0;
        width: 100%;
    }

    .home .profession-container .profession-box {
        position: fixed;
        top: 60%;
        transform: translateY(-50%);
        width: 100%;
    }

    .home-img {
        max-width: 300px;
        margin: 2rem auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 45%;
    }

    .container {
        max-width: 540px;
    }

    .header {
        padding: 2rem 3%;
    }

    #darkMode-icon {
        position: absolute;
        right: 7rem;
        font-size: 2.6rem;
        color: var(--text-color);
        margin-bottom: .1rem;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content .social-media a {
        width: 4rem;
        height: 4rem;
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-img img {
        width: 70vw;
        margin-top: -2rem;
    }

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

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

    .heading {
        font-size: 3rem;
    }

    section h2 {
        font-size: 3rem;
    }

    .home-content h1 {
        font-size: 4.5rem;
    }

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

    .services-container .services-box {
        padding: 3rem 2rem 4rem;
    }

    .portfolio-container .portfolio-box {
        height: auto;
        min-height: 200px;
    }

    .home-img {
        max-width: 280px;
        margin: 2rem auto;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 40%;
    }

    .container {
        max-width: 100%;
    }

    .header {
        padding: 2rem 3%;
    }

    .logo {
        font-size: 2.5rem;
    }

    #darkMode-icon {
        right: 6rem;
        font-size: 2.2rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content p {
        font-size: 1.6rem;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio-container .portfolio-box {
        height: auto;
        min-height: 200px;
    }

    .contact form {
        padding: 2rem;
    }

    .contact form .input-box input {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
        text-align: center;
    }

    .heading {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 2.5rem;
    }

    .services-container .services-box {
        padding: 2rem 1rem 3rem;
    }

    .portfolio-container .portfolio-box {
        height: auto;
        min-height: 200px;
    }

    .home-img {
        max-width: 250px;
        margin: 2rem auto;
    }
}

/* Mobile-first responsive images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Responsive grid system */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Responsive spacing utilities */
.section-padding {
    padding: 10rem 7% 2rem;
}

@media (max-width: 768px) {
    .section-content {
        padding: 0 1.5rem;
    }

    .about-content,
    .contact form {
        padding: 0 1rem;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    .about-content h3 {
        font-size: 1.8rem;
    }

    .services-box h3 {
        font-size: 2.2rem;
    }
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .navbar a:hover::before,
    .navbar a:hover {
        transform: none;
    }

    .services-container .services-box:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .navbar a::before,
    .navbar a.active::before {
        border: 2px solid currentColor;
    }
}

/* Section Headings */
section h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: clamp(2rem, 4vw, 5rem);
    text-align: center;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
}

/* Content Headings */
.about-content h2,
.services-box h3,
.portfolio-layer h4 {
    font-size: clamp(2rem, 2.5vw, 2.6rem);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
}

/* Home Content Headings */
.home-content h3 {
    font-size: clamp(2.6rem, 3vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-content h1 {
    font-size: clamp(4rem, 5vw, 5.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Testimonial Headings */
.testimonial-slide h3 {
    font-size: clamp(2rem, 2.5vw, 2.5rem);
    margin: 2rem 0;
    font-weight: 600;
    line-height: 1.3;
}

/* Contact Form Headings */
.contact form h3 {
    font-size: clamp(2rem, 2.5vw, 2.4rem);
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    opacity: 1;
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-container {
    transform: scale(1);
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-video {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.close-video:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .video-container {
        width: 95%;
    }
    
    .close-video {
        top: -40px;
        font-size: 30px;
    }
}

/* Education Section Styles */
.education-section {
    min-height: auto;
    padding: 8rem 7% 10rem;
    background: linear-gradient(
        to bottom,
        var(--bg-color) 0%,
        rgba(var(--bg-color-rgb), 0.95) 100%
    );
}

.education-section .heading {
    margin-bottom: 4rem;
}

.academics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
    padding: 0 2rem;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.college-container,
.school-container {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 4px 12px var(--card-shadow);
    border: 2px solid var(--card-border);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.college-container:hover,
.school-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--main-color);
}

.college-image,
.school-image {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.college-image::before,
.school-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.3)
    );
    z-index: 1;
}

.college-image img,
.school-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.college-container:hover .college-image img,
.school-container:hover .school-image img {
    transform: scale(1.1);
}

.college-info,
.school-info {
    padding: 1rem;
}

.college-info h3,
.school-info h3 {
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.college-info h3::after,
.school-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-color));
    border-radius: 2px;
}

.college-info p,
.school-info p {
    font-size: clamp(1.3rem, 1.5vw, 1.5rem);
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--main-color);
}

/* Dark Mode Adjustments */
.dark-mode .college-container,
.dark-mode .school-container {
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .college-container:hover,
.dark-mode .school-container:hover {
    border-color: var(--main-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .academics-container {
        grid-template-columns: 1fr;
        max-width: 1000px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .academics-container {
        padding: 0 1.5rem;
    }
    
    .college-container,
    .school-container {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .college-image,
    .school-image {
        height: 200px;
    }
    
    .college-info p,
    .school-info p {
        font-size: 1.2rem;
    }
}