/* Golden Gate Media - Subtle Animations CSS */
/* Integrates with slides framework */

/* Body fade in animation */
body {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide container animations */
.slide .container {
    animation: slideInUp 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide .container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography animations */
h1, .h1 {
    animation: pulse 3s ease-in-out infinite;
    transition: color 0.3s ease;
}

h1:hover, .h1:hover {
    color: #30249c;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

h2, .h2 {
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease-out;
}

h2:hover, .h2:hover {
    transform: translateX(5px);
    color: #30249c;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navigation animations */
.navigation a, .menu a {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.navigation a:hover, .menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #30249c;
}

.navigation a::after, .menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #30249c;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navigation a:hover::after, .menu a:hover::after {
    width: 100%;
}

/* Button animations */
.btn, button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:active, button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn::before, button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before, button:hover::before {
    left: 100%;
}

/* Content sections animations */
.section, .wrap {
    transition: all 0.3s ease;
    animation: slideInRight 0.6s ease-out;
}

.section:hover, .wrap:hover {
    transform: translateX(5px);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* List animations */
ul, ol {
    animation: slideInLeft 0.6s ease-out;
}

li {
    transition: all 0.3s ease;
    position: relative;
}

li:hover {
    transform: translateX(5px);
    color: #30249c;
}

/* Image animations */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Form elements animations */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(48, 36, 156, 0.3);
    border-color: #30249c;
}

/* Footer animations */
.footer {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer a {
    transition: all 0.3s ease;
    position: relative;
}

.footer a:hover {
    transform: translateY(-1px);
    color: #30249c;
}

.footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: #30249c;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer a:hover::after {
    width: 100%;
}

/* Highlight boxes animations */
.highlight, .alert, .notice {
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
}

.highlight:hover, .alert:hover, .notice:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(48, 36, 156, 0.2);
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(48, 36, 156, 0.1); }
    to { box-shadow: 0 0 20px rgba(48, 36, 156, 0.3); }
}

/* Contact info animations */
.contact-info, .contact-form {
    transition: all 0.3s ease;
    animation: bounceIn 0.8s ease-out;
}

.contact-info:hover, .contact-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(48, 36, 156, 0.2);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Table animations */
table {
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

table:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

tr {
    transition: all 0.3s ease;
}

tr:hover {
    background-color: #f8f9ff;
    transform: translateX(2px);
}

/* Social media icons animations */
.social a, .social-media a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social a:hover, .social-media a:hover {
    transform: translateY(-3px) scale(1.1);
    color: #30249c;
}

/* Loading animations */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fade in animations for different elements */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* Responsive animations - disable on mobile for performance */
@media (max-width: 768px) {
    .slide .container:hover,
    h1:hover, .h1:hover,
    h2:hover, .h2:hover,
    .navigation a:hover, .menu a:hover,
    .btn:hover, button:hover,
    .section:hover, .wrap:hover,
    li:hover,
    img:hover,
    input:focus, textarea:focus, select:focus,
    .highlight:hover, .alert:hover, .notice:hover,
    .contact-info:hover, .contact-form:hover,
    table:hover,
    tr:hover,
    .social a:hover, .social-media a:hover {
        transform: none;
    }
    
    .slide .container,
    h1, .h1,
    h2, .h2,
    .navigation a, .menu a,
    .btn, button,
    .section, .wrap,
    ul, ol,
    img,
    input, textarea, select,
    .highlight, .alert, .notice,
    .contact-info, .contact-form,
    table,
    tr,
    .social a, .social-media a {
        animation: none;
        transition: none;
    }
}





