body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #e6f2ff; /* Updated to a light blue background */
    color: #1e4976; /* Updated dark blue text */
    overflow-x: hidden; /* Prevent horizontal scroll due to bird animation */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    border-bottom: none; /* Removed border */
}

.logo {
    font-size: 1.2em;
    font-weight: 500;
    color: #1e4976;
    text-decoration: none; /* Remove link underline */
    position: relative; /* Added for pseudo-elements positioning */
    padding: 5px 0; /* Added padding for hover effect space */
    overflow: hidden; /* Hide overflowing parts of the lines */
    cursor: pointer; /* Show pointer cursor on hover */
}

.logo::before, .logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #3a6da0;
    bottom: 0;
    transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.logo::before {
    left: 0;
    transform-origin: left;
}

.logo::after {
    right: 0;
    transform-origin: right;
}

.logo:hover::before, .logo:hover::after {
    width: 50%; /* Each line extends to meet in the middle */
}

.logo:hover {
    color: #3a6da0;
    text-shadow: 0 0 8px rgba(58, 109, 160, 0.3);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #1e4976; /* Dark blue text */
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s;
    position: relative; /* Added for pseudo-elements positioning */
    padding: 5px 0; /* Added padding for hover effect space */
    overflow: hidden; /* Hide overflowing parts of the lines */
}

nav a::before, nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #3a6da0;
    bottom: 0;
    transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

nav a::before {
    left: 0;
    transform-origin: left;
}

nav a::after {
    right: 0;
    transform-origin: right;
}

nav a:hover::before, nav a:hover::after {
    width: 50%; /* Each line extends to meet in the middle */
}

/* This creates a glow effect when hovering */
nav a:hover {
    color: #3a6da0;
    text-shadow: 0 0 8px rgba(58, 109, 160, 0.3);
}

main {
    flex: 1;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px); /* Full viewport height minus header & footer */
    text-align: center;
    position: relative; /* For bird positioning */
    padding: 0 20px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 5em;
    margin: 0.2em 0;
    line-height: 1.1;
    color: #1e4976; /* Dark blue text */
    font-weight: 600;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #1e4976, #3a6da0, #1e4976);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 6s linear infinite;
    text-shadow: 0 5px 15px rgba(30, 73, 118, 0.2);
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 1.2em;
    color: #3a6da0;
    margin-top: 0.8em;
    font-weight: 500;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    opacity: 0.85;
    text-shadow: 0 2px 5px rgba(30, 73, 118, 0.1);
    transform: translateY(0);
    transition: all 0.5s ease;
}

.hero p:hover {
    transform: translateY(-3px);
    color: #1e4976;
    opacity: 1;
}

.showreel-button {
    margin-top: 60px;
}

.showreel-button a {
    display: inline-block;
    color: #1e4976;
    text-decoration: none;
    border: 1px solid #1e4976;
    padding: 12px 32px;
    font-size: 0.9em;
    letter-spacing: 0.12em;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(30, 73, 118, 0.1);
    z-index: 1;
}

.showreel-button a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #1e4976;
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showreel-button a:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 73, 118, 0.15);
    border-color: #1e4976;
}

.showreel-button a:hover::before {
    width: 100%;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 10px;
    margin-top: auto;
}

.copyright {
    font-size: 0.8em;
    color: #1e4976;
}

.contact a {
    color: #1e4976;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.contact a:hover {
    color: #3a6da0;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    color: #1e4976;
    font-size: 1.2em;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #3a6da0;
}

#bird {
    position: absolute;
    width: 150px; /* Increased size from 80px to 150px */
    height: auto;
    top: 20%;
    right: -180px; /* Adjusted to account for larger size */
    transform: rotate(0deg);
    transition: transform 0.5s ease-out; /* Smooth rotation */
    z-index: 10;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1)); /* Added drop shadow */
}

/* Portfolio Section Styles */
#portfolio {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-heading {
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-heading h2 {
    font-size: 2.8em;
    color: #1e4976;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.portfolio-separator {
    width: 60px;
    height: 3px;
    background-color: #3a6da0;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 70%; /* Makes a slightly rectangular aspect ratio */
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateY(0) perspective(1000px);
    transform-style: preserve-3d;
    opacity: 0;
    will-change: transform, box-shadow;
}

