* {
    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: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00d4ff;
}

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 9%;
    background: rgba(var(--bg-color), 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.logo span { 
    color: var(--main-color);

}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}


.navbar a:hover, .navbar a.active { 
    color: var(--main-color);
}

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

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
}

.navbar a.active {
    color: var(--main-color);
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: .3s;
}

.navbar a.active::after {
    width: 100%; 
}

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

#dark-mode-toggle {
    margin-left: 3rem; 
    display: flex;
    align-items: center;
    cursor: pointer;
}

#dark-mode-toggle i {
    font-size: 2.2rem;
    color: var(--text-color);
    transition: .3s ease;
}

#dark-mode-toggle:hover i {
    color: var(--main-color);
    transform: scale(1.1);
}

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

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

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

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

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

.btn-group { 
    margin-top: 3rem; 
}

.btn {
    display: inline-block; 
    padding: 1.3rem 4.2rem;
    background: var(--main-color);
    border-radius: 4rem; 
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem; 
    color: var(--bg-color); 
    font-weight: 600; transition: .5s;
}

.btn:hover { 
    box-shadow: none;
    transform: scale(1.05);
}

.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%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 2rem 1.5rem 0 0;
    transition: .5s;
}
.social-media a:hover { 
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.hexagon-float {
    animation: floating 4s ease-in-out infinite;
}

.hexagon-border {
    width: 32rem;
    height: 36rem;
    background: var(--main-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 1.5rem var(--main-color));
}

.hexagon-border.small {
    width: 28rem;
    height: 32rem;
}

.hexagon-inner {
    width: 95%;
    height: 95%;
    background: var(--bg-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hexagon-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes floating {
    0%, 100% { 
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.5rem);
    }
}
 
.hexagon-float { 
    position: relative;
    animation: floating 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.hexagon-border {
    width: 32rem; 
    height: 36rem; 
    background: var(--main-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.hexagon-float::before {
    content: '';
    position: absolute;
    bottom: -35px; 
    width: 85%;
    height: 85%;
    background: var(--main-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: blur(5rem); 
    opacity: 0.4; 
    z-index: -2;
}

.hexagon-float::after {
    content: '';
    position: absolute;
    bottom: -15px; 
    width: 75%;
    height: 75%;
    background: var(--main-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: blur(2.5rem); 
    opacity: 0.7; 
    z-index: -1;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0) scale(1);
     }
    50% {
        transform: translateY(-2.5rem) scale(1.02);
    } 
}


  /* about */


.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    background: var(--second-bg-color);
}

.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

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

.about-img .hexagon-border.small {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 1rem var(--main-color));
}

.about-img::after {
    content: '';
    position: absolute;
    bottom: -15px; 
    width: 85%;
    height: 85%;
    background: var(--main-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    filter: blur(3.5rem); 
    opacity: 0.7; 
    z-index: 1; 
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    max-width: 120rem;
    margin: 0 auto;
}

.about-content {
    flex: 1;
    text-align: left;
}

.about-content h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ccc;
}

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

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--main-color);
}

.detail-item i {
    font-size: 1.8rem;
}


 /* skills */


.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 2.5rem;
    max-width: 110rem;
    margin: 0 auto;
}

.skills-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid transparent;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.skills-box:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.icon-circle {
    width: 8rem;
    height: 8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.skills-box:hover .icon-circle {
    background: white;
    transform: rotateY(360deg);
}


.icon-circle i {
    font-size: 5rem;
}

.skills-box h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-top: 1rem;
}

   
    /* Certificate */


.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 7%;
    max-width: 1300px;
    margin: 0 auto;
}

.cert-card {
    background: #0b111e;
    border-radius: 25px;
    position: relative;
    border: 1px solid rgba(0, 212, 255, 0.5); 
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 0 10px rgba(0, 212, 255, 0.1);
    
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: #00ffcc; 
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.5), inset 0 0 20px rgba(0, 255, 204, 0.2);
}

.cert-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #00d4ff;
    color: #000;
    padding: 6px 22px;
    font-size: 11px;
    font-weight: 900;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    z-index: 10;
    transition: 0.4s ease;
}

.cert-card:hover .cert-badge {
    background: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
}

.cert-img-box {
    width: 100%;
    height: 200px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    transition: 0.5s ease;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.cert-card:hover .cert-img-box img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(0, 255, 204, 0.5));
}

.cert-content {
    padding: 0 20px 25px 20px;
    text-align: center;
}

.cert-content h3 {
    font-size: 18px;
    color: #00d4ff;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 800;
    transition: 0.4s ease;
}

.cert-card:hover .cert-content h3 {
    color: #00ffcc;
}