.portfolio-item.clicked {
    transform: scale(0.95);
}

.portfolio-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-12px) perspective(1000px) rotateX(2deg);
}

.portfolio-image {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
    border-radius: 12px;
    will-change: transform;
    filter: brightness(1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(14, 37, 62, 0.85));
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 12px;
    will-change: opacity;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}

.item-details {
    text-align: left;
    padding: 30px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
    width: 100%;
}

.item-category {
    display: inline-block;
    color: #c0ddff;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    opacity: 0.95;
    position: relative;
    padding: 4px 12px 4px 15px;
    background-color: rgba(30, 73, 118, 0.3);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.item-category::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    width: 4px;
    height: 4px;
    background-color: #c0ddff;
    border-radius: 50%;
    transform: translateY(-50%);
}

.portfolio-item:hover .item-category {
    transform: translateY(0);
    background-color: rgba(30, 73, 118, 0.4);
}

.item-details h3 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 1.7em;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.05s;
}

.portfolio-item:hover .item-details h3 {
    transform: translateY(0);
}

.item-details p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1em;
    font-weight: 400;
    margin: 0;
    margin-bottom: 30px;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.1s;
}

.portfolio-item:hover .item-details p {
    transform: translateY(0);
}

.item-action {
    display: flex;
    align-items: center;
    margin-top: 10px;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.15s;
}

.item-action .view-project {
    position: relative;
    overflow: hidden;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: rgba(30, 73, 118, 0.2);
    transition: all 0.4s ease;
}

.item-action .view-project:hover {
    background-color: rgba(30, 73, 118, 0.4);
}

.view-project {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 500;
    opacity: 0.95;
    margin-right: 8px;
}

.arrow {
    color: #ffffff;
    font-size: 1.2em;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-item:hover .item-action {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover .arrow {
    transform: translateX(6px);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.12);
    filter: brightness(1.05);
}

/* Hover effects */
.portfolio-item:hover .item-overlay {
    opacity: 1;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.portfolio-item:hover .item-details {
    transform: translateY(0);
    opacity: 1;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .portfolio-grid {
        gap: 30px;
    }
    
    .portfolio-heading h2 {
        font-size: 2.4em;
    }
    
    .skills-cards {
        gap: 25px;
        margin: 50px 0 35px 0;
    }
    
    .skill-card {
        width: 260px;
        height: 180px;
        padding: 28px 20px;
    }
    
    .skill-icon {
        font-size: 2.2em;
        margin-bottom: 16px;
    }
    
    .skill-content h3 {
        font-size: 1.2em;
    }
    
    .skill-content p {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 30px;
    }
    
    .hero h1 {
        font-size: 3.5em;
    }
    
    #bird {
        width: 100px; /* Increased from 60px to 100px for tablet view */
    }
    
    .skills-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 40px 0 30px 0;
    }
    
    .skill-card {
        width: 300px;
        height: 160px;
        padding: 24px 20px;
    }
    
    .skill-icon {
        font-size: 2em;
        margin-bottom: 14px;
    }
    
    .skill-content h3 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .skill-content p {
        font-size: 0.85em;
    }
    
    .showreel-button a {
        padding: 14px 36px;
        font-size: 0.9em;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-item {
        padding-bottom: 60%; /* Adjust aspect ratio for better mobile view */
    }
    
    .portfolio-heading {
        margin-bottom: 40px;
    }
    
    .portfolio-heading h2 {
        font-size: 2em;
    }
    
    #portfolio {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    nav {
        gap: 15px;
    }
    
    .skills-cards {
        gap: 16px;
        margin: 35px 0 25px 0;
    }
    
    .skill-card {
        width: 280px;
        height: 140px;
        padding: 20px 16px;
    }
    
    .skill-icon {
        font-size: 1.8em;
        margin-bottom: 12px;
    }
    
    .skill-content h3 {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .skill-content p {
        font-size: 0.8em;
        line-height: 1.4;
    }
    
    .showreel-button a {
        padding: 12px 28px;
        font-size: 0.85em;
        letter-spacing: 0.1em;
    }
    
    .portfolio-item {
        padding-bottom: 100%; /* Return to square for phones */
    }
    
    .item-details h3 {
        font-size: 1.4em;
    }
    
    .item-details p {
        font-size: 0.9em;
    }
    
    .portfolio-heading h2 {
        font-size: 1.8em;
    }
    
    #portfolio {
        padding: 40px 15px;
    }
}

/* Contact Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 73, 118, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
    margin: 2% auto;
    padding: 0;
    border: 1px solid rgba(30, 73, 118, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 25px 50px rgba(30, 73, 118, 0.3);
    transform: translateY(-50px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #1e4976 0%, #3a6da0 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close {
    color: white;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 120px); /* Account for header height */
}

.modal-body p {
    color: #1e4976;
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    color: #1e4976;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1f0ff;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    color: #1e4976;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3a6da0;
    background: white;
    box-shadow: 0 0 0 3px rgba(58, 109, 160, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(30, 73, 118, 0.1);
}

.cancel-btn,
.submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.cancel-btn {
    background: transparent;
    color: #1e4976;
    border: 2px solid #e1f0ff;
}

.cancel-btn:hover {
    background: #f8fcff;
    border-color: #3a6da0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 109, 160, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #1e4976 0%, #3a6da0 100%);
    color: white;
    border: 2px solid transparent;
    min-width: 140px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 73, 118, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-header h2 {
        font-size: 1.5em;
    }
    
    .modal-body {
        padding: 25px;
        max-height: calc(95vh - 100px);
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
        position: sticky;
        bottom: 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
        margin: 10px -25px -25px -25px;
        padding: 20px 25px 25px 25px;
        border-top: 1px solid rgba(30, 73, 118, 0.1);
    }
    
    .cancel-btn,
    .submit-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 18px 20px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(98vh - 90px);
    }
    
    .form-actions {
        margin: 10px -20px -20px -20px;
        padding: 15px 20px 20px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(30, 73, 118, 0.05);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(30, 73, 118, 0.2);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 73, 118, 0.3);
}

/* About page styles */
.about-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    min-height: calc(100vh - 200px);
}

.about-content {
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

.about-content h1 {
    font-size: 2.5em;
    color: #1e4976;
    margin-bottom: 40px;
    font-weight: 600;
}

.bio {
    font-size: 1.1em;
    line-height: 1.6;
    color: #1e4976;
}

.bio p {
    margin-bottom: 25px;
}

.contact-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(30, 73, 118, 0.2);
}

.contact-info a {
    color: #1e4976;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #3a6da0;
}

/* Media query for about page on mobile */
@media (max-width: 768px) {
    .about-content h1 {
        font-size: 2em;
    }
    
    .bio {
        font-size: 1em;
    }
}

/* Skills Cards Section */
.skills-cards {
    display: flex;
    gap: 30px;
    margin: 60px 0 40px 0;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
}

.skill-card {
    position: relative;
    width: 280px;
    height: 200px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 25px rgba(30, 73, 118, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    overflow: hidden;
    transform: translateY(0) perspective(1000px);
    will-change: transform, box-shadow;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-15px) perspective(1000px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(30, 73, 118, 0.25);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(58, 109, 160, 0.3);
}

.skill-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 109, 160, 0.1), rgba(30, 73, 118, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

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

.skill-icon {
    font-size: 2.5em;
    color: #3a6da0;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: scale(1);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotateY(5deg);
    color: #1e4976;
    text-shadow: 0 5px 15px rgba(58, 109, 160, 0.3);
}

.skill-content h3 {
    font-size: 1.3em;
    color: #1e4976;
    margin: 0 0 12px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-content h3 {
    color: #1e4976;
    transform: translateY(-2px);
}

.skill-content p {
    font-size: 0.95em;
    color: #3a6da0;
    margin: 0;
    line-height: 1.5;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-content p {
    opacity: 1;
    transform: translateY(-2px);
}