.cert-content p {
    font-size: 13px;
    color: #b0b0b0;
    line-height: 1.5;
    text-transform: lowercase;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.cert-card {
    flex: 0 1 calc(33.333% - 30px); 
    min-width: 280px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.light-mode .cert-card {
    background: #ffffff;
    border: 1px solid rgba(0, 143, 179, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 212, 255, 0.1);
}

.light-mode .cert-card:hover {
    border-color: #008fb3;
    box-shadow: 0 15px 40px rgba(0, 143, 179, 0.2);
    background: linear-gradient(145deg, #ffffff, #f0faff);
}

.light-mode .cert-content h3 {
    color: #005f73;
}

.light-mode .cert-content p {
    color: #444;
}

.light-mode .cert-badge {
    background: linear-gradient(135deg, #00d4ff 0%, #008fb3 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.light-mode .cert-img-box img {
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}
  

/* journey */


.resume-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem; 
}

.resume-column {
    flex: 1 1 40rem;
}

.resume-column .title {
    font-size: 2.5rem;
    margin: 0 0 2rem 2rem;
}

.resume-box { 
    border-left: .2rem solid var(--main-color);
}

.resume-content {
    position: relative;
    padding-left: 2rem;
}

.resume-content::before {
    content: ''; 
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 1rem var(--main-color);
}

.content { 
    padding: 2rem;
    border: .1rem solid var(--main-color);
    border-radius: .6rem; 
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.year {
    font-size: 1.5rem;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 1rem;
}


   /* Contact */


.contact-info {
    text-align: center;
    font-size: 2rem;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 90rem; 
    margin: 3rem auto;
    padding: 0 2rem;
}

.contact-card {
    flex: 1 1 25rem;
    max-width: 30rem;
    background: var(--second-bg-color);
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid transparent;
    transition: 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 212, 255, 0.15);
}

.card-icon {
    width: 5.5rem;
    height: 5.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.contact-card:hover .card-icon {
    background: var(--main-color);
}

.card-icon i {
    font-size: 2.2rem;
    color: var(--main-color);
}

.contact-card:hover .card-icon i {
    color: var(--bg-color);
}

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

.contact-card p {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.8;
}
   

 /* Footer */


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

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

.theme-switch-float {
    position: fixed;
    bottom: 25px;
    right: 90px;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 1rem var(--main-color);
    transition: .5s;
}

.theme-switch-float i {
    font-size: 2rem;
    color: var(--bg-color);
}


body.light-mode {
    --bg-color: #f4f4f4;
    --second-bg-color: #ffffff;
    --text-color: #112e42;
    --main-color: #007bff;
}

body.light-mode .header {
    background: rgba(244, 244, 244, 0.9);
    border-bottom: 1px solid #ddd;
}

body.light-mode .skills-box, 
body.light-mode .contact-card,
body.light-mode .content {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

body.light-mode .about-content p {
    color: #444;
}

body { 
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease; 
    
}

#dark-mode-toggle {
    cursor: pointer;
    font-size: 2.5rem;
    color: var(--text-color);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bounce ეფექტი */
    display: inline-block;
}

#dark-mode-toggle:hover {
    transform: scale(1.2) rotate(15deg);
    color: var(--main-color);
}

.icon-animate {
    animation: rotateIcon 0.5s ease-in-out;
}

.contact-card {
    transition: 0.4s ease-in-out !important;
}

.contact-card:nth-child(1):hover {
    border-color: #00d4ff !important;
    box-shadow: 0 0.5rem 2rem rgba(0, 212, 255, 0.3) !important;
    transform: translateY(-10px) !important;
}
.contact-card:nth-child(1):hover .card-icon {
    background: #00d4ff !important;
    color: #fff !important;
}
.contact-card:nth-child(1):hover .card-icon i {
    color: #fff !important;
}

.contact-card:nth-child(2):hover {
    border-color: #ff4b2b !important;
    box-shadow: 0 0.5rem 2rem rgba(255, 75, 43, 0.3) !important;
    transform: translateY(-10px) !important;
}
.contact-card:nth-child(2):hover .card-icon {
    background: #ff4b2b !important;
}
.contact-card:nth-child(2):hover .card-icon i {
    color: #fff !important;
}

.contact-card.whatsapp-card:hover {
    border-color: #25D366 !important;
    box-shadow: 0 0.5rem 2rem rgba(37, 211, 102, 0.3) !important;
    transform: translateY(-10px) !important;
}
.contact-card.whatsapp-card:hover .card-icon {
    background: #25D366 !important;
}
.contact-card.whatsapp-card:hover .card-icon i {
    color: #fff !important;
}

.card-icon i {
    transition: 0.3s ease;
}

.contact-card:nth-child(4):hover {
    border-color: #2b00ff !important;
    box-shadow: 0 0.5rem 2rem rgba(255, 177, 0, 0.3) !important;
    transform: translateY(-10px) !important;
}
.contact-card:nth-child(4):hover .card-icon { background: #2b00ff !important; }

.contact-card:nth-child(5):hover {
    border-color: #6e5494 !important;
    box-shadow: 0 0.5rem 2rem rgba(110, 84, 148, 0.3) !important;
    transform: translateY(-10px) !important;
}
.contact-card:nth-child(5):hover .card-icon { background: #6e5494 !important; }

.contact-card:active {
    transform: scale(0.95) !important;
}

.contact-card:nth-child(4):hover .card-icon i {
    color: #ffffff !important;
}

.contact-card:nth-child(5):hover .card-icon i {
    color: #ffffff !important;
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 40px 5%;
    }
}

@media (max-width: 1024px) {
    .cert-card {
        flex: 0 1 calc(33.333% - 20px);
    }
}

@media (max-width: 1024px) {
    .contact-container {
        gap: 2rem;
    }
    .contact-card {
        flex: 0 1 calc(45% - 1rem);
        min-width: 250px;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }
    section {
        padding: 10rem 4% 2rem;
    }
}

@media (max-width: 991px) {
    .about-container {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }
    .about-content {
        text-align: center;
    }
    .about-details {
        justify-items: center;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .cert-card {
        flex: 0 1 calc(50% - 20px); 
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 4%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(255,255,255,0.1);
        display: none;
    }
    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home { 
        flex-direction: column-reverse; 
        text-align: center; 
        justify-content: center;
        gap: 2rem; 
        padding-top: 12rem; 
    }

    .home-content h1 {
        font-size: 3.5rem;
    } 
    .home-content h3 {
        font-size: 2.4rem;
    }

    .hexagon-border {
        width: 22rem; 
        height: 25rem;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }
    
    .about-img .hexagon-border.small {
        width: 20rem;
        height: 22rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar.active {
        display: block;
    }

    #dark-mode-toggle {
        margin-left: 0;
        padding-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .about-img {
        display: none;
    }

    .about-content {
        text-align: center; 
        padding: 0 2rem;
    }

    .about-content h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header {
        position: fixed !important; 
        top: 0;
        left: 0;
        width: 100%;
        
        background: var(--bg-color) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        
        padding: 1.5rem 4%; 
        z-index: 1000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
    }

    section {
        padding-top: 8rem; 
    }
}


@media (max-width: 768px) {
    
    .about {
        padding: 4rem 5% !important; 
        min-height: auto !important;
    }

    .about-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 2rem !important;
    }

    .about-img {
        display: none !important;
    }

    .about-content h3 {
        font-size: 2.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .about-content p {
        font-size: 1.4rem !important;
        line-height: 1.6 !important;
    }

    .about-details {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        justify-items: center;
    }

    .skills {
        padding: 4rem 5% !important;
        min-height: auto !important;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 1.5rem !important;
    }

    .skills-box {
        padding: 2rem 1rem !important;
    }

    .icon-circle {
        width: 6rem !important;
        height: 6rem !important;
        margin-bottom: 1rem !important;
    }

    .icon-circle i {
        font-size: 3.5rem !important;
    }

    .skills-box h3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 20px;
    }

    .cert-card {
        margin-top: 30px;
    }

    .cert-img-box {
        height: 180px;
        padding: 10px;
    }

    .cert-content h3 {
        font-size: 1.6rem;
    }

    .cert-content p {
        font-size: 1.2rem;
    }

    .cert-badge {
        padding: 4px 15px;
        font-size: 10px;
        top: -10px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        gap: 1.7rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 620px) {
    .contact-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 30px 15px !important;
        padding: 20px 10px !important;
    }

    .contact-card {
        width: 100% !important;
        min-width: 0 !important;
        padding: 2rem 1rem !important;
        min-height: 160px !important;
    }

    .card-icon {
        width: 45px !important;
        height: 45px !important;
    }

    .contact-card h3 {
        font-size: 1.2rem !important;
    }

    .contact-card p {
        font-size: 0.9rem !important;
    }

    .contact-card:nth-child(5) {
        grid-column: span 2 !important;
        width: 60% !important;
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .cert-card {
        flex: 1 1 100%; 
    }
}

@media (max-width: 480px) {
    .cert-grid {
        padding: 20px 15px;
    }
    
    .cert-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .contact-container {
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 10px !important;
    }

    .contact-card {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 140px !important;
        padding: 1.5rem 0.8rem !important;
        border-radius: 1.5rem !important;
    }

    .card-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 8px !important;
    }

    .card-icon i {
        font-size: 1.6rem !important;
    }

    .contact-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 4px !important;
    }

    .contact-card p {
        font-size: 0.85rem !important;
        word-break: break-all;
    }

    .contact-card:nth-child(5) {
        grid-column: span 2 !important;
        width: 65% !important;
        justify-self: center;
    }
}

@media (max-width: 450px) {
    .home-content h1 { font-size: 2.8rem; }
    .hexagon-border {
        width: 18rem;
        height: 20rem;
    }
}

@media (max-width: 400px) {
    .contact-container {
        gap: 13px !important;
    }

    .contact-card {
        padding: 1.5rem 0.5rem !important;
        min-height: 140px !important;
    }

    .contact-card h3 {
        font-size: 1.1rem !important;
    }

    .contact-card p {
        font-size: 0.8rem !important;
    }
    
    .contact-card:nth-child(5) {
        width: 80% !important;
    }
}

@media (max-width: 340px) {
    .contact-container {
        grid-template-columns: 1fr !important;
    }
    .contact-card:nth-child(5) {
        width: 100% !important;
    }
}




